@media (max-width: 680px) {
    #swNavbar > .sw-container:has(> .yx-header-language) {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) max-content max-content 44px;
        align-items: center;
        gap: 8px 5px !important;
    }
    #swNavbar > .sw-container > .sw-logo-link {
        grid-area: 1 / 1;
        min-width: 0;
    }
    #swNavbar > .sw-container > .sw-btn-primary[data-yx-compact-quote] {
        grid-area: 1 / 2;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 8px !important;
        height: 36px !important;
        gap: 0 !important;
        font-size: 0 !important;
    }
    #swNavbar > .sw-container > .sw-btn-primary[data-yx-compact-quote] > * {
        display: none !important;
    }
    #swNavbar > .sw-container > .sw-btn-primary[data-yx-compact-quote]::after {
        content: attr(data-yx-compact-quote) !important;
        font-size: 13px !important;
    }
    #swNavbar > .sw-container > .yx-header-language {
        grid-area: 1 / 3;
        margin: 0 !important;
        min-width: 78px !important;
    }
    #swNavbar > .sw-container > .yx-header-language > select[data-younxin-language] {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 78px !important;
        max-width: none !important;
        font-size: 14px !important;
        text-indent: 0 !important;
        padding-inline: 2px !important;
    }
    #swNavbar > .sw-container > .sw-hamburger {
        grid-area: 1 / 4;
        justify-self: end;
        margin: 0 !important;
    }
    #swNavbar > .sw-container > .sw-search-nav-slot {
        grid-area: 2 / 1 / 3 / -1;
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
    }
}
/* Keep the language control at the right of the header in its existing slot. */
html[dir="rtl"] #swNavbar > .sw-container:has(> .yx-header-language) { direction: ltr; }
html[dir="rtl"] #swNavbar > .sw-container > :not(.sw-logo-link) { direction: rtl; }
html[dir="rtl"] #swNavbar > .sw-container > .yx-header-language { margin-inline: 0 !important; margin-left: auto !important; }
html[dir="rtl"] :is(main, .yxd-catalog) :is(p,li,th,td,label) { text-align: start; }
html[dir="rtl"] :is(input[type="email"],input[type="tel"],input[type="url"]) { direction: ltr; text-align: start; }
html:lang(ko) :is(h1,h2,h3) { word-break: keep-all; overflow-wrap: break-word; }
