/* Scoped to HK WooCommerce address fields; the page and order summary keep Elementor styling. */
.woocommerce .form-row.alphga-hk-concealed { display: none !important; }
.woocommerce .form-row.alphga-hk-simple {
    position: relative !important;
    float: none !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100%;
    margin: 0 0 16px !important;
    padding: 0 !important;
}
.woocommerce .form-row.alphga-hk-simple > label {
    position: absolute !important;
    top: 8px;
    left: 16px;
    z-index: 1;
    display: block !important;
    width: calc(100% - 32px);
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    clip: auto;
    clip-path: none;
    color: #667085;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
    opacity: 0;
    pointer-events: none;
}
.woocommerce .form-row.alphga-hk-simple .input-text,
.woocommerce .form-row.alphga-hk-simple select,
.woocommerce .form-row.alphga-hk-simple .select2-selection {
    box-sizing: border-box;
    width: 100%;
    min-height: 64px !important;
    border: 1px solid #8A94A6;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    padding: 16px !important;
    font-size: 16px !important;
    line-height: 1.5;
    box-shadow: none;
}
.woocommerce .form-row.alphga-hk-simple input::placeholder { color: #667085; opacity: 1; }
.woocommerce .form-row.alphga-hk-simple:focus-within > label,
.woocommerce .form-row.alphga-hk-simple:has(input:not(:placeholder-shown)) > label,
.woocommerce .form-row.alphga-hk-simple:has(select) > label { opacity: 1; }
.woocommerce .form-row.alphga-hk-simple:focus-within input,
.woocommerce .form-row.alphga-hk-simple input:not(:placeholder-shown),
.woocommerce .form-row.alphga-hk-simple select,
.woocommerce .form-row.alphga-hk-simple .select2-selection { padding-top: 30px !important; padding-bottom: 8px !important; }
.woocommerce .form-row.alphga-hk-simple input:focus::placeholder { color: transparent; }
.woocommerce .form-row.alphga-hk-simple input:focus-visible,
.woocommerce .form-row.alphga-hk-simple select:focus-visible,
.woocommerce .form-row.alphga-hk-simple .select2-selection:focus-visible { outline: 2px solid #1F365C; outline-offset: 2px; }
.woocommerce .form-row.alphga-hk-simple .select2-selection__rendered { padding: 0 !important; line-height: 24px !important; }
.woocommerce .form-row.alphga-hk-simple .select2-selection__arrow { top: 24px !important; height: 24px !important; }
.woocommerce .alphga-hk-contact { width: 100%; margin: 32px 0 16px; color: inherit; }
/* Long address labels wrap on small screens without overlapping the entered value. */
@media (max-width: 480px) {
    .woocommerce .form-row.alphga-hk-simple[id$="address_1_field"]:focus-within input,
    .woocommerce .form-row.alphga-hk-simple[id$="address_1_field"] input:not(:placeholder-shown),
    .woocommerce .form-row.alphga-hk-simple[id$="address_2_field"]:focus-within input,
    .woocommerce .form-row.alphga-hk-simple[id$="address_2_field"] input:not(:placeholder-shown) { min-height: 88px !important; padding-top: 54px !important; }
}

.woocommerce .form-row.alphga-hk-simple.woocommerce-invalid .input-text { border-color: #B83E39; }
