/**
 * 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;
}
.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;
}

.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: #2E8CBF1A;
}

.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;
}

/* 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 */
.customization-products-container {
    font-family: 'Articulat-cf', Arial, sans-serif;
    margin: 20px 0 55px;
}

.customization-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;
}

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

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

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

.customization-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;
}
.customization-label div{
    background-color: #2E8CBF1A;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.customization-label div .product-name{
    color: #2E8CBF;
    font-family: 'Articulat-cf';
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
}
.customization-label div i{
    font-size: 20px;
    color: #2E8CBF;
    font-weight: 300;
    font-family: 'Font Awesome 6 pro';
}

.customization-checkbox:checked + .customization-label div {
    background-color: #2E8CBF;
}
.customization-checkbox:checked + .customization-label .product-name ,
.customization-checkbox:checked + .customization-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;
}

.customization-checkbox:checked + .customization-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) {
    .customization-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
        
    .customization-products-container .customization-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .product-name {
        font-size: 14px;
        line-height: 18px;
    }
    .customization-products-container{
        margin: 20px 0 30px;
    }
    .customization-products-container .customization-title, .product-customization .instructions{
        font-size: 16px;
        line-height: 20px;
    }
    .customization-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 GRUPOS DE CALENDARIO EN EL CARRITO
   ===================================================== */

.calendar-group-container {
    margin-bottom: 24px;
    border: 2px solid #e0e7ef;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.calendar-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(90deg, #1e3a5f 0%, #2e5a8f 100%);
    color: #fff;
    border-bottom: 1px solid #dee2e6;
}

.calendar-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.calendar-group-title i {
    font-size: 18px;
}

.calendar-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
}

.calendar-type-badge.badge-normal {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.calendar-type-badge.badge-personalized {
    background-color: #f59e0b;
    color: #fff;
}

.calendar-main-product {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.calendar-main-product .product-line {
    margin-bottom: 0;
}

.calendar-related-products {
    background: #f8fafc;
    border-top: 1px dashed #d1d5db;
}

.calendar-related-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #eef2f7;
    border-bottom: 1px solid #e0e4eb;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.calendar-related-header i {
    color: #6b7280;
}

.calendar-related-item {
    padding: 12px 20px 12px 36px;
    border-bottom: 1px solid #eef2f7;
    position: relative;
}

.calendar-related-item:last-child {
    border-bottom: none;
}

.calendar-related-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
}

.calendar-related-item.item-lamina::before {
    background: #3b82f6;
}

.calendar-related-item.item-faldilla::before {
    background: #10b981;
}

.calendar-related-item.item-extra::before {
    background: #f59e0b;
}

.calendar-related-item.item-design::before {
    background: #8b5cf6;
}

/* Producto relacionado - layout compacto */
.calendar-related-item .product-line {
    margin-bottom: 0;
}

.calendar-related-item .product-line--related {
    font-size: 0.95em;
}

.calendar-related-item .product-line__image {
    max-width: 60px;
}

/* Badge del tipo de producto relacionado */
.product-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.product-type-badge.badge-lamina {
    background: #dbeafe;
    color: #1d4ed8;
}

.product-type-badge.badge-faldilla {
    background: #d1fae5;
    color: #047857;
}

.product-type-badge.badge-extra {
    background: #fef3c7;
    color: #b45309;
}

.product-type-badge.badge-design {
    background: #ede9fe;
    color: #6d28d9;
}

/* Vinculación lámina-faldilla */
.product-line__linked-to {
    margin-top: 4px;
    padding: 4px 8px;
    background: #f0fdf4;
    border-radius: 4px;
    border-left: 3px solid #10b981;
}

.product-line__linked-to small {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-line__linked-to i {
    color: #10b981;
}

/* Totales del grupo */
.calendar-group-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.calendar-group-total {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.calendar-group-total .price {
    color: #2563eb;
    font-size: 18px;
    margin-left: 8px;
}

/* Botón eliminar grupo */
.remove-calendar-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.remove-calendar-group:hover {
    color: #b91c1c;
    text-decoration: underline;
}

.remove-calendar-group::before {
    content: '\f2ed';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
}

/* Responsive para grupos de calendario */
@media (max-width: 768px) {
    .calendar-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 15px;
    }
    
    .calendar-group-title {
        font-size: 14px;
    }
    
    .calendar-main-product,
    .calendar-related-item {
        padding: 12px 15px;
    }
    
    .calendar-related-item {
        padding-left: 28px;
    }
    
    .calendar-related-item::before {
        left: 15px;
    }
    
    .calendar-related-header {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .calendar-group-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 12px 15px;
    }
    
    .product-line__linked-to {
        margin-top: 6px;
    }
}
