/**
 * Product Variants Custom CSS for Imprepro Module
 */

body.has-imprepro-variants .product__variants,
body.has-imprepro-variants .js-product-variants,
body.has-imprepro-variants .js-product-add-to-cart {
    display: none !important;
}

/* Estilos específicos para las variantes personalizadas */
.imprepro-product-variants {
    margin: 20px 0;
    font-family: Arial, sans-serif;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

#imprepro-variants-container{
    padding: 0;
    border: 0;
}
#imprepro-variants-container .variant-selection{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 15px;
}
#imprepro-variants-container .variant-selection .step-selection{
    background-color: #9D9D9C1A;
    border: 0;
    padding: 32px 42px;
    border-radius: 10px;
}
.imprepro-product-variants .step-header-int{
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.imprepro-product-variants .step-header-int .guia-tallas{
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    color: #273349;
    text-decoration: underline;
}
.imprepro-product-variants .step-title{
    font-family: 'articulat-cf';
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 0;
}
.imprepro-product-variants .step-title strong{
    text-transform: uppercase;
}

/* Selección de colores múltiple */
.imprepro-product-variants .color-selection,
.imprepro-product-variants .text-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.imprepro-product-variants .color-option:hover{
    cursor: pointer;
}
.imprepro-product-variants .color-option{
    background-color: transparent;
    border: 0;
    padding: 0;
}
.imprepro-product-variants .color-option .color-circle{
    margin: 0;
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 38px;
    background-color: #FFF;
}
.imprepro-product-variants .color-option input[type="checkbox"]:checked + .color-circle{
    border: 2px solid #2E8CBF;
    position: relative
}
.imprepro-product-variants .color-option input[type="checkbox"]:checked + .color-circle:before{
    content: '';
    width: 34px;
    height: 34px;
    background-color: transparent;
    border: 3px solid #ffffff;
    position: absolute;
    border-radius: 40px;
    left: 0px;
    top: 0px;
}
.imprepro-product-variants .color-option:hover,
.imprepro-product-variants .text-option:hover {
    border-color: #007cba;
    background-color: #f8f9fa;
}

.imprepro-product-variants .color-option input[type="checkbox"],
.imprepro-product-variants .text-option input[type="checkbox"] {
    display: none;
}
.imprepro-product-variants .text-option input[type="checkbox"]:checked ~ .option-text {
    border: 3px solid #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.imprepro-product-variants .color-option input[type="checkbox"]:checked ~ .option-text,
.imprepro-product-variants .text-option input[type="checkbox"]:checked ~ .option-text {
    color: #007cba;
    font-weight: bold;
}

.imprepro-product-variants .option-text {
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 20px;
    background: #FFF;
    cursor: pointer;
    border: 1px solid #ccc;
}

.imprepro-product-variants .color-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.imprepro-product-variants .color-name {
    font-size: 14px;
    font-weight: 500;
}


.imprepro-product-variants .size-name.unavailable {
    color: #6c757d;
}

.imprepro-product-variants .total-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.imprepro-product-variants .add-to-cart-section {
    text-align: center;
    margin-top: 20px;
}

.imprepro-product-variants .add-multiple-to-cart {
    background: #007cba;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.imprepro-product-variants .add-multiple-to-cart:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.imprepro-product-variants .add-multiple-to-cart:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Estados de carga */
.imprepro-product-variants .loading {
    opacity: 0.6;
    pointer-events: none;
}

.imprepro-product-variants .loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #007cba;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Contenedor de bloques de colores (sin tabs) */
.imprepro-product-variants .color-blocks-container .color-blocks-content{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 55px;
}
.imprepro-product-variants .color-blocks-container .color-blocks-content .color-variants-block{
    position: relative;
}
.imprepro-product-variants .color-blocks-container .color-blocks-content .color-variants-block:first-child:before{
    content: none !important;
}
.imprepro-product-variants .color-blocks-container .color-blocks-content .color-variants-block:before{
    content: '';
    position: absolute;
    background-color: #0000004D;
    width: 100%;
    height: 1px;
    left: 0;
    top: -25px;
}

.imprepro-product-variants .loading-color-blocks,
.imprepro-product-variants .loading-color-block,
.imprepro-product-variants .error-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* Bloque de variantes de color */
.imprepro-product-variants .color-variants-block {
    animation: fadeIn 0.3s ease-in-out;
    position: relative;
    margin-bottom: 0;
    border: 0;
    background-color: transparent;
    padding: 0;
    border-radius: 12px;
}

.imprepro-product-variants .color-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 38px;
    padding-bottom: 0px;
}

.imprepro-product-variants .color-header .color-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.imprepro-product-variants .color-circle-large {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.imprepro-product-variants .color-header .color-name {
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 15px;
    line-height: 100%;
    text-transform: uppercase;
    margin-bottom: 0;
}

.imprepro-product-variants .remove-color-btn{
    border: 0;
    padding: 0;
}
.imprepro-product-variants .remove-color-btn .close-icon{
    font-family: 'Font Awesome 6 Sharp';
    font-weight: 400;
    font-size: 18px;
    line-height: 100%;
    text-transform: uppercase;
    color: #273349;
}

/* Tabla de tallas estilo horizontal */
.imprepro-product-variants .size-column-header,
.imprepro-product-variants .size-column-header .size-name,
.imprepro-product-variants .total-column .total-label{
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    color: #273349;
    display: block;
    padding-bottom: 6px;
}
.imprepro-product-variants .size-column-header {
    padding: 0;
    min-width: 69px;
    text-align: center !important;
    width: fit-content;
}

.imprepro-product-variants .size-column input,
.imprepro-product-variants .color-total-amount span{
    min-width: 69px;
    border: 0;
    font-family: 'Articulat-cf';
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    height: 29px;
    width: fit-content;
    color: #2E8CBF80;
    border-radius: 5px;
    background-color: #FFF;
}

.imprepro-product-variants .size-column input:focus{
    outline: none;
    box-shadow: none;
}

.imprepro-product-variants .size-column input::-webkit-inner-spin-button, 
.imprepro-product-variants .size-column input::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.imprepro-product-variants .size-column input { 
    -moz-appearance: textfield; 
    appearance: textfield;
    text-align: center;
}

.imprepro-product-variants .color-total-amount span{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    background: #2E8CBF;
}
.imprepro-product-variants .size-column.unavailable {
    background-color: #f8f9fa;
    opacity: 0.6;
}

.imprepro-product-variants .unavailable-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.imprepro-product-variants .unavailable-text {
    font-size: 16px;
    color: #dc3545;
    font-weight: bold;
}

.imprepro-product-variants .color-total-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
#imprepro-variants-container .sizes-table-content{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
}

.general-card .card-title {
    font-weight: 800;
}
.general-card .card-title span {
    font-weight: 400;
}

/* Responsive para tabla de tallas */
@media (max-width: 1024px) {
    #imprepro-variants-container .variant-selection .step-selection{
        padding: 20px;
    }
    .imprepro-product-variants .color-selection{
        gap: 10px;
    }
    .imprepro-product-variants .color-option .color-circle {
        width: 30px;
        height: 30px;
    }
    .imprepro-product-variants .color-option input[type="checkbox"]:checked + .color-circle:before {
        width: 26px;
        height: 26px;
    }
    .imprepro-product-variants .color-circle-large{
        width: 26px;
        height: 26px;
    }
    .imprepro-product-variants .color-header{
        margin-bottom: 20px;
    }
    #imprepro-variants-container .sizes-table-content{
        gap: 12px;
    }
    .imprepro-product-variants .size-column-header .size-name, 
    .imprepro-product-variants .total-column .total-label{
        font-size: 16px;
        line-height: 16px;
    }
}
@media (max-width: 768px) {
    .imprepro-product-variants .sizes-table-header,
    .imprepro-product-variants .sizes-table-row {
        flex-direction: column;
    }
    
    .imprepro-product-variants .quantity-input-container {
        margin-bottom: 0;
        margin-left: auto;
    }
    
    .imprepro-product-variants .total-column-header,
    .imprepro-product-variants .total-column {
        flex: none;
        min-width: auto;
    }
}

