.gsfx-preferences {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 5px;
    color: #163b2a;
}

.gsfx-mobile-fallback,
.site-header__mobile .header-items:has(> .gsfx-account-preferences) > .gsfx-mobile-fallback {
    display: none;
}

.site-header__mobile .gsfx-mobile-fallback {
    display: inline-flex;
}

.gsfx-label {
    display: inline-flex;
    margin: 0;
}

.gsfx-control {
    box-sizing: border-box;
    min-height: 34px;
    width: auto;
    padding: 0 0.4rem;
    border: 1px solid #cbd5cf;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-size: 0.8rem;
}

.gsfx-select {
    appearance: auto;
}

.gsfx-language > summary {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    list-style: none;
}

.gsfx-language > summary::-webkit-details-marker {
    display: none;
}

.gsfx-language > summary::after {
    content: '';
    width: 5px;
    height: 5px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: translateY(-2px) rotate(45deg);
}

.gsfx-language > ul {
    position: absolute;
    z-index: 16;
    top: 100%;
    left: 0;
    min-width: 110px;
    list-style: none;
    margin: 4px 0 0;
    padding: 4px;
    border: 1px solid #cbd5cf;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 16px #142c1f1a;
}

.gsfx-language > ul a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    color: #163b2a;
    font-size: 0.875rem;
}

.gsfx-language .gsfx-flag {
    flex: none;
    display: block;
    width: 18px;
    height: 12px;
    object-fit: contain;
}

.site-header__mobile .gsfx-language-code {
    display: none;
}

.site-header__mobile .header-mobile-main .header-cart__icon,
.site-header__mobile .header-mobile-main .header-search__icon {
    display: none;
}

#mobile-menu-panel .header-mobile-menu__custom-link a[href="tel:+908508402582"] {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
}

#mobile-menu-panel .header-mobile-menu__custom-link a[href="tel:+908508402582"]::before {
    content: '';
    width: 19px;
    height: 19px;
    flex: none;
    background: currentColor;
    mask: var(--gsfx-support-icon) center / contain no-repeat;
}

@media (max-width: 600px) {
    .site-header__mobile .header-mobile-main > .site-header__container:has(.gsfx-preferences) {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: clamp(4px, 1.3vw, 8px);
        padding-inline: clamp(8px, 3vw, 15px);
    }

    .site-header__mobile .header-mobile-main .site-header__container:has(.gsfx-preferences) > .header-items {
        min-width: 0;
        padding-inline: 0;
        margin-inline: 0;
    }

    .site-header__mobile .header-mobile-main > .site-header__container:has(.gsfx-preferences)::before,
    .site-header__mobile .header-mobile-main > .site-header__container:has(.gsfx-preferences)::after {
        content: none;
    }

    .site-header__mobile .header-mobile-main .site-header__container:has(.gsfx-preferences) > .header-left-items {
        grid-area: 1 / 1;
        justify-content: flex-start;
    }

    .site-header__mobile .header-mobile-main .site-header__container:has(.gsfx-preferences) > .header-center-items {
        grid-area: 1 / 2;
        justify-content: center;
    }

    .site-header__mobile .header-mobile-main .site-header__container:has(.gsfx-preferences) > .header-right-items {
        grid-area: 1 / 3;
        justify-content: flex-end;
    }

    .site-header__mobile .header-mobile-main .header-logo__text {
        font-size: clamp(14px, 4.35vw, 19px);
        line-height: 1.1;
        white-space: nowrap;
    }

    .site-header__mobile .header-right-items:has(.gsfx-preferences) {
        gap: clamp(3px, 1vw, 7px);
    }

    .site-header__mobile .header-right-items .gsfx-preferences {
        gap: 4px;
        padding: 0;
    }

    .site-header__mobile .gsfx-preferences .gsfx-control {
        width: 46px;
        min-height: 36px;
        font-size: 12px;
    }

    .site-header__mobile .gsfx-language > summary {
        justify-content: center;
    }

    .site-header__mobile .gsfx-label {
        position: relative;
    }

    .site-header__mobile .gsfx-label::after {
        content: '';
        position: absolute;
        right: 5px;
        top: calc(50% - 4px);
        width: 5px;
        height: 5px;
        border: solid currentColor;
        border-width: 0 1px 1px 0;
        transform: rotate(45deg);
        pointer-events: none;
    }

    .site-header__mobile .gsfx-preferences .gsfx-select {
        appearance: none;
        padding-inline: 4px 12px;
    }
}

.gsfx-language [aria-current] {
    font-weight: 700;
}

.gsfx-preferences :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

[data-gs-price-try] > bdi[hidden] {
    display: none !important;
}
