/*2023.07.11 헤더 z-index 변경 */
header {
  /*padding-top: 121px;*/
  /*z-index: 999;*/
}

/*2023.07.11 헤더 투명도 변경 */
header .wrap {
  left: 50%;
  margin: 0;
  max-width: none;
  padding: 0;
  /*border-bottom : 1px solid #767676;*/
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  z-index: 21;
}

/* 전체적인 틀 */

.header-top {
  align-items: center;
  background-color: rgba(255, 255, 255, 1);

  display: flex;
  height: 60px;

  justify-content: space-between;
  padding: 0 40px;
  position: fixed;
  top: 0;
  transition: all .2s;
  width: 100%;
  z-index: 999;
}

.header-middle {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.99);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  color: #767676;
  display: flex;
  font-weight: 600;
  height: 60px;
  justify-content: center;

  position: fixed;
  top: 60px;
  transition: all .2s;
  width: 100%;
  z-index: 998;
}

.header-middle.hide-menu {
  transform: translate(0, -100%);
}

/*2023.07.11 헤더 justify-content 변경 */
.header-bottom {
  align-items: center;
  background-color: rgba(255, 255, 255, 0.99);
  border-bottom: 1px solid #efefef;
  color: #767676;
  display: flex;
  font-weight: 600;
  height: 60px;

  justify-content: space-around;
  position: fixed;
  top: 120px;
  transition: all .2s;
  width: 100%;
  /*box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;*/
  z-index: 997;

}

.header-bottom.hide-menu {
  transform: translate(0, -60px);
}

/*2023.07.11 헤더 미선택메뉴 크기 및 모양 변경 */
.header-middle ul li {
  color: #767676;
  font-weight: 400;
  padding: 10px 16px;
  transition: 0.3s;
}

.header-middle ul li a, .header-bottom ul li a {
  font-size: 15px;
}

.header-bottom ul li a font {
  display: inline-block;
  text-align: center;
  width: 100%;
  word-break: keep-all;
}

.header-middle ul li:hover {
  color: #1c1c1c;

}

.header-middle .on, .header-bottom .on {
  color: #3A4C40;
  font-weight: 700;
  position: relative;
}

/*2023.07.11 헤더 미선택메뉴 크기 및 모양 변경 */
.header-bottom ul li {
  color: #767676;
  font-weight: 400;
  padding: 10px 16px;
  transition: 0.3s;
}

.header-bottom ul li:has(font) {
  padding: 8px 12px;
}

.header-bottom ul li:hover {
  color: #1c1c1c;

}

/*2023.07.11 헤더 선택메뉴 크기 및 모양 변경 */
.header-bottom .on:after {
  background-color: #3a4c40;
  border-radius: 3px 3px 0 0;
  bottom: -12px;
  content: '';
  display: block;
  height: 3px;
  left: 0;
  position: absolute;
  width: 100%;
}

/* 로고 */
/*2023.07.11 로고 수정 및 사이즈 조정*/
.logo-wrap {
  width: 160px;
}

.logo-wrap > a {
  height: auto;
  width: 100%;
}

.logo-wrap a img {
  width: 100%;
}

.logo-wrap a img.logo-white {
  display: none;
}

/* 아이콘 크기 */
.icon.awesome-calendar {
  height: 24px;
  width: 24px;
}

.icon.feather-circle {
  height: 24px;
  width: 24px;
}

.icon.material-menu {
  height: 24px;
  width: 24px;
}

.icon.material-shopping-cart {
  height: 24px;
  width: 24px;
}


/* 상단 아이콘 정렬 */
.top-menu {
  align-items: center;
  display: flex;
  justify-content: center;
  /*gap : 27px;*/
}

.top-menu.mo {
  display: none;
}

.top-menu.pc {
  display: flex;

  & .searchForm {
    margin-right: 20px;
    @media screen and (max-width: 1016px) {
      margin-right: 0;
    }
    @media screen and (max-width: 460px) {
      display: none;
    }

    & .input-wrap {
      height: 36px;
      margin: 0;
      position: relative;

      & input {
        height: 36px;
        @media screen and (max-width: 1016px) {
          height: 30px;
        }
      }

    }

    & .search-gray {
      height: 20px;
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
    }
  }
}

/*2023.07.11 아이콘 크기 및 모양 변경 시작*/
.top-menu.pc button.menu {
  height: 40px;
  padding: 8px;
  width: 40px;
}

.top-menu.pc button.menu ion-icon {
  height: 100%;
  width: 100%;
}

.top-menu.pc a {
  height: 40px;
  padding: 8px;
  width: 40px;
}

.top-menu.pc a ion-icon {
  height: 100%;
  width: 100%;
}

/*2023.07.11 아이콘 크기 및 모양 변경 끝*/

.top-menu > a {
  position: relative;
}

.icon.material-shopping-cart + span {
  background-color: #000;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  height: 20px;
  line-height: 20px;
  padding-left: 2px;
  position: absolute;
  right: 8px;
  top: 12px;
  transform: translate(50%, -50%);
  width: 20px;
}

.icon.material-shopping-cart + span font {
  color: #FFFFFF;
}

.feather-circle + span {
  bottom: 0;
  color: #fff;
  font-size: 12px;
  left: 0;
  line-height: 26px;
  margin: auto;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
}


/* 중간 메뉴 정렬 */
.header-middle > ul {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.header-middle > ul:has(font) {
  gap: 0;
}

/* 하단 메뉴 정렬 */
.header-bottom > ul {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.header-bottom > ul:has(font) {
  gap: 0;
}

/* go-top */
.go-top-wrap {
  align-items: center;
  background-color: #CAB69E;
  border-radius: 20px;
  bottom: 20px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
  display: flex;
  flex-direction: column;
  height: 80px;
  justify-content: center;
  min-width: 80px;
  opacity: 1;
  padding: 0 10px;
  pointer-events: all;
  position: fixed;
  right: 20px;
  transition: all 0.5s ease-in-out;
  z-index: 1000;
  @media screen and (max-width: 1016px) {
    display: none;
  }
}

.go-top-wrap .btn-go-top {

  border-radius: 50%;
  font-size: 0;
  overflow: hidden;
}

.icon.go-top {
  /*2023.07.12 사이즈 조절*/
  background-position: unset;
  height: 40px;
  width: 40px;
}


/****** 반응형 *******/


@media screen and (max-width: 1016px) {
  /*.top-menu.pc {*/
  /*    display: none;*/
  /*}*/
  /*.top-menu.mo {*/
  /*    display: flex;*/
  /*}*/
  header {
    /*padding-top: 81px;*/
  }

  header .wrap {
    /*padding : 0 10px;*/
  }

  .header-top {
    height: 40px;
    padding: 0 20px;
  }

  .header-middle {
    height: 40px;
    justify-content: flex-start;
  }

  .header-middle > ul {
    gap: 8px;
    justify-content: flex-start;
    overflow-x: scroll;
  }

  .header-middle > ul > li {
    white-space: nowrap;
  }

  .header-bottom {
    height: 40px;
    justify-content: flex-start;
  }

  .header-bottom.hide-menu {
    transform: translate(0, -40px);
  }

  .header-bottom > ul {
    gap: 8px;
    height: 100%;
    justify-content: flex-start;
    overflow-x: scroll;
    overflow-y: hidden;
  }

  .header-middle > ul::-webkit-scrollbar,
  .header-bottom > ul::-webkit-scrollbar {
    display: none;
    height: 0;
    opacity: 0;
    width: 0;
  }

  .header-bottom > ul > li {
    white-space: nowrap;
  }

  .header-bottom .on:after {
    bottom: -13px;
  }


  header .logo-wrap {
    width: 100px;
  }


  /*.icon.material-menu{*/
  /*    width : 14px;*/
  /*    height : 7px;*/
  /*}*/
  /*.icon.material-shopping-cart{*/
  /*    width : 17px;*/
  /*    height : 20px;*/
  /*}*/
  /*.icon.awesome-calendar{*/
  /*    width : 18px;*/
  /*    height: 19px;*/
  /*}*/
  /*.icon.feather-circle{*/
  /*    width : 20px;*/
  /*    height :20px;*/
  /*}*/
  .feather-circle + span {
    color: #767676;
    font-size: 10px;
    letter-spacing: -1px;
    line-height: 20px;
  }

  .top-menu {
    gap: 8px;
  }

  /*2023.07.11 헤더 수정분 높이 조절*/
  .header-middle {
    top: 40px;
  }

  .header-bottom {
    top: 80px;
  }

  .top-menu.mo button.menu {
    height: 40px;
    padding: 8px;
    width: 40px;
  }

  .top-menu.mo button.menu ion-icon {
    height: 100%;
    width: 100%;
  }

  .top-menu.mo a {
    height: 40px;
    padding: 8px;
    width: 40px;
  }

  .top-menu.pc a.headCal:has(font),
  .top-menu.mo a.headCal:has(font) {
    transform: translate(0, 0);
    width: auto;
  }

  .top-menu.mo a.headCal:has(font) i {
    border-radius: 2px;
    min-width: 24px;
    padding: 0 4px;
    width: auto;
  }

  .top-menu.mo a ion-icon {
    height: 100%;
    width: 100%;
  }

  .go-top-wrap {
    right: 20px;
  }
}

@media screen and (max-width: 768px) {
  .header-top {
    padding: 0 10px;
  }

  .header-bottom ul li, .header-middle ul li {
    padding: 5px 10px;
  }
}

.header-bottom {
  /*height: auto;*/
}

.header-bottom ul li {
  margin: 11px 0;
}

.translate-box {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  padding: 4px;
  position: relative;
  width: 40px;
}

.translate-box.view .translate-list-box {
  opacity: 1;
  pointer-events: all;
}

.translate-box .translate-list-box {
  background: #ffffff;
  border-radius: 12px;
  bottom: 0;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  opacity: 0;
  padding: 6px;
  pointer-events: none;
  position: absolute;
  right: 0;

  transform: translate(0, 101%);
  transition: 0.2s;
  width: auto;
}

.translate-box .translate-list-box li {
  width: fit-content;
}

.translate-box .translate-list-box li a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  column-gap: 12px;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  min-width: 128px;
  padding: 8px;
  transition: all 0.2s;

  &:hover {
    background: #F8F6F5;
    border: 1px solid #B29B94;

    & .notranslate {
      color: #9C7F76;
    }
  }

  & .notranslate {
    white-space: nowrap;
  }
}

.translate-box .translate-list-box li i {
  height: 24px;
  min-width: 24px;
  width: 24px;
}

.icon.translate {
  height: 28px;
  width: 28px;
}

.translate-box .translate-list-box li font {
  font-size: 16px;
  white-space: nowrap;
}

.skiptranslate {
  display: none;
}

header.header-is-top {
  color: #ffffff;

  & .header-top {
    background: rgba(0, 0, 0, 0.2);

    & .logo-wrap a img {
      display: none;
    }

    & .logo-wrap a img.logo-white {
      display: block;
    }

    & .translate-box .translate-list-box li a {
      color: #111111;
    }

    .icon.material-shopping-cart svg {
      fill: #FFFFFF;
    }

    .icon.material-menu svg {
      fill: #FFFFFF;
    }

    .icon.material-shopping-cart + span {
      background: #FFFFFF;
      border: 1px solid #111111;
      color: #111111;
    }
  }

  & .header-middle {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;

    a {
      color: #FFFFFF;
    }
  }

  & .input-wrap {
    border: 1px solid #ffffff;
  }
}

#foreign-user-check {
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;

  & .foreign-user-check-wrap {
    background: #ffffff;
    border-radius: 20px;
    left: 50%;
    padding: 20px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);

    & .title {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    & .mention {
      color: #777777;
      font-size: 16px;
      margin-bottom: 40px;
    }

    & ul.list {
      display: flex;
      flex-direction: column;
      width: 500px;

      & li {
        border-bottom: 1px solid #d4d4d4;

        &:first-child {
          border-top: 1px solid #d4d4d4;
        }

        & label {
          align-items: center;
          cursor: pointer;
          display: flex;
          justify-content: space-between;
          padding: 10px;
          transition: all 0.2s ease-in-out;

          &:hover {
            background-color: #fafafa;
          }

          &:has(input[type="radio"]:checked) {
            background-color: #ecfdf5;

            & .right {
              & i {
                opacity: 1;
              }
            }
          }

          & input[type="radio"] {
            display: none;
          }

          & .left {
            display: flex;
            flex-direction: column;
            gap: 8px;

            & .top {
              align-items: center;
              display: flex;
              gap: 20px;

              & .foreign-user-name {
                color: #333333;
                font-size: 16px;
                font-weight: 700;
              }

              & .foreign-user-passport-name {
                color: #777777;
                font-size: 14px;
              }
            }

            & .bottom {
              display: flex;
              gap: 4px;

              & .foreign-user-number {
                align-items: center;
                color: #333333;
                display: flex;
                font-size: 14px;
                gap: 4px;

                &:after {
                  background-color: #cccccc;
                  content: "";
                  display: inline-block;
                  height: 14px;
                  margin: 0 10px;
                  width: 1px;
                }
              }

              & .foreign-user-birth-date {
                color: #333333;
                font-size: 14px;
              }
            }
          }

          & .right {
            & i {
              height: 30px;
              opacity: 0;
              transition: all 0.2s ease-in-out;
              width: 30px;

            }
          }
        }
      }
    }

    & .button-box {
      margin-top: 40px;

      button {
        align-items: center;
        background-color: #3A4C40;
        border-radius: 10px;
        color: #ffffff;
        display: flex;
        font-size: 16px;
        font-weight: 700;
        height: 50px;
        justify-content: center;
        width: 100%;
      }
    }
  }
}


.qr-popup {
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;

  & .qr-popup-wrap {
    background: #ffffff;
    border-radius: 20px;
    left: 50%;
    max-width: 300px;
    padding: 50px 20px 20px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);

    & .qr-img {
      height: 200px;
      margin-bottom: 20px;
      width: 200px;
    }

    & button.close {
      background: url("/images/icons/close.svg") no-repeat center / 16px 16px;
      height: 24px;
      position: absolute;
      right: 20px;
      top: 20px;
      width: 24px;
    }
  }
}