@charset "UTF-8";

/* Figma 3884:100760. 기존 GNB/회원 링크와 독립된 언어 선택기. */
.gnb-language {
    position: relative;
    flex: 0 0 auto;
    text-align: center;
}

.gnb-language__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 8px 8px 12px;
    border: 1px solid #f5f5f4;
    border-radius: 99999px;
    background: #fff;
    color: #44403c;
    cursor: pointer;
    list-style: none;
    font:
        500 14px/1.48 'Pretendard',
        sans-serif;
    white-space: nowrap;
}

.gnb-language__trigger::-webkit-details-marker {
    display: none;
}

.gnb-language__trigger::marker {
    content: '';
}

.gnb-language__trigger img {
    display: block;
    flex: 0 0 16px;
    max-width: none;
}

.gnb-language__trigger span {
    margin-right: -4px;
}

.gnb-language__arrow {
    transform: rotate(180deg);
}

.gnb-language[open] .gnb-language__arrow {
    transform: none;
}

.gnb-language__list {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 4px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 8px 12px 8px 16px;
    list-style: none;
    border: 1px solid #f5f5f4;
    border-radius: 8px;
    background: #fff;
}

.gnb-language:not([open]) .gnb-language__list {
    display: none;
}

.gnb-language__list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gnb-language .gnb-language__option {
    display: block;
    padding: 4px 16px;
    border-radius: 4px;
    color: #44403c;
    font:
        500 14px/1.48 'Pretendard',
        sans-serif;
    text-decoration: none;
    white-space: nowrap;
}

.gnb-language a.gnb-language__option:hover {
    background: #f5f5f4;
    color: #44403c;
}

.gnb-language__option[aria-disabled] {
    cursor: not-allowed;
}

.gnb-language__trigger:focus-visible,
.gnb-language__option:focus-visible {
    outline: 2px solid #a548a3;
    outline-offset: 2px;
}

#header.header-narrow .h_nav {
    gap: 20px;
    padding-right: 20px;
}

.gnbm-language {
    padding: 12px 15px;
    display: flex;
    justify-content: flex-end;
}

/* 추가된 선택기가 기존 메뉴와 겹치지 않도록 중간 PC 폭의 간격만 조정. */
@media (min-width: 1200px) and (max-width: 1799px) {
    html #header .header-nav-main nav #mainNav > li > a,
    html #header .header-nav-main nav #mainNav > li:hover > a,
    html #header .header-nav-main nav #mainNav > li.open > a,
    html #header .header-nav-main nav #mainNav > li.act > a {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #header.header-narrow .h_nav {
        gap: 10px;
        padding-right: 12px;
    }

    #header.header-narrow .h_nav .tLink {
        gap: 4px;
        font-size: 12px;
    }

    html #header .header-nav-main nav #mainNav > li > a {
        padding-right: 8px !important;
        padding-left: 8px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 991px) {
    #header .h_nav > .gnb-language {
        display: none;
    }

    .gnbm-language .gnb-language__list {
        z-index: 1;
    }
}
