/* Existing Shopfront utility bar. The selectors occupy no space in the main header. */
.cs-notification-bar:has(.hf-global-selectors) {
    position: relative;
    z-index: 100000;
}

.hf-global-selectors {
    position: absolute;
    inset-inline-end: 4px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: inherit;
    text-align: start;
    text-transform: none;
    letter-spacing: normal;
}

.hf-global-preference {
    position: relative;
    margin: 0;
}

.hf-global-preference summary {
    display: flex;
    width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 11px;
    line-height: 20px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.hf-global-preference summary::-webkit-details-marker {
    display: none;
}

.hf-global-flag {
    display: block;
    width: 17px;
    height: auto;
    flex: none;
}

.hf-global-globe {
    width: 14px;
    height: 14px;
    flex: none;
}

.hf-global-preference .hf-global-preference-chevron {
    color: inherit;
    font-size: 9px;
    line-height: 1;
}

.hf-global-preference[open] .hf-global-preference-chevron {
    transform: rotate(180deg);
}

.hf-global-preference-panel {
    position: absolute;
    inset-block-start: calc(100% - 1px);
    inset-inline-end: 0;
    z-index: 1;
    width: 196px;
    max-width: calc(100vw - 64px);
    max-height: min(320px, 70dvh);
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--cs-color-border, #393939);
    border-radius: var(--cs-layout-elements-border-radius, 5px);
    background: var(--cs-color-layout, #232323);
    color: inherit;
    box-shadow: 0 4px 12px rgb(0 0 0 / 22%);
    list-style: none;
}

.hf-global-preference-panel[data-hfg-panel="language"] {
    width: 140px;
}

.hf-global-preference-panel li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hf-global-preference-panel a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 8px;
    border-radius: var(--cs-button-border-radius, 2px);
    color: inherit;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}

.hf-global-preference-panel a:hover,
.hf-global-preference-panel a:focus-visible {
    background: var(--cs-color-site-background, #1c1c1c);
}

.hf-global-preference summary:focus-visible,
.hf-global-preference-panel a:focus-visible {
    outline: 2px solid #f4c404;
    outline-offset: -2px;
}

.hf-global-checkmark {
    width: 12px;
    height: 12px;
    margin-inline-start: auto;
    flex: none;
}

.hf-global-utility-message a {
    color: inherit;
}

.hf-global-utility-short {
    display: none;
}

@media (max-width: 575.98px) {
    .cs-notification-bar__inner:has(.hf-global-selectors) {
        padding-inline: 0 76px;
    }

    .hf-global-utility-message:has(.hf-global-utility-short) > :first-child {
        display: none;
    }

    .hf-global-utility-short {
        display: inline;
    }
}

@media (max-width: 339.98px) {
    .cs-notification-bar__inner:has(.hf-global-selectors) {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 64px;
    }

    .cs-header__inner-mobile > .cs-header__col.cs-col-right:not(:only-child) {
        padding-inline-start: 12px;
    }
}

@media (pointer: coarse) {
    .hf-global-preference-panel a {
        min-height: 44px;
    }
}
