/* J&T Express Frontend Styles */

/* ----------------------------------------------------------------
   Hide Country / Region field - Plugin forces Indonesia (ID)
   ---------------------------------------------------------------- */

/* Hide the hidden-type country input and its wrapper */
.jnt-hidden-field,
.woocommerce-checkout p.form-row.jnt-hidden-field,
.woocommerce-checkout .jnt-hidden-field {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide WooCommerce's own Country label wrappers if they slip through */
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #shipping_country_field {
    display: none !important;
}

.jnt-select-provinsi select,
.jnt-select-city select,
.jnt-select-district select,
.jnt-prov-select,
.jnt-city-select,
.jnt-district-select {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 4px !important;
}

/* Select2 Checkout Styling */
.woocommerce-checkout .select2-container {
    width: 100% !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 44px !important;
    border: 1px solid #d3ced2 !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #fff !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    font-size: 14px !important;
    color: #333 !important;
    padding-left: 12px !important;
    padding-right: 28px !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 8px !important;
}

.woocommerce-checkout .select2-dropdown {
    border: 1px solid #2271b1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-radius: 4px !important;
    z-index: 99999 !important;
}

.woocommerce-checkout .select2-search--dropdown .select2-search__field {
    padding: 8px 12px !important;
    font-size: 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .select2-results__option {
    padding: 8px 12px !important;
    font-size: 14px !important;
}

.woocommerce-checkout .select2-results__option--highlighted[aria-selected] {
    background-color: #e02424 !important;
    color: #fff !important;
}

/* Tracking Timeline Stepper */
.jnt-timeline-item:last-child {
    margin-bottom: 0 !important;
}

.jnt-tracking-timeline-card {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
