.rbls-host {
    display: inline-flex;
    align-items: center;
    font-size: inherit;
    text-transform: none;
}

.rbls {
    --rbls-button-bg: #111210;
    --rbls-text: #f3eadb;
    --rbls-accent: #d4a05c;
    --rbls-menu-bg: #0f100e;
    --rbls-hover-bg: #2b241a;
    --rbls-radius: 999px;
    --rbls-menu-width: 220px;
    position: relative;
    display: inline-flex;
    z-index: 1000;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    text-transform: none;
}

.rbls *,
.rbls *::before,
.rbls *::after {
    box-sizing: border-box;
}

.rbls__toggle {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 46px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 17px !important;
    border: 1px solid var(--rbls-accent) !important;
    border-radius: var(--rbls-radius) !important;
    background: var(--rbls-button-bg) !important;
    color: var(--rbls-text) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18) !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .025em !important;
    text-transform: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease !important;
}

.rbls__toggle:hover {
    background: color-mix(in srgb, var(--rbls-button-bg) 86%, var(--rbls-accent)) !important;
    border-color: var(--rbls-accent) !important;
    color: var(--rbls-text) !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 34px color-mix(in srgb, var(--rbls-accent) 16%, transparent) !important;
}

.rbls__toggle:focus-visible {
    outline: 2px solid var(--rbls-accent) !important;
    outline-offset: 3px !important;
}

.rbls__current-label {
    display: inline-block;
    white-space: nowrap;
}

.rbls__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 1px rgba(255,255,255,.10);
}

.rbls--flag-rounded .rbls__flag { border-radius: 4px; }
.rbls--flag-circle .rbls__flag { width: 18px; height: 18px; border-radius: 50%; }
.rbls--flag-square .rbls__flag { width: 18px; height: 18px; border-radius: 0; }

.rbls__flag img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: cover;
}

.rbls__flag--emoji {
    width: auto;
    height: auto;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    font-size: 18px;
    line-height: 1;
}

.rbls__caret {
    flex: 0 0 auto;
    color: var(--rbls-accent);
    transition: transform .22s ease;
}

.rbls.is-open .rbls__caret { transform: rotate(180deg); }

.rbls__menu {
    position: absolute;
    top: calc(100% + 12px);
    width: var(--rbls-menu-width);
    max-width: min(90vw, 420px);
    padding: 9px;
    border: 1px solid var(--rbls-accent);
    border-radius: 16px;
    background: var(--rbls-menu-bg);
    color: var(--rbls-text);
    box-shadow: 0 24px 60px rgba(0,0,0,.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(.985);
    transform-origin: top right;
    transition: opacity .18s ease, transform .22s cubic-bezier(.2,.8,.2,1), visibility .22s ease;
}

.rbls--align-right .rbls__menu { right: 0; }
.rbls--align-left .rbls__menu { left: 0; transform-origin: top left; }

.rbls.is-open .rbls__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.rbls__item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: var(--rbls-text) !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    transition: color .18s ease, background-color .18s ease, transform .18s ease !important;
}

.rbls__item:hover,
.rbls__item:focus-visible {
    background: var(--rbls-hover-bg) !important;
    color: var(--rbls-accent) !important;
    transform: translateX(2px);
    outline: none !important;
}

.rbls__item.is-active {
    background: color-mix(in srgb, var(--rbls-accent) 14%, transparent) !important;
    color: var(--rbls-accent) !important;
}

.rbls__item-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rbls__check {
    flex: 0 0 auto;
    color: var(--rbls-accent);
}

@media (prefers-reduced-motion: reduce) {
    .rbls__toggle,
    .rbls__caret,
    .rbls__menu,
    .rbls__item { transition: none !important; }
}

/* --------------------------------------------------------------------------
 * Royal Barber responsive header integration (v1.2.0)
 * Desktop  : language + booking in the normal header actions.
 * Tablet   : language + booking + hamburger, aligned on the right.
 * Mobile   : language + hamburger; the header booking CTA is hidden.
 * These rules are scoped to a body class added only while auto replacement is
 * enabled, so they do not affect unrelated themes or disabled installations.
 * -------------------------------------------------------------------------- */
.rbls__current-label--compact {
    display: none;
}