/* Estilos para productos de personalización */
.additional-products-container {
    font-family: 'Articulat-cf', Arial, sans-serif;
    margin: 20px 0 30px;
}

.additional-products-container .customization-title,
.product-customization .instructions {
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 20px;
    color: #273349B2;
}

.product-customization .documents{
    margin-bottom: 20px;
}
.product-customization .documents .btn-outline-secondary{
    background-color: #2E8CBF33;
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    color: #273349;
    border: 0;
    padding: 12px;
}
.product-customization .documents .btn-outline-secondary i{
    font-weight: 400;
    padding-right: 15px;
}

.additional-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.additional-product-item {
    position: relative;
}

.additional-product-item .additional-checkbox {
    display: none;
}

.additional-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}
.additional-label div{
    background-color: #2E8CBF1A;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.additional-label div .product-name{
    color: #2E8CBF;
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
}
.additional-label div i{
    font-size: 20px;
    color: #2E8CBF;
    font-weight: 300;
    font-family: 'Font Awesome 6 pro';
}

.additional-checkbox:checked + .additional-label div {
    background-color: #2E8CBF;
}
.additional-checkbox:checked + .additional-label .product-name ,
.additional-checkbox:checked + .additional-label div i{
    color: #FFFFFF;
}

.checkbox-indicator {
    width: 18px;
    height: 18px;
    border: 1px solid #2E8CBF;
    border-radius: 0;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.additional-checkbox:checked + .additional-label .checkbox-indicator::after {
    content: '';
    position: absolute;
    left: 16%;
    top: 17%;
    width: 66%;
    height: 66%;
    background-color: #2E8CBF;
}
/* Responsive para productos de personalización */
@media (max-width: 768px) {
    .additional-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
        
    .additional-products-container .customization-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .product-name {
        font-size: 14px;
        line-height: 18px;
    }
    .additional-products-container{
        margin: 20px 0 30px;
    }
    .additional-products-container .customization-title, .product-customization .instructions{
        font-size: 16px;
        line-height: 20px;
    }
    .additional-label div .product-name{
        font-size: 16px;
    }
    .product-customization .documents .btn-outline-secondary{
        font-size: 16px;
    }
}

/**/
.product-customization__item_file {
    border: 1px solid #27334933;
    overflow: hidden;
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    border-radius: 5px;
}
.product-customization__item_file.card .card-header {
    margin-top: 0;
    margin-bottom: 0;
    padding: 30px 20px;
}
.product-customization__item_file .card-header p{
    font-family: 'Articulat-cf';
    font-weight: 600;
    font-size: 18px;
    line-height: 100%;
    color: #273349;
    background-color: transparent;
    margin-bottom: 9px;
}
.product-customization__item_file .card-header span{
    color: #27334999;
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 16px;
    line-height: 110%;
}
.product-customization__item_file .card-body{
    background-color: transparent;
}
.product-customization__item_file .card-body div{
    height: 100%;
}
.product-customization__item_file .card-body div label{
    height: 100%;
}
/**/
.product-customization__item_file .custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #2E8CBF1A;
}

