/* Liscano Power — Municipio libre con sugerencias 2.2.1 */
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #shipping_city_field {
    position: relative;
    overflow: visible !important;
    margin-bottom: 22px;
}

.woocommerce-checkout #billing_city_field > label,
.woocommerce-checkout #shipping_city_field > label {
    display: block;
    margin: 0 0 9px;
    color: #182235;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.woocommerce-checkout #billing_city_field .woocommerce-input-wrapper,
.woocommerce-checkout #shipping_city_field .woocommerce-input-wrapper {
    position: relative;
    display: block;
}

/* Oculta cualquier Select2 residual de una versión anterior. */
.woocommerce-checkout #billing_city_field .select2-container,
.woocommerce-checkout #shipping_city_field .select2-container {
    display: none !important;
}

.woocommerce-checkout #billing_city,
.woocommerce-checkout #shipping_city,
.woocommerce-checkout .lpz-city-text-input {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    color: #4a515c !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 56px !important;
    background: #fff !important;
    border: 1px solid #dce1e8 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(16,24,40,.03) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.woocommerce-checkout #billing_city:focus,
.woocommerce-checkout #shipping_city:focus {
    border-color: #BE1A34 !important;
    box-shadow: 0 0 0 3px rgba(190,26,52,.10) !important;
}

.woocommerce-checkout #billing_city::placeholder,
.woocommerce-checkout #shipping_city::placeholder {
    color: #7d8490 !important;
    opacity: 1;
}

.woocommerce-checkout .lpz-city-suggestions {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    display: block;
    width: 100%;
    max-height: 292px;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff !important;
    border: 1px solid #dce1e8 !important;
    border-radius: 0 !important;
    box-shadow: 0 16px 40px rgba(16,24,40,.16) !important;
}

.woocommerce-checkout .lpz-city-suggestions[hidden] {
    display: none !important;
}

.woocommerce-checkout .lpz-city-suggestion,
.woocommerce-checkout .lpz-city-use-manual {
    display: block !important;
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    color: #252c37 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    text-align: left !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.woocommerce-checkout .lpz-city-suggestion + .lpz-city-suggestion {
    border-top: 1px solid #f1f2f4 !important;
}

.woocommerce-checkout .lpz-city-suggestion:hover,
.woocommerce-checkout .lpz-city-suggestion.is-active {
    color: #fff !important;
    background: #BE1A34 !important;
}

.woocommerce-checkout .lpz-city-use-manual {
    position: sticky;
    bottom: 0;
    margin-top: 6px !important;
    color: #BE1A34 !important;
    font-weight: 700 !important;
    background: #fff4f6 !important;
    border-top: 1px solid #f3cbd2 !important;
}

.woocommerce-checkout .lpz-city-use-manual:hover:not(:disabled) {
    color: #fff !important;
    background: #BE1A34 !important;
}

.woocommerce-checkout .lpz-city-use-manual:disabled {
    color: #969da7 !important;
    background: #f7f8fa !important;
    cursor: default !important;
}

.woocommerce-checkout .lpz-field-hint {
    display: block;
    margin-top: 7px;
    color: #737b87;
    font-size: 12px;
    line-height: 1.4;
}

.woocommerce-checkout .lpz-field-hint.is-manual {
    color: #8a4b00;
}

.woocommerce-checkout .lpz-field-hint:empty {
    display: none !important;
}

@media (max-width: 767px) {
    .woocommerce-checkout #billing_city,
    .woocommerce-checkout #shipping_city,
    .woocommerce-checkout .lpz-city-text-input {
        height: 52px !important;
        min-height: 52px !important;
        line-height: 52px !important;
    }

    .woocommerce-checkout .lpz-city-suggestions {
        max-height: min(42vh, 280px) !important;
    }

    .woocommerce-checkout .lpz-city-suggestion,
    .woocommerce-checkout .lpz-city-use-manual {
        min-height: 46px !important;
        padding: 13px 12px !important;
    }
}
