/* 레이아웃 CSS */
.rows_gnb_wrap {border-top:1px solid rgba(255,255,255,0.2); padding-top: 10px; margin-top: 20px;background-color: #c4e0f5;}
.row_gnbs {position: relative;}
.row_gnbs .cbp-hrmenu > ul, .cbp-hrmenu .cbp-hrsub-inner {padding-left: 0px; padding-right: 0px;}
.row_gnbs .cbp-hrmenu > ul > li {padding-left: 0px; padding-right: 30px;}
.row_gnbs .cbp-hrmenu > ul {float:none !important; line-height: 100%;}
.gnb_wrap .row_gnbs nav {float:none;}
.row_gnbs .cbp-hrmenu .cbp-hrsub {top:40px;}

.search_top_wrap {float:left; position: relative; width: 280px;}
.search_top_wrap input {border:0px; background-color: #fff; border-radius: 60px; height:40px; width: 100%; color:#000;}
.search_top_wrap input::placeholder{font-family:'font-R',sans-serif; color:#999;}
.search_top_wrap button {position: absolute; top:11px; right:15px;}
.search_top_wrap input:focus {border:0px !important;}
.search_top_wrap_inner {position: relative;}

/* 게시판 fixed 버튼 위치조정 */
.rb_bbs_wrap .btns_gr_wrap {top:185px !important;}

.co_header0 .rows_gnb_wrap {border-top:1px solid rgba(0,0,0,0.05);}
.co_header0 .search_top_wrap input {background-color: rgba(0,0,0,0.05);}
.ser_display_none .search_top_wrap_inner {display: none;}

@media all and (max-width:1024px) {
    .rows_gnb_wrap {display: none;}
    .search_top_wrap {width: 30%;}
    .gnb_wrap .snb_wrap .qm_wrap a {width: auto; padding-left: 0px; margin-left: 20px;}
    .gnb_wrap .tog_wrap {margin-right: 20px;}

    /* 1.0.1 { */
    .mobile_cb {clear: both;}
    .search_top_wrap {display: block; float:none !important; width: 100%; margin-top: 10px;}
    .gnb_wrap .snb_wrap .my_btn_wrap {display: block;margin-left: 20px;}
    .gnb_wrap .snb_wrap .my_btn_wrap .btn_round.arr_bg {display: none;}
    .gnb_wrap .snb_wrap .my_btn_wrap .btn_round {padding-left: 15px; padding-right: 15px; height:35px;}
    .gnb_wrap .snb_wrap .qm_wrap a span {left: 10px;}
    /* } */
    
    /* 1.1.1 { */
    .gnb_wrap .inner {padding-left: 0px !important; padding-right: 0px !important;}
    /* } */
    
}


.lang-menu {
    position: relative;
    display: inline-block;
    font-family: sans-serif;
    margin-right: 10px;
}

.lang-menu-button {
    padding: 1px 8px;
    background-color: #95afc9;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    box-sizing: border-box;
    text-align: left;
}

.lang-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.lang-menu:hover .lang-submenu {
    display: block;
}

.lang-submenu div {
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.lang-submenu div:hover {
    background-color: #f0f0f0;
}

.lang-submenu div.active {
    font-weight: bold;
    background-color: #e0e0e0;
}

/* 언어 전용 (짧게) */
.lang-btn {
    width: 100px;
    
}

.lang-submenu-lang {
    width: 110px;
}

/* 통화 전용 (길게) */
.currency-btn {
    width: 100px;
}

.lang-submenu-currency {
    width: 185px;
}

/* =========================================
   언어 / 통화 선택 버튼
========================================= */

/* 전체 영역 */
.member_language {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

/* 메뉴 공통 */
.member_language .lang-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* 버튼 공통 */
.member_language .lang-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 36px;
    padding: 7px 13px;

    background: #f0f5fc;
    border: 1px solid #cbdcf2;
    border-radius: 9px;

    color: #285d8d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;

    cursor: pointer;
    white-space: nowrap;

    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* 마우스 오버 */
.member_language .lang-menu-button:hover {
    background: #e3effa;
    border-color: #a9c7e8;
    color: #174d7e;
}

/* 지구본 아이콘 */
.member_language .mobile_shop_locale_icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;

    color: #356c9c;
    transform: translateY(1px);
}

/* 통화 아이콘 */
.member_language .mobile_shop_currency_icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;

    border: 1.6px solid currentColor;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
}

/* 버튼별 최소 너비 */
.member_language .lang-btn {
    min-width: 125px;
}

.member_language .currency-btn {
    min-width: 110px;
}

/* =========================================
   드롭다운 메뉴
========================================= */

.member_language .lang-submenu {
    display: none;

    position: absolute;
    top: 100%;          /* 기존 calc(100% + 8px) 제거 */
    right: 0;
    z-index: 9999;

    min-width: 170px;
    padding: 6px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(30, 65, 105, 0.12),
        0 2px 6px rgba(30, 65, 105, 0.04);

    box-sizing: border-box;
}

/* 언어 드롭다운 */
.member_language .lang-submenu-lang {
    min-width: 155px;
}

/* 통화 드롭다운 */
.member_language .lang-submenu-currency {
    min-width: 230px;
    max-height: 330px;
    overflow-y: auto;
}

/* 메뉴 항목 */
.member_language .lang-submenu > div {
    display: flex;
    align-items: center;

    position: relative;

    min-height: 37px;
    padding: 9px 30px 9px 12px;

    border-radius: 7px;

    color: #3d4856;
    font-size: 13px;
    font-weight: 400;

    cursor: pointer;
    white-space: nowrap;

    transition: background 0.15s ease;
}

/* 메뉴 마우스 오버 */
.member_language .lang-submenu > div:hover {
    background: #f0f5fc;
    color: #285d8d;
}

/* 현재 선택된 항목 */
.member_language .lang-submenu > div.active {
    background: #e8f1fc;
    color: #245c91;
    font-weight: 600;
}

/* 선택 체크 표시 */
.member_language .lang-submenu > div.active::after {
    content: "✓";

    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    color: #245c91;
    font-size: 15px;
    font-weight: 700;
}

/* 스크롤바 */
.member_language .lang-submenu-currency::-webkit-scrollbar {
    width: 5px;
}

.member_language .lang-submenu-currency::-webkit-scrollbar-thumb {
    background: #cbd8e8;
    border-radius: 10px;
}

.member_language .lang-submenu-currency::-webkit-scrollbar-track {
    background: transparent;
}

/* =========================================
   드롭다운 화살표
========================================= */

.member_language .lang-menu-button::after {
    content: "";

    display: inline-block;

    width: 6px;
    height: 6px;

    margin-left: 3px;
    margin-top: -3px;

    border-right: 1.8px solid #356c9c;
    border-bottom: 1.8px solid #356c9c;

    transform: rotate(45deg);

    transition: transform 0.2s ease;
}

/* 열렸을 때 화살표 방향 변경
   JS에서 open 클래스가 추가되는 경우 */
.member_language .lang-menu.open .lang-menu-button::after {
    transform: rotate(225deg);
    margin-top: 3px;
}
/* 국기 */
.member_language .lang-flag {
    display: inline-block;
    margin-right: 9px;
    font-size: 17px;
    line-height: 1;
}


/* 국기 SVG */
.lang-flag {
    width: 22px;
    height: 16px;
    flex: 0 0 22px;

    display: inline-block;
    object-fit: cover;

    border-radius: 2px;
    vertical-align: middle;

    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

/* 드롭다운 항목 */
.lang-submenu > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

/* 모바일 */
@media (max-width: 1024px) {

    .lang-flag {
        width: 20px;
        height: 15px;
        flex-basis: 20px;
    }

}