/* WooCommerce Estimated Delivery Styles */

.wc-estimated-delivery-container {
    margin: 15px 0;
    clear: both;
    width: 100%;
}

.wc-estimated-delivery {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-left: 4px solid #28a745;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: all 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.wc-estimated-delivery:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Delivery Icon */
.wc-delivery-icon {
    flex-shrink: 0;
    color: #28a745;
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

/* Content Container */
.wc-delivery-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    line-height: 1.3;
}

/* Label Text */
.wc-delivery-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Delivery Dates */
.wc-delivery-dates {
    font-size: 15px;
    color: #28a745;
    font-weight: 700;
}

.wc-delivery-dates strong {
    font-weight: 700;
    color: #28a745;
}

/* When inside variations form */
.variations_button .wc-estimated-delivery-container {
    margin: 15px 0 15px 0;
}

/* When placed before add to cart button */
.woocommerce-variation-add-to-cart .wc-estimated-delivery-container {
    order: -1; /* Move it before quantity and button */
    width: 100%;
    margin-bottom: 15px;
}

/* Ensure it displays on its own line */
.wc-estimated-delivery-container {
    display: block;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-estimated-delivery {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .wc-delivery-icon {
        width: 20px;
        height: 20px;
    }
    
    .wc-delivery-label {
        font-size: 11px;
    }
    
    .wc-delivery-dates {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wc-estimated-delivery-container {
        margin: 12px 0;
    }
    
    .wc-estimated-delivery {
        padding: 10px 14px;
        gap: 8px;
    }
    
    .wc-delivery-label {
        font-size: 10px;
    }
    
    .wc-delivery-dates {
        font-size: 13px;
    }
}

/* Alternative Color Schemes - Uncomment to use */

/* Blue Theme */
/*
.wc-estimated-delivery {
    border-left-color: #007bff;
}

.wc-delivery-icon {
    color: #007bff;
}

.wc-delivery-dates strong {
    color: #007bff;
}
*/

/* Orange Theme */
/*
.wc-estimated-delivery {
    border-left-color: #fd7e14;
}

.wc-delivery-icon {
    color: #fd7e14;
}

.wc-delivery-dates strong {
    color: #fd7e14;
}
*/

/* Purple Theme */
/*
.wc-estimated-delivery {
    border-left-color: #6f42c1;
}

.wc-delivery-icon {
    color: #6f42c1;
}

.wc-delivery-dates strong {
    color: #6f42c1;
}
*/

/* Dark Theme */
/*
.wc-estimated-delivery {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: #1a252f;
    border-left-color: #3498db;
}

.wc-delivery-icon {
    color: #3498db;
}

.wc-delivery-label {
    color: #bdc3c7;
}

.wc-delivery-dates {
    color: #ecf0f1;
}

.wc-delivery-dates strong {
    color: #3498db;
}
*/

/* Minimal Theme */
/*
.wc-estimated-delivery {
    background: transparent;
    border: none;
    border-left: 3px solid #28a745;
    padding: 12px 0 12px 16px;
    box-shadow: none;
}

.wc-estimated-delivery:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}
*/

/* Boxed Theme */
/*
.wc-estimated-delivery {
    background: #28a745;
    border: none;
    color: white;
}

.wc-delivery-icon {
    color: white;
}

.wc-delivery-label {
    color: rgba(255, 255, 255, 0.9);
}

.wc-delivery-dates {
    color: white;
}

.wc-delivery-dates strong {
    color: white;
    font-weight: 900;
}
*/

/* Animation for first load */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-estimated-delivery-container {
    animation: slideInUp 0.4s ease-out;
}

/* Print Styles */
@media print {
    .wc-estimated-delivery {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}
