/* IDIS Header Common Styles (Extracted & Deduplicated from header_global.php / header_kr.php) */
body {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 2560px;
}

.gt_box {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.gt_123 {
    min-width: 181px;
    border: 1px solid #415f5a;
    border-radius: 3px;
    height: 48px;
}

.country_list li {
    width: calc(50% - 10px);
    margin: 10px 0 0 10px;
}

.modal-lg {
    max-width: 740px;
}

.popndaa {
    height: 99px;
}

.resize_header {
    height: 4px;
}

.header_top_area {
    height: 33px;
    padding-top: 4px;
    margin-top: 0px;
}

.popupdesign {
    min-height: 99px;
    text-align: center;
    height: 75px;
    color: white !important;
    background-color: #ede6e0;
}

.sub_title_area {
    padding-top: 11rem;
    padding-bottom: 2rem;
}

.navVideo {
    background-color: #009ca6;
    padding: 3px 10px;
    border-radius: 60px;
    color: white;
    font-size: 10px;
}

#mmp {
    display: none;
}

.mmp_1 {
    height: 57px;
    width: 100%;
    background-color: red;
    position: relative;
}

.mmp_3 {
    background-image: url(/images/etc/bg_top_banner_0909.jpg);
    background-position: center;
    background-repeat: no-repeat;
    height: 57px;
    background-size: cover;
}

.mmp_global {
    background: rgb(2,0,36);
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,153,168,1) 35%, rgba(182,238,250,1) 100%);
    background-position: center;
    background-repeat: no-repeat;
    height: 57px;
    background-size: cover;
}

.navVideoTitle {
    margin-left: 6px;
    line-height: 14px;
    font-size: 12px;
    text-align: left;
}

.header_bottom {
    height: 80px;
}

.gnb > ul > li > a {
    padding: 31px 0;
}

.gnb .gnb_sub_area {
    top: 100%;
}

.gnb_sub_list ul {
    padding: 10px 0;
}

/* GNB JS 강제 활성화 상태 */
.gnb > ul > li.js-active .gnb_sub_full_container,
.gnb > ul > li.js-active .gnb_sub_area {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* KR 헤더 로고 및 구매문의 버튼 (낮은 명시도 :where() 적용으로 메인 페이지 오버라이드 보장) */
:where(html[lang="ko"]) .header_logo {
    -ms-flex: 0 0 400px !important;
    flex: 0 0 400px !important;
    max-width: 400px !important;
    background-image: url('/images/korea/kokwansu/idis_kr.svg') !important;
}

:where(html[lang="ko"]) header:hover .header_logo {
    background-image: url('/images/korea/kokwansu/idis_kr.svg') !important;
}

:where(html[lang="ko"]) .mobile_header .mobile_nav_logo {
    display: block;
    background-image: url('/images/korea/kokwansu/idis_krm.svg') !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

:where(html[lang="ko"]) .header_top_area {
    padding-top: 12px;
}

/* Global 모바일 로고 기본값 */
:where(html[lang="en"]) .header_mobile_logo {
    background-image: url('/images/main/header_logo_black_v2.svg');
    transform: scale(1.5);
    transform-origin: left;
}

.gnb > ul > li.gnb-krsales-btn {
    display: flex;
    align-items: center;
    padding: 0;
}

.gnb > ul > li > a.krs-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #00a2b9;
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gnb > ul > li > a.krs-btn:hover {
    background-color: #007a8c !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

header:hover nav .gnb-krsales-btn .krs-btn {
    color: #ffffff !important;
}

a.mobile_region_btn_modify {
    position: absolute;
    top: 14px;
    right: 17px;
    padding: 0;
    display: block;
    width: 22px;
    height: 23px;
    border: none;
    background-color: #ffffff00;
    transform: scale(1.5);
    background-image: url(/images/korea/kokwansu/main/header/ICM_icon.svg) !important;
    background-repeat: no-repeat;
    background-size: 22px;
    text-indent: -9999px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media (max-width: 1599.98px) {
    .header_bottom {
        height: 66px;
    }
    .gnb > ul > li > a {
        padding: 24px 0;
    }
    .gnb .gnb_sub_area {
        top: 100%;
    }
}

@media (max-width: 575px) {
    #idis-cookie-banner {
        width: calc(100% - 32px) !important;
        bottom: 16px !important;
        right: 16px !important;
        padding: 20px !important;
    }
    #idis-cookie-banner > div:last-child {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    #idis-cookie-banner button {
        width: 100% !important;
    }
}

@media (max-width: 1300px) {
    .header_logo {
        display: none !important;
    }
}

/* Fixed min-width media query cascade order (576px -> 768px -> 992px -> 1200px) */
@media (min-width: 576px) {
    .gt_box {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .gt_box {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .gt_box {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .gt_box {
        max-width: 1140px;
    }
}

@media (max-width: 575.98px) {
    .gt_123 {
        height: 40px;
    }
    .con_text_size {
        font-size: 13px;
    }
}
