/* ETA Display Box */
.pathao-eta-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-left: 5px solid #22c55e;
    border-radius: 6px;
    padding: 10px 15px;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #14532d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pathao-eta-text {
    line-height: 1.4;
    text-align: left;
    width: 100%;
    font-weight: 600;
}

.pathao-eta-text strong {
    color: #15803d;
    font-weight: 500;
}

/* --- CRITICAL FIX FOR CART PAGE --- */

/* 1. Override Theme's Flex NoWrap to allow wrapping */
.woocommerce .cart_totals ul#shipping_method li {
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
}

/* 2. Force ETA Box to break to a new line and take full width */
.woocommerce-cart .pathao-eta-box {
    display: flex !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    /* Takes up 100% of the flex container */
    margin-top: 8px !important;
    clear: both !important;
}

/* Dropdown Field Tweaks */
#billing_pathao_city_field .select2-selection,
#billing_pathao_zone_field .select2-selection,
#billing_pathao_area_field .select2-selection {
    height: 40px;
    line-height: 40px;
}

/* Loading State */
.pathao-loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Force Hide Standard WooCommerce Fields (City/State) */
/* The plugin handles syncing these values in the background */
#billing_city_field,
#billing_state_field,
#shipping_city_field,
#shipping_state_field,
#billing_postcode_field,
#shipping_postcode_field {
    display: none !important;
}