/**
 * Shoptimizer Child Theme - Custom CSS
 *
 * This file loads LAST and has HIGHEST PRIORITY
 * Use this file to override any parent theme styles
 *
 * Priority: 999 (loads after all other stylesheets)
 *
 * @package Shoptimizer Child Theme
 */

/* =============================================================================
   ADD YOUR CUSTOM CSS HERE
   ============================================================================= */

/* Example: Override parent theme colors */
/*
body {
    background-color: #ffffff;
}
*/

/* Example: Override typography */
/*
h1, h2, h3, h4, h5, h6 {
    font-family: 'Your Font', sans-serif;
}
*/

/* Example: Override button styles */
/*
.button {
    background-color: #ff6b6b;
    color: #ffffff;
}
*/

/* Example: Custom carousel overrides from child theme */
/*
.shoptimizer-carousel-wrapper .carousel-arrow {
    background: rgba(0, 0, 0, 0.9);
}

.shoptimizer-carousel-wrapper .carousel-bullet.active {
    background: #ff6b6b;
}
*/

/* =============================================================================
   SHIPPING CLASS BREAKDOWN STYLES
   ============================================================================= */

.shipping-method-breakdown {
    margin-top: 8px;
}

.shipping-main-label {
    font-weight: 600;
    font-size: 1em;
    line-height: 1.4;
}

.shipping-delivery-estimate {
    margin-top: 6px;
    color: #28a745;
    font-weight: 500;
}

.shipping-delivery-estimate small {
    display: block;
    line-height: 1.4;
}

.shipping-international-notice {
    margin-top: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    color: #ffffff;
}

.shipping-international-notice small {
    display: block;
    font-weight: 500;
    font-size: 0.85em;
    line-height: 1.4;
}

.shipping-class-details {
    margin-top: 10px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.shipping-class-item {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.shipping-class-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shipping-class-item:first-child {
    padding-top: 0;
}

.shipping-class-name {
    margin-bottom: 4px;
}

.shipping-class-name small {
    font-weight: 600;
    color: #212529;
    font-size: 0.9em;
    display: block;
}

.shipping-class-delivery {
    margin-top: 4px;
}

.shipping-class-delivery small {
    color: #28a745;
    font-size: 0.85em;
    line-height: 1.4;
}

.shipping-class-delivery strong {
    font-weight: 600;
    color: #28a745;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .shipping-class-details {
        padding: 10px 12px;
    }

    .shipping-class-name small {
        font-size: 0.85em;
    }

    .shipping-class-delivery small {
        font-size: 0.8em;
    }

    .shipping-international-notice small {
        font-size: 0.8em;
    }

    .shipping-delivery-estimate small {
        font-size: 0.8em;
    }
}

/* =============================================================================
   PRODUCT PAGE DELIVERY DATE STYLES - PREMIUM DESIGN
   ============================================================================= */

.product-delivery-date-wrapper {
    margin: 20px 0;
}

.product-delivery-date-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.product-delivery-date-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    border-color: #dc9814;
}

.delivery-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef9f3 0%, #fdf2e9 100%);
    border-radius: 10px;
    flex-shrink: 0;
}

.delivery-icon svg {
    width: 26px;
    height: 26px;
    color: #dc9814;
}

.delivery-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delivery-label {
    font-weight: 500;
    font-size: 0.85em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delivery-date {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.1em;
    line-height: 1.3;
}

.delivery-estimate {
    display: block;
    color: #666;
    font-size: 0.85em;
    margin-top: 2px;
    font-weight: 400;
}

.delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #dc9814 0%, #c48a12 100%);
    color: #ffffff;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(220, 152, 20, 0.3);
    width: fit-content;
}

.delivery-badge svg {
    width: 14px;
    height: 14px;
}

.delivery-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f0f0f0;
    border-top-color: #dc9814;
    border-radius: 50%;
    animation: delivery-spin 0.8s linear infinite;
}

@keyframes delivery-spin {
    to {
        transform: rotate(360deg);
    }
}

/* International styling variant */
.product-delivery-date-wrapper[data-international="true"] .product-delivery-date-card {
    background: #fff;
    border-color: #eaeaea;
}

.product-delivery-date-wrapper[data-international="true"] .delivery-icon {
    background: linear-gradient(135deg, #fef9f3 0%, #fdf2e9 100%);
}

.product-delivery-date-wrapper[data-international="true"] .delivery-date {
    color: #1a1a1a;
}

.product-delivery-date-wrapper[data-international="true"] .delivery-badge {
    background: linear-gradient(135deg, #dc9814 0%, #c48a12 100%);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .product-delivery-date-card {
        padding: 12px;
        gap: 10px;
    }

    .delivery-icon {
        font-size: 24px;
    }

    .delivery-label {
        font-size: 0.9em;
    }

    .delivery-date {
        font-size: 1em;
    }

    .delivery-estimate {
        font-size: 0.8em;
    }

    .delivery-badge {
        font-size: 0.75em;
        padding: 3px 8px;
    }
}

/* =============================================================================
   WHATSAPP ORDER BUTTON STYLES
   ============================================================================= */

.whatsapp-order-button-wrapper {
    margin: 0;
    display: flex;
    flex: 1;
}

.whatsapp-order-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    line-height: 48px;
    padding: 0 20px;
    background-color: transparent;
    color: #25D366;
    border: 2px solid #25D366;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.whatsapp-order-button:hover {
    background-color: rgba(37, 211, 102, 0.08);
}

.whatsapp-order-button:active {
    transform: translateY(0);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}