.product-customization__item_file .custom-file-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 120px;
}

.product-customization__item_file .custom-file-upload-icon i {
    color: #273349;
    font-size: 46px;
}

.product-customization__item_file .file-remove-btn i{
    color: #273349;
    font-size: 22px;
    font-family: 'Font Awesome 6 Pro';
}

.product-customization__item_file .hidden-file-input {
    display: none;
}
@media(max-width:768px){    
    .product-customization__item_file.card .card-header{
        padding: 12px;
    }
    .product-customization__item_file .card-header p{
        font-size: 16px;
    }
    .product-customization__item_file .card-header span{
        font-size: 14px;
    }
}

/**/

.product-customization__item {
    background-color: transparent;
}
.product-customization__item .card-header{
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    margin-bottom: 20px;
    margin-top: 40px;
    color: #273349B2;
    background-color: transparent;
    padding: 0;
}
.product-customization__item textarea{
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 16px;
    line-height: 110%;
    color: #27334999;
    background-color: #2E8CBF1A;
    min-height: 181px;
}

.save-customized-data .btn{
    margin-top: 20px;
    background-color: #273349;
    color: #FFFFFF;
    font-family: 'Articulat-cf';
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    border: 1px solid #273349;
    width: 100%;
    border-radius: 5px;
    padding: 12px;
}
@media(max-width:768px){
    .save-customized-data .btn{
        font-size: 14px;
        line-height: 14px;
    }
    .product-customization__item .card-header{
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 12px;
    }
}

/* Estilos para el modal de alertas personalizadas */
.imprepro-alerts {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.imprepro-alerts .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.imprepro-alerts .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.imprepro-alerts .modal-header {
    background: #2E8CBF;
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.imprepro-alerts .modal-header h4 {
    margin: 0;
    font-family: 'Articulat-cf', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
}

.imprepro-alerts .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.imprepro-alerts .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.imprepro-alerts .modal-body {
    padding: 24px;
}

.imprepro-alerts .modal-body p {
    margin: 0;
    font-family: 'Articulat-cf', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #273349;
}

.imprepro-alerts .modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.imprepro-alerts .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: 'Articulat-cf', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.imprepro-alerts .btn-primary {
    background: #2E8CBF;
    color: white;
}

.imprepro-alerts .btn-primary:hover {
    background: #1f6491;
    transform: translateY(-1px);
}

.imprepro-alerts .btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 140, 191, 0.3);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Prevenir scroll del body cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .imprepro-alerts .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .imprepro-alerts .modal-header,
    .imprepro-alerts .modal-body,
    .imprepro-alerts .modal-footer {
        padding: 16px 20px;
    }
    
    .imprepro-alerts .modal-header h4 {
        font-size: 16px;
    }
    
    .imprepro-alerts .modal-body p {
        font-size: 14px;
    }
    .imprepro-product-variants .step-header-int{
        margin-bottom: 30px;
    }
}

/* ========================================
   ESTILOS PARA STEP-SELECTION.SELECT
   ======================================== */

/* Contenedor del select estilizado para el paso 1 */
.step-selection.select .text-selection {
    position: relative;
}

/* Select estilizado personalizado para paso 1 */
.step-selection.select .custom-select-wrapper {
    position: relative;
    width: 100%;
}

.step-selection.select .custom-select-trigger {
    background-color: #FFFFFF;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px 40px 12px 16px;
    cursor: pointer;
    font-family: 'Articulat-cf';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #273349;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 48px;
}

.step-selection.select .custom-select-trigger:hover {
    border-color: #2E8CBF;
    background-color: #f8f9fa;
}

.step-selection.select .custom-select-trigger.active {
    border-color: #2E8CBF;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.step-selection.select .custom-select-trigger .placeholder {
    color: #27334999;
    background: #FFF;
}

