.pop1 > .template-selector {
   
    transition: transform 0.35s ease, opacity 0.35s ease;
    width: 100%;
}

.pop1 .template-selector {
 
    position: absolute;
    top: 45px;
    left: 0pt;
    transform: translateX(100%);
    opacity: 0;
    padding: 0;
    margin: 0;
    background-color: white;
    height: 100%; 
    display: flex;
    flex-direction: column;
    min-height: 420pt;
}

.pop1 .template-selector.active {
    
    transform: translateX(0);
    opacity: 1;
}

.pop1 .template-selector .title {
    margin: 0;
    margin-bottom: 5pt;
}

.pop1 .template-selector .ts-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    text-align: center;
}

.pop1 .template-selector .actions {

    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 10pt;
    flex-shrink: 0; /* Evita que se reduzca */
    margin-top: auto; /* Empuja el div hacia abajo */
}

.pop1 .template-selector .actions button {
    
    width: 100%;
    max-width: 120px;
}

.pop1 .template-selector .graybtn {
    
    background-color: #333 !important;
}

.pop1 .template-selector .greenbtn {
    
    background-color: green !important;
}

.pop1 .template-selector .ts-body {
    padding: 10pt;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: clip;
}

.pop1 .template-selector .panel-navigator {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.pop1 .panel-navigator.hidden {
    display: none;
}

.pop1 .template-selector .title.hidden {
    display: none;
}

.pop1 .template-selector .panel-navigator .post-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20pt;
    overflow-y: auto;
    justify-content: center;
    padding: 20px;
    padding-bottom: 100px;
}

.pop1 .template-selector .panel-navigator .post-list .post {
    cursor: pointer;
    transition: all 0.3s ease;
}

.pop1 .template-selector .panel-navigator .post-list .post:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    background: #f0f8ff;
}
