/* Style the input with a dropdown icon */
#shipping_city, #billing_city {
    background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 20 20" fill="none"><path d="M5 8l5 5 5-5" fill="black"/></svg>') no-repeat right 10px center;
    background-size: 14px 14px;
    padding-right: 30px; /* Adjust for the icon */
    border: 1px solid #ddd;
    border-radius: 4px;
/*     width: 48%; */
/* 	display: inline-block; */
    box-sizing: border-box;
}

#shipping_city:focus, #billing_city:focus {
    border-color: #007cba; /* Optional: Highlight color on focus */
    outline: none;
}


/* Custom shipping fields dropdown */

.woocommerce-input-wrapper {
    position: relative; /* Create a positioning reference for the dropdown. */
}
#billing_city, #shipping_city {
    resize: none;
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
    font-size: 13px;
    line-height: 1.35;
    min-height: 48px;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
}
.district-clear-btn {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    display: none;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #68746b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}
.district-clear-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}
.custom-dropdown {
    position: absolute; /* Keep the dropdown above nearby checkout elements. */
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none; /* Hidden by default. */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.custom-dropdown .dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.custom-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown .dropdown-item:hover {
    background: #f7f7f7;
}


.custom-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none; /* Hidden by default */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* Ensure it is above other elements */
}

.custom-dropdown .dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.custom-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown .dropdown-item:hover {
    background: #f7f7f7;
}

.custom-dropdown .no-results {
    color: #666;
    padding: 8px 12px;
    text-align: center;
}

.custom-loader {
    margin-top: 5px;
    color: #666;
    font-size: 14px;
    display: none; /* Hidden by default */
}

.sharff-destination-point {
    margin-top: 10px;
}

.sharff-destination-point label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 13px;
    font-weight: 700;
}

.sharff-destination-point select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #555;
}

.sharff-destination-point__hint {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
}

.sharff-destination-point__map-link {
    color: #ED2183;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sharff-next-package-note {
    display: inline-block;
    margin-top: 5px;
    color: #68746b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

/* 
.woocommerce-billing-fields .form-row-first,
.woocommerce-billing-fields .form-row-last {
    width: 46%; 
    display: inline-block;
} */


/* .form-row .select2-container--default .select2-selection--single, .select2 .select2-container .select2-container--default .select2-container--below {
	width: 48%;
	display: inline-block;
} */


/* Region and city side by side on desktop. */
@media (min-width: 768px) {
    .woocommerce-billing-fields .form-row-first,
    .woocommerce-billing-fields .form-row-last {
        width: 48% !important;
        display: inline-block !important;
    }
}

/* Region and city full-width on mobile. */
@media (max-width: 767px) {
    .woocommerce-billing-fields .form-row-first,
    .woocommerce-billing-fields .form-row-last {
        width: 100% !important;
        display: block !important;
    }
}
