@charset "utf-8";

/* ===============================
   dim
================================ */
#dim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  touch-action: none;
}

#dim.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===============================
   side menu (bottom → top)
================================ */


/* 기본 상태 */
#nav {
  position: fixed;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;

  /* 👇 닫힐 때를 위한 트릭 */
  transition: visibility 0s linear 0.35s;
}


#nav .nav-panel {
  position: absolute;
  top: 0;
  /* top: env(safe-area-inset-top); */       /* 상단 터치 영역 제외 */
  
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: translateY(100%);        /* 하단에서 올라오는 애니메이션 */
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  display: flex;
  flex-direction: column;
}

#nav.active .nav-panel {
  transform: translateY(0);
}


/* ===============================
   menu header
================================ */
#nav .menu_header {
  flex-shrink: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eee;
  background: #fff;
  z-index: 2;
  position: relative; /* fixed 제거 */
}

#nav .menu_header::before {
  display: none;
}

#nav .menu_header .tit {
  display: block;
  font-size: 16px;
  font-weight: normal;
  line-height: 48px;
  text-align: center;
}

#nav [class^="btn_"] {
  position: absolute;
  padding-top: env(safe-area-inset-top, 24px);
  width: 50px;
  height: 50px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

#nav .btn_setting {
  left: 10px;
  background-image: url(../ace-img/icon/ico_set_off.png);
  background-size: 20px;
}

#nav .btn_close {
  right: 10px;
  background-image: url(../ace-img/icon/ico_close.png);
  background-size: 16px;
}

/* ===============================
   menu contents
================================ */
#container-wrap {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#container-wrap-inner {
  background: #fff;
  box-sizing: border-box;
  
}

/* profile */
.circleimg-step {
  margin-top: 20px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index:999;
}

.profile-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  margin-top: 20px;
  font-size: 16px;
  color: #111;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateX(10px);
}

/* arrows */
.agree-arrow {
  background: none;
  border: 0;
  padding: 12px;
  cursor: pointer;
}

.arrow-icon,
.arrow-icon_margin {
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #999;
  border-right: 2px solid #999;
  transform: rotate(45deg);
}

.arrow-icon_margin {
  margin-top: 4px;
}

/* sections */
.section {
  margin-top: 16px;
}

.sectionlast {
  margin-bottom: 140px;
}

.section-title {
  font-size: 14px;
  font-weight: normal;
  color: #111;
  margin-bottom: 15px;
  padding-left: 20px;
}

.section-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.section-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: #fff;
  color: #111;
  text-decoration: none;
  border-radius: 8px;
}

.item-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;

  object-fit: contain;   
  display: block;
}

.item-icon.wide {
  width: 20px;     /* 기준 고정 */
  height: auto;
}

.item-icon.tall {
  width: auto;
  height: 20px;    /* 기준 고정 */
}

.item-text {
  flex: 1;
  font-size: 14px;
}

/* ===============================
   body scroll lock
================================ */
body.menu-open #nav {
  top: 0;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}