/* ============================================
   SISTEMA DE NOTIFICACION DE RETRASO DE ENVIOS
   Taika Joyeria
   ============================================ */

/* Banner Superior Global */
.service-notice-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    position: relative;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out;
}

.service-notice-banner .notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
}

.service-notice-banner i {
    font-size: 18px;
    color: #f39c12;
}

/* Banner en Carrito - Expandible */
.cart-delay-notice {
    background: linear-gradient(to right, #fff3cd 0%, #fff8e1 100%);
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.cart-delay-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #f39c12;
}

.delay-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    cursor: pointer;
}

.delay-notice-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.delay-notice-title i {
    font-size: 22px;
    color: #f39c12;
}

.delay-expand-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.delay-expand-btn:hover {
    background: rgba(52, 152, 219, 0.1);
}

.delay-notice-summary {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.delay-notice-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.delay-notice-details.expanded {
    max-height: 400px;
}

.delay-notice-content {
    padding-top: 16px;
    border-top: 1px solid rgba(243, 156, 18, 0.3);
}

.delay-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.delay-option {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.delay-option i {
    font-size: 24px;
    color: #27ae60;
    margin-top: 2px;
}

.delay-option-content h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.delay-option-content p {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Modal de Checkout */
.shipping-delay-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.shipping-delay-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease-out;
}

.modal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 24px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header i {
    font-size: 28px;
    color: #f39c12;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px 24px;
}

.modal-intro {
    font-size: 15px;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #f39c12;
}

.modal-date-highlight {
    background: linear-gradient(to right, #fff3cd, #fff8e1);
    border: 2px solid #f39c12;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin: 20px 0;
}

.modal-date-highlight .date-label {
    font-size: 13px;
    color: #856404;
    font-weight: 500;
    margin-bottom: 6px;
}

.modal-date-highlight .date-value {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
}

.modal-options-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 24px 0 16px 0;
}

.modal-option {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.3s ease;
}

.modal-option:hover {
    border-color: #27ae60;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.1);
}

.modal-option i {
    font-size: 26px;
    color: #27ae60;
    margin-top: 2px;
}

.modal-option-content h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.modal-option-content p {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px 24px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.modal-cta {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

.modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.modal-footer-note {
    margin-top: 12px;
    font-size: 12px;
    color: #95a5a6;
}

/* Banner en Checkout */
.checkout-delay-banner {
    background: linear-gradient(to right, #e8f5e9, #f1f8e9);
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.checkout-delay-banner i {
    font-size: 28px;
    color: #4caf50;
}

.checkout-delay-content h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2e7d32;
}

.checkout-delay-content p {
    margin: 0;
    font-size: 13px;
    color: #558b2f;
    line-height: 1.5;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .service-notice-banner .notice-content {
        font-size: 13px;
        padding: 0 15px;
    }
    
    .cart-delay-notice {
        padding: 16px;
    }
    
    .delay-options {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px 18px;
    }
}