@import url("/membership/common/common.css");

.mobile-hidden {
  display: inline-block;
}

.pc-hidden {
  display: none !important;
}

#nav2020 {
  position: relative;
}

#nav2020-head {
  border-bottom: 1px solid var(--Color-Black);
}

#nav2020-head.light {
  background-color: var(--Color-White) !important;
}

#nav2020-head.light .nav2020-line {
  background: var(--bg-black) !important;
}

.nav2020-inner {
  background-color: var(--Color-White);
}

#nav2020-head.light .nav2020-line {
  background: var(--ETC-Black-Static) !important;
}

#nav2020-head.dark .nav2020-line {
  background: var(--ETC-White-Static) !important;
}

#mypageNav {
  transition: all 0.3s ease;
}

#mypageCate {
  transition: top 0.3s ease;
}

.navbar {
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(35px);
  position: absolute;
  top: 40px;
  width: 100%;
  z-index: 100;
  height: 64px;
}

.navbar-wrapper {
  display: flex;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
}

.navbar .title {
  font-size: 24px;
  color: var(--ETC-White-Static);
}

.link-wrapper {
  display: flex;
}

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links li {
  margin: 0 16px;
}

.nav-links a {
  color: var(--ETC-White-Static);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

/* 자체 GNB */

.customer-nav {
  font-family: "Noto Sans KR";
  width: 100%;
  position: sticky;
  z-index: 1;
  background: var(--Color-White);
  box-shadow: 0px 10px 10px -5px rgba(0, 0, 0, 0.15); /* 아래쪽 그림자 */
}

.customer-nav.sticky {
  top: 0;
  left: 0;
  position: fixed;
  z-index: 9999;
  width: -webkit-fill-available;
  transition: all 0.3s ease-in-out;
}

.nav-placeholder {
  display: none;
  height: 0;
}

/* 내비게이션이 fixed 될 때 placeholder 활성화 */
.customer-nav.sticky + .nav-placeholder {
  display: block;
  height: 56px; /* 내비게이션 높이와 동일하게 설정 */
}

.customer-nav .nav_inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.customer-nav .nav_inner .main-nav {
  /* max-width: 1240px; */
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.customer-nav .nav_inner .sub-nav {
  width: 100%;
  border-top: 1px solid var(--Color-Grey-20);
  display: flex;
  justify-content: center;
}

.customer-nav .nav_inner .sub-nav .sub-box {
  width: 100%;
  max-width: 892px;
  justify-content: center;
  display: flex;
  flex-direction: row;
}

.customer-nav .nav_inner .sub-nav .sub-menu {
  max-width: 300px;
  width: 100%;
  padding: 12px 6px;
  color: var(--Color-Grey-80);
  text-align: center;
  font-family: "Noto Sans KR";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.08px;
  text-decoration: none;
  cursor: pointer;
}

.customer-nav .nav_inner .sub-nav .sub-menu.select {
  max-width: 300px;
  width: 100%;
  padding: 12px 6px;
  color: var(--Color-Black);
  text-align: center;
  font-family: "Noto Sans KR";
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.08px;
  border-bottom: 2px solid var(--Color-Black);
  text-decoration: none;
}

.svg-fill-black {
  fill: var(--Color-Black);
}

.customer-nav .left-title {
  color: var(--Color-Black);
  font-family: "Noto Sans KR";
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: -0.12px;
}

.customer-nav .left-title:hover {
  text-decoration: none;
}

.customer-nav .back-btn {
  width: 24px;
  height: 24px;
  visibility: hidden;
}

.customer-nav .menu-icon {
  width: 24px;
  height: 24px;
}

.customer-nav .cate {
  display: flex;
  align-items: center;
}

.customer-nav .cate > ul {
  display: flex;
}

.customer-nav .cate > ul > li {
  margin-left: 32px;
}

.customer-nav .cate > ul > li:first-child {
  margin-left: 0;
}

.customer-nav .cate > ul > li > a {
  position: relative;
  font-size: 18px;
  font-weight: 500;
  color: var(--Color-Grey-60);
  line-height: 27px;
  letter-spacing: -0.09px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.customer-nav .cate > ul > li.active > a {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: var(--Color-Black);
  line-height: 27px;
  letter-spacing: -0.09px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.customer-nav .cate > ul > li:hover > a {
  color: var(--Color-Black);
  font-weight: 700;
}

.customer-nav .cate > ul > li:hover > a:active {
  color: var(--Color-Black);
}

.customer-nav .cate > ul > li > a::before {
  content: attr(data-text);
  font-weight: 700;
  visibility: hidden;
  display: block;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.customer-nav .cate > ul > li:hover > a::after {
  width: 100%;
}

.customer-nav .cate > ul > li.active > a::after {
  width: 100%;
}

.customer-nav .cate.mobile-open {
  display: block;
  visibility: visible;
  opacity: 1;
}

#menuBtn {
  border: none;
}

#btnMenuClose {
  border: none;
}

@media only screen and (min-width: 690px) and (max-width: 1023px) {
  .customer-nav .nav_inner {
    width: 100%;
    max-width: inherit;
    padding: 0 16px;
  }
}

@media screen and (max-width: 689px) {
  .customer-nav::after {
    content: "";
    width: 100vw;
    height: 100%;
    position: fixed;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    top: 40px;
    left: 0;
  }

  .customer-nav.overlay-visible::after {
    display: block;
  }

  .customer-nav .nav_inner .main-nav {
    width: 100%;
    max-width: none;
    padding: 10px 0;
  }

  .mobile-hidden {
    display: none;
  }

  .pc-hidden {
    display: flex !important;
  }

  .customer-nav {
    padding: 0;
    border-top: none;
    border-bottom: 1px solid var(--Color-Grey-40);
  }

  /* 내비게이션이 fixed 될 때 placeholder 활성화 */
  .customer-nav.sticky + .nav-placeholder {
    height: 52px; /* 내비게이션 높이와 동일하게 설정 */
  }

  .customer-nav .nav_inner {
    padding: 0;
  }

  .customer-nav .mobile-menu {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }

  .customer-nav .cate > ul > li > a::after {
    /* background-color: inherit; */
  }

  .customer-nav .mobile-menu .main-title {
    color: var(--Color-Black);
    text-align: center;
    font-family: "Noto Sans KR";
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    letter-spacing: -0.09px;
  }

  .customer-nav .mobile-menu .btn-box {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .customer-nav .mobile-menu .btn-box .drop-down {
    width: 20px;
    height: 20px;
  }

  .customer-nav .nav_inner .sub-nav .sub-menu {
    padding: 12px 10px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.07px;
  }

  .customer-nav .nav_inner .sub-nav .sub-menu.select {
    padding: 12px 10px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.07px;
  }

  .customer-nav .cate {
    display: none;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    left: 0;
    top: 40px;
    width: 100vw;
    height: auto;
    align-items: flex-start;
    background: var(--Color-White);
    box-sizing: border-box;
    z-index: 9999;
    border-top: 1px solid var(--Color-Grey-20);
  }

  .customer-nav .cate.mobile_open {
    display: block;
    visibility: visible;
    opacity: 1;
  }

  .customer-nav .cate > ul {
    flex-direction: column;
    align-items: center;
    padding: 0 42px 36px;
  }

  .customer-nav .cate > ul > li {
    display: flex;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 24px;
    padding: 0;
  }

  .customer-nav .cate > ul > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .customer-nav .cate > ul > li > a {
    width: 100%;
    color: var(--Color-Grey-80);
    text-align: center;
    font-family: "Noto Sans KR";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.08px;
  }

  .customer-nav .cate > ul > li > a.active {
    color: var(--Color-Black);
    text-align: center;
    font-family: "Noto Sans KR";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.08px;
  }

  .close-btn-div {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 12px 10px 0 0;
  }

  .customer-nav .cate > ul > li:hover > a {
    color: var(--Color-Black);
  }

  .customer-nav .cate li:has(> .dropdown) > a:after {
    display: none;
  }

  .customer-nav .btn-menulayerClose {
    width: 23px;
    height: 23px;
    right: 12px;
    top: 12px;
    position: absolute;
    z-index: 99999;
  }

  .customer-nav .cate > ul > li.active > a::after {
    display: none;
  }
}

/* 다크모드 */
@media (prefers-color-scheme: dark) {
  .customer-nav {
    border-bottom: 1px solid var(--Color-Grey-20);
    box-shadow: transparent;
  }
}
