.korea-address-postcode-button,
.postcode-button {
    box-sizing: border-box;
    width: 100%;
    height: var(--theme-form-field-height, 50px);
}

#billing_phone_field,
#shipping_phone_field,
#billing_postcode_search_field,
#shipping_postcode_search_field,
#billing_postcode_field,
#shipping_postcode_field,
#billing_address_1_field,
#shipping_address_1_field,
#billing_address_2_field,
#shipping_address_2_field,
.wc-block-components-address-form .wc-block-components-address-form__phone,
.wc-block-components-address-form .wc-block-components-address-form__postcode,
.wc-block-components-address-form .wc-block-components-address-form__address_1,
.wc-block-components-address-form .wc-block-components-address-form__address_2,
.wc-block-components-address-form .korea-address-postcode-action {
    clear: both;
    float: none;
    width: 100%;
    grid-column: 1 / -1;
}

#billing_country_field,
#shipping_country_field,
#billing_state_field,
#shipping_state_field,
#billing_city_field,
#shipping_city_field,
.wc-block-components-address-form .wc-block-components-address-form__country,
.wc-block-components-address-form .wc-block-components-country-input,
.wc-block-components-address-form .wc-block-components-address-form__state,
.wc-block-components-address-form .wc-block-components-state-input,
.wc-block-components-address-form .wc-block-components-address-form__city {
    display: none !important;
}

.wc-block-components-address-form .korea-address-postcode-action {
    margin-top: 12px;
}

.korea-address-postcode-panel {
    width: 100%;
    margin: 12px 0 16px;
    overflow: clip;
    border: var(--theme-form-field-border-width, 1px) var(--theme-form-field-border-style, solid) var(--theme-form-field-border-initial-color, var(--theme-border-color));
    border-radius: var(--theme-form-field-border-radius, 3px);
    background: var(--theme-form-field-background-initial-color, var(--theme-palette-color-8, #fff));
    box-shadow: var(--theme-form-field-box-shadow, none);
}

.korea-address-postcode-panel[hidden] {
    display: none;
}

.korea-address-postcode-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px 0 16px;
    border-bottom: var(--theme-form-field-border-width, 1px) var(--theme-form-field-border-style, solid) var(--theme-form-field-border-initial-color, var(--theme-border-color));
    color: var(--theme-headings-color, var(--theme-text-color));
    font-size: 15px;
    font-weight: 700;
}

.korea-address-postcode-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--theme-text-color);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.korea-address-postcode-close:hover {
    color: var(--theme-link-hover-color, var(--theme-text-color));
    background: color-mix(in srgb, currentColor 8%, transparent);
}

.korea-address-postcode-container {
    position: relative;
    width: 100%;
    height: min(430px, 58vh);
    min-height: 360px;
}

.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input,
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input .wc-block-components-text-input__wrapper {
    line-height: inherit;
    white-space: normal;
}

.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input,
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input .wc-block-components-text-input__wrapper {
    display: flex;
    flex-direction: column;
}

.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input > input,
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input .wc-block-components-text-input__wrapper > input {
    order: 2;
}

.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input__help,
.wc-block-checkout .wc-block-components-address-form .wc-block-components-validation-error {
    order: 3;
}

.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input > label,
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input .wc-block-components-text-input__wrapper > label {
    position: static !important;
    order: 1;
    display: block;
    max-width: 100%;
    margin: 0 0 6px;
    color: var(--theme-form-text-initial-color, var(--theme-text-color));
    font-size: var(--theme-form-font-size, 15px);
    line-height: 1.4;
    transform: none !important;
    transition: none;
    cursor: default;
}

.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input input[type="email"],
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input input[type="number"],
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input input[type="password"],
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input input[type="tel"],
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input input[type="text"],
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input input[type="url"],
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active input[type="email"],
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active input[type="number"],
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active input[type="password"],
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active input[type="tel"],
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active input[type="text"],
.wc-block-checkout .wc-block-components-address-form .wc-block-components-text-input.is-active input[type="url"] {
    padding: var(--theme-form-field-padding, 0 15px) !important;
}

@media (max-width: 480px) {
    .korea-address-postcode-container {
        height: 380px;
        min-height: 340px;
    }
}