.step-selection.select .custom-select-trigger .selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.step-selection.select .custom-select-trigger .selected-item-tag {
    background-color: #2E8CBF;
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.step-selection.select .custom-select-trigger .selected-item-tag .remove-tag {
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.step-selection.select .custom-select-trigger .selected-item-tag .remove-tag:hover {
    color: #ff4444;
}

.step-selection.select .custom-select-trigger .arrow {
    font-family: 'Font Awesome 6 Sharp';
    font-weight: 400;
    font-size: 14px;
    color: #273349;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.step-selection.select .custom-select-trigger.active .arrow {
    transform: rotate(180deg);
}

/* Dropdown de opciones */
.step-selection.select .custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border: 1px solid #2E8CBF;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-selection.select .custom-select-options.show {
    display: block;
}

.step-selection.select .custom-select-option {
    padding: 12px 16px;
    cursor: pointer;
    font-family: 'Articulat-cf';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #273349;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-selection.select .custom-select-option:hover {
    background-color: #2E8CBF1A;
}

.step-selection.select .custom-select-option.selected {
    background-color: #2E8CBF33;
    font-weight: 500;
}

.step-selection.select .custom-select-option .checkbox-icon {
    width: 18px;
    height: 18px;
    border: 2px solid #2E8CBF;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-selection.select .custom-select-option.selected .checkbox-icon::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Sharp';
    font-weight: 900;
    font-size: 12px;
    color: #2E8CBF;
}

/* Ocultar los checkboxes originales pero mantenerlos funcionales */
.step-selection.select .text-selection > label.text-option {
    display: none;
}

/* Estilos para el selector de tallas en formato select (paso 2) */
.step-selection.select ~ #step-2 .size-selector-wrapper {
    margin-bottom: 30px;
}

.step-selection.select ~ #step-2 .size-selector-label {
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #273349;
    margin-bottom: 12px;
    display: block;
}

.step-selection.select ~ #step-2 .size-selector {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-family: 'Articulat-cf';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #273349;
    background-color: #FFFFFF;
    border: 1px solid #ccc;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232E8CBF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-selection.select ~ #step-2 .size-selector:hover {
    border-color: #2E8CBF;
    background-color: #f8f9fa;
}

.step-selection.select ~ #step-2 .size-selector:focus {
    outline: none;
    border-color: #2E8CBF;
    box-shadow: 0 0 0 3px rgba(46, 140, 191, 0.2);
}

.step-selection.select ~ #step-2 .size-selector option {
    padding: 10px;
    font-family: 'Articulat-cf';
    font-weight: 400;
    font-size: 16px;
}

.step-selection.select ~ #step-2 .size-selector option:disabled {
    color: #999;
}

/* Ocultar todas las columnas de talla excepto la seleccionada */
.step-selection.select ~ #step-2 .sizes-table-content {
    display: block !important;
}

.step-selection.select ~ #step-2 .size-column {
    display: none;
}

.step-selection.select ~ #step-2 .size-column.active {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background-color: #2E8CBF1A;
    border-radius: 8px;
}

.step-selection.select ~ #step-2 .size-column.active .size-column-header {
    display: none;
}

.step-selection.select ~ #step-2 .size-column.active .size-column-input {
    width: 100%;
}

.step-selection.select ~ #step-2 .size-column.active .quantity-input-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-selection.select ~ #step-2 .size-column.active .quantity-input-container::before {
    content: 'Cantidad:';
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 16px;
    color: #273349;
    min-width: 100px;
}

.step-selection.select ~ #step-2 .size-column.active .quantity-input {
    flex: 1;
    max-width: 200px;
}

/* El total column siempre visible */
.step-selection.select ~ #step-2 .total-column {
    display: flex !important;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #2E8CBF33;
}

/* Responsive para selects */
@media (max-width: 768px) {
    .step-selection.select .custom-select-trigger {
        padding: 10px 35px 10px 12px;
        font-size: 14px;
        min-height: 42px;
    }

    .step-selection.select .custom-select-option {
        padding: 10px 12px;
        font-size: 14px;
    }

    .step-selection.select .custom-select-trigger .selected-item-tag {
        font-size: 12px;
        padding: 3px 8px;
    }

    .step-selection.select .custom-select-options {
        max-height: 250px;
    }
}
