/* StickSafe-style language pills for the Storefront header. */
.site-header {
    position: relative;
}

.rsa-header-languages {
    position: absolute;
    top: 3rem;
    right: max(2.617924em, calc((100% - 66.4989378333em) / 2));
    z-index: 60;
    margin: 0;
    padding: 0;
}

.rsa-header-languages__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rsa-header-languages__item {
    margin: 0;
    padding: 0;
}

.rsa-header-languages__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-width: 52px;
    height: 30px;
    padding: 4px 9px;
    box-sizing: border-box;
    border: 1px solid rgba(25, 35, 45, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #1f2933;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rsa-header-languages__link:hover,
.rsa-header-languages__link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(25, 35, 45, 0.28);
    background: #fff;
    color: #111827;
    outline: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.rsa-header-languages__item.is-current-language .rsa-header-languages__link {
    border-color: rgba(25, 35, 45, 0.35);
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
}

.rsa-header-languages__flag {
    display: inline-flex;
    width: 20px;
    height: 14px;
    overflow: hidden;
    flex: 0 0 20px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.rsa-header-languages__flag svg {
    display: block;
    width: 20px;
    height: 14px;
}

.rsa-header-languages__code {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .rsa-header-languages {
        top: 3.25rem;
        right: 1.41575em;
    }

    .rsa-header-languages__list {
        gap: 0.35rem;
    }

    .rsa-header-languages__link {
        min-width: 48px;
        padding-right: 7px;
        padding-left: 7px;
    }
}

@media (max-width: 767px) {
    .rsa-header-languages {
        position: static;
        width: 100%;
        padding: 0.55rem 1.41575em 0;
        box-sizing: border-box;
    }

    .rsa-header-languages__list {
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}