@media (max-width: 1180px) {
    body.rbls-responsive-header .site-header__inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        grid-template-areas: "brand actions menu" !important;
        align-items: center !important;
        gap: 10px !important;
    }

    body.rbls-responsive-header .site-header .site-branding {
        grid-area: brand !important;
        min-width: 0;
    }

    body.rbls-responsive-header .site-header .header-actions {
        grid-area: actions !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        justify-self: end !important;
        gap: 8px !important;
        min-width: 0;
    }

    body.rbls-responsive-header .site-header .menu-toggle {
        grid-area: menu !important;
        display: block !important;
        order: initial !important;
        justify-self: end !important;
        width: 42px !important;
        height: 42px !important;
        padding: 9px !important;
    }

    body.rbls-responsive-header .site-header .header-actions .language-switcher,
    body.rbls-responsive-header .site-header .header-actions .language-switcher.rbls-host {
        display: inline-flex !important;
        align-items: center !important;
        min-width: 0;
    }

    body.rbls-responsive-header .site-header .rbls {
        font-size: 12px !important;
        line-height: 1.15 !important;
    }

    body.rbls-responsive-header .site-header .rbls__toggle {
        min-height: 38px !important;
        padding: 0 12px !important;
        gap: 7px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: .015em !important;
        box-shadow: 0 7px 22px rgba(0, 0, 0, .16) !important;
    }

    body.rbls-responsive-header .site-header .rbls__flag {
        width: 18px;
        height: 13px;
    }

    body.rbls-responsive-header .site-header .rbls--flag-circle .rbls__flag,
    body.rbls-responsive-header .site-header .rbls--flag-square .rbls__flag {
        width: 16px;
        height: 16px;
    }

    body.rbls-responsive-header .site-header .rbls__flag--emoji {
        width: auto;
        height: auto;
        font-size: 16px;
    }

    body.rbls-responsive-header .site-header .rbls__caret {
        width: 12px;
        height: 12px;
    }

    body.rbls-responsive-header .site-header .rbls__menu {
        top: calc(100% + 8px);
        max-width: min(86vw, var(--rbls-menu-width));
        padding: 7px;
        border-radius: 14px;
    }

    body.rbls-responsive-header .site-header .rbls__item {
        min-height: 40px !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    body.rbls-responsive-header .site-header .header-actions > .button,
    body.rbls-responsive-header .site-header .header-actions > .button.button--small {
        min-height: 38px !important;
        padding: 0 14px !important;
        font-size: 11px !important;
        letter-spacing: .035em !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 640px) {
    body.rbls-responsive-header .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        gap: 7px !important;
        min-height: 70px !important;
    }

    /* Keep the language control in the header, overriding the theme's mobile
       rule that hides the complete header-actions container. */
    body.rbls-responsive-header .site-header .header-actions {
        display: inline-flex !important;
        gap: 0 !important;
    }

    /* Hide only the header booking CTA on phones. Other booking/contact bars
       elsewhere on the page remain untouched. */
    body.rbls-responsive-header .site-header .header-actions > .button,
    body.rbls-responsive-header .site-header .header-actions > a.button {
        display: none !important;
    }

    body.rbls-responsive-header .site-header .custom-logo {
        width: auto !important;
        max-width: min(128px, 34vw) !important;
        max-height: 42px !important;
    }

    body.rbls-responsive-header .site-header .text-logo,
    body.rbls-responsive-header .site-header .brand-mark__text {
        font-size: .92rem !important;
    }

    body.rbls-responsive-header .site-header .menu-toggle {
        width: 40px !important;
        height: 40px !important;
        padding: 9px !important;
    }

    body.rbls-responsive-header .site-header .rbls {
        font-size: 11px !important;
    }

    body.rbls-responsive-header .site-header .rbls__toggle {
        min-height: 36px !important;
        padding: 0 10px !important;
        gap: 6px !important;
        font-size: 11px !important;
        letter-spacing: .01em !important;
    }

    /* Use the compact language code on phones to avoid long labels such as
       中文（中国） pushing the hamburger outside the header. */
    body.rbls-responsive-header .site-header .rbls__current-label--full {
        display: none !important;
    }

    body.rbls-responsive-header .site-header .rbls__current-label--compact {
        display: inline-block !important;
        min-width: 16px;
        text-align: center;
    }

    body.rbls-responsive-header .site-header .rbls__flag {
        width: 17px;
        height: 12px;
    }

    body.rbls-responsive-header .site-header .rbls--flag-circle .rbls__flag,
    body.rbls-responsive-header .site-header .rbls--flag-square .rbls__flag {
        width: 15px;
        height: 15px;
    }

    body.rbls-responsive-header .site-header .rbls__flag--emoji {
        width: auto;
        height: auto;
        font-size: 15px;
    }

    body.rbls-responsive-header .site-header .rbls__menu {
        right: 0 !important;
        left: auto !important;
        width: min(var(--rbls-menu-width), calc(100vw - 28px));
        max-width: calc(100vw - 28px);
    }

    body.rbls-responsive-header .site-header .rbls__item {
        min-height: 38px !important;
        padding: 8px 10px !important;
        font-size: 11.5px !important;
    }
}

@media (max-width: 380px) {
    body.rbls-responsive-header .site-header__inner {
        gap: 5px !important;
    }

    body.rbls-responsive-header .site-header .custom-logo {
        max-width: min(108px, 31vw) !important;
        max-height: 38px !important;
    }

    body.rbls-responsive-header .site-header .rbls__toggle {
        min-height: 34px !important;
        padding: 0 8px !important;
        gap: 5px !important;
        font-size: 10.5px !important;
    }

    body.rbls-responsive-header .site-header .menu-toggle {
        width: 38px !important;
        height: 38px !important;
        padding: 8px !important;
    }
}
