.site-header .kogado-region-trigger {
    display: inline-flex;
    align-items: center;
    min-width: 30px;
    min-height: 36px;
    justify-content: center;
    padding: 0 3px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: .78rem;
    white-space: nowrap;
    cursor: pointer;
}
.kogado-region-trigger:focus-visible, #kogado-region-dialog :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
#kogado-region-dialog {
    box-sizing: border-box;
    width: min(440px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    overflow: auto;
    padding: clamp(20px, 5vw, 34px);
    border: 1px solid #e2e0d9;
    border-radius: 3px;
    background: #fff;
    color: #222;
}
#kogado-region-dialog::backdrop { background: rgb(0 0 0 / .44); }
.kogado-region-form { display: grid; gap: 9px; }
.kogado-region-form h2 { margin: 0 0 9px; font-size: clamp(22px, 5vw, 30px); line-height: 1.13; }
.kogado-region-form label { font-weight: 600; }
.kogado-region-form select { width: 100%; min-height: 44px; padding: 8px; margin-bottom: 8px; font: inherit; }
.kogado-region-form p { font-size: .9rem; margin: 0 0 9px; line-height: 1.5; }
.kogado-region-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.kogado-region-actions button { min-height: 44px; }
.kogado-region-skip { padding: 4px; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.kogado-checkout-destination {
    clear: both;
    margin: 4px 0 14px;
    font-size: .875rem;
    overflow-wrap: anywhere;
}
.kogado-checkout-destination button {
    min-block-size: 44px;
    max-inline-size: 100%;
    padding: 4px 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: start;
    text-decoration: underline;
    cursor: pointer;
}

html[data-kogado-locale] :is(main, .kogado-footer, [data-kgv-invite], [data-newsletter], #kogado-region-dialog) :is(h1, h2, h3) {
    text-wrap: balance;
    overflow-wrap: anywhere;
}
html[data-kogado-locale] :is(main, [data-kgv-invite], [data-newsletter], #kogado-region-dialog) p {
    text-wrap: pretty;
    overflow-wrap: anywhere;
}
html[data-kogado-locale] .woocommerce-notices-wrapper .wc-block-components-notice-banner__content li {
    overflow-wrap: anywhere;
}
html:is([data-kogado-locale="ja-JP"], [data-kogado-locale="zh-CN"]) .woocommerce-notices-wrapper .wc-block-components-notice-banner__content li {
    text-wrap: balance;
    line-break: strict;
}
html:is([data-kogado-locale="ja-JP"], [data-kogado-locale="zh-CN"]) .experience-heading > p {
    text-wrap: balance;
    line-break: strict;
}
html[data-kogado-locale="ja-JP"] .experience-heading > p {
    word-break: auto-phrase;
}
html[data-kogado-locale] :is(main, .kogado-footer, dialog[open]) :is(dt, dd, figcaption, label, legend, summary) {
    min-inline-size: 0;
    overflow-wrap: anywhere;
}
html:is([data-kogado-locale="ja-JP"], [data-kogado-locale="zh-CN"]) :is(main, .kogado-footer, dialog[open]) :is(dt, dd, figcaption, label, legend, summary) {
    text-wrap: balance;
    line-break: strict;
}
html[data-kogado-locale] :is(main, [data-kgv-invite], #kogado-region-dialog) :is(.button, .experience-button, .pdf-button) {
    max-inline-size: 100%;
    white-space: normal;
}
html[data-kogado-locale] .experience-hero-copy {
    container-type: inline-size;
}
html[data-kogado-locale] .experience-hero-copy h1[data-kogado-headline] {
    font-size: clamp(26px, 9cqi, 76px);
}
html:is([data-kogado-locale="ja-JP"], [data-kogado-locale="zh-CN"]) .experience-hero-copy h1[data-kogado-headline] {
    font-size: clamp(26px, 12cqi, 76px);
}
:is(h1[data-kogado-headline], h2[data-kogado-ipura-headline]) > span {
    display: block;
    white-space: nowrap;
}
.experience-dark .experience-heading:has(h2[data-kogado-ipura-headline]) {
    container-type: inline-size;
}
.experience-dark .experience-heading h2[data-kogado-ipura-headline] {
    font-size: clamp(25px, 5cqi, 58px);
}
@media (max-width: 700px) {
    .experience-dark .experience-heading h2[data-kogado-ipura-headline] {
        font-size: clamp(28px, 11cqi, 34px);
    }
}
/* Let specs wrap without clipping inside the image on narrow product cards. */
.collection .card-specs :is(dt,dd) {
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: pretty;
}
@media (max-width: 900px) {
    .collection .product-card-media:not(.show-specs) .card-specs { display: none; }
    .collection .product-card-media.show-specs:not(.is-buying) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .collection .show-specs:not(.is-buying) > .product-photo,
    .collection .show-specs:not(.is-buying) > .card-details-toggle { grid-area: 1 / 1; }
    .collection .show-specs:not(.is-buying) > .card-details-toggle {
        position: relative;
        inset: auto;
        align-self: end;
        justify-self: end;
        margin: 8px;
    }
    .collection .show-specs:not(.is-buying) > .card-specs {
        position: static;
        grid-area: 2 / 1;
        margin: 4px 0 0;
        padding: 12px;
        background: #f5f5f2;
        border: 0;
        border-radius: 12px;
        backdrop-filter: none;
        pointer-events: auto;
    }
    .collection .show-specs:not(.is-buying) .card-specs dl {
        display: grid;
        gap: 8px;
    }
    .collection .show-specs:not(.is-buying) .card-specs dl > div { display: block; }
    .collection .show-specs:not(.is-buying) .card-specs dt { margin: 0 0 2px; }
}

/* The approved Japanese headline wraps naturally on a narrow screen. */
html[data-kogado-locale="ja-JP"] h2[data-kogado-ipura-headline] > span {
    white-space: normal;
}
html[data-kogado-locale="ja-JP"] main :is(.pdf-eyebrow, .pdf-kicker, .experience-eyebrow, .experience-heading > p) {
    text-transform: none !important;
}
