:root {
  --v2-line: rgba(48, 42, 30, 0.12);
  --v2-green: #34ab2a;
  --v2-green-2: #2f9f26;
  --v2-ink: #1f2328;
  --v2-gray: #7f857d;
  --v2-card: #ffffff;
}

body {
  background: #e8e6df;
  display: flex;
  justify-content: center;
  padding: 24px 0 40px;
}

#wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.v2-phone {
  width: 100%;
  max-width: 430px;
  min-height: calc(100vh - 64px);
  position: relative;
  background: #f6f7f3;
  border-radius: 28px;
  box-shadow: 0 22px 48px -30px rgba(0, 0, 0, 0.4), 0 10px 22px -20px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.v2-status-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
}

.v2-status-bar .group {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.v2-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 48px;
}

.v2-appbar .back {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--v2-ink);
}

.v2-appbar .back .v2-ic {
  width: 22px;
  height: 22px;
}

.v2-appbar .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--v2-ink);
}

.v2-appbar .sp {
  width: 38px;
  height: 38px;
}

.v2-progress {
  padding: 0 22px 12px;
}

.v2-progress .bar {
  height: 8px;
  background: #d8ddd3;
  border-radius: 999px;
  overflow: hidden;
}

.v2-progress .bar i {
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #45bc38, var(--v2-green));
}

.v2-progress .step {
  margin-top: 8px;
  font-size: 12px;
  color: #6f766e;
  font-weight: 700;
}

.v2-scroll {
  padding: 6px 22px 110px;
}

.v2-lead {
  font-size: 27px;
  line-height: 1.32;
  letter-spacing: -0.03em;
  color: var(--v2-ink);
  font-weight: 800;
}

.v2-lead-sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--v2-gray);
  line-height: 1.55;
}

.agree_box {
  margin-top: 20px;
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

/* account.css 가 sub.css 의 @import 로 딸려 들어와
 * `.agree_box .agree_all { padding: 0 20px }` (0,2,0) 을 걸어둔다.
 * 아래 항목(li)은 좌측 14px 이라 전체동의 줄만 6px 밀린다.
 * 같은 특정성으로 잡고 나중에 선언해서 14px 로 맞춘다. */
.agree_box .agree_all {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--v2-line);
  background: #fbfcf9;
}

/* 동의 체크박스 (22px 초록 원형)
 *
 * setting.css 가 같은 .checkbox 클래스에 구형 스타일(회색 체크표시 SVG)을
 * `.checkbox input[type=checkbox]+em` (0,2,2) 로 걸어두고 있다.
 * 이 파일이 나중에 로드돼도 선택자가 덜 구체적이면 밀리므로,
 * `.agree_box` 로 스코프하고 `[type="checkbox"]` 를 붙여 (0,3,2) 로 올린다.
 * 스코프 덕에 다른 페이지의 .checkbox 에는 영향이 없다.
 */
.agree_box .checkbox--round label,
.agree_box .checkbox label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #2f3530;
  font-weight: 700;
  font-size: 14px;
}

.agree_box .checkbox--round input[type="checkbox"],
.agree_box .checkbox input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.agree_box .checkbox--round input[type="checkbox"] + em,
.agree_box .checkbox input[type="checkbox"] + em {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-right: 0;   /* setting.css 의 10px 제거 — label 의 gap 과 중복된다 */
  background: none;  /* setting.css 의 체크표시 SVG 제거 */
  border: 1.5px solid #bfc7bc;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  transition: all 0.15s;
}

.agree_box .checkbox--round input[type="checkbox"] + em::after,
.agree_box .checkbox input[type="checkbox"] + em::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}

.agree_box .checkbox--round input[type="checkbox"]:checked + em,
.agree_box .checkbox input[type="checkbox"]:checked + em {
  background: linear-gradient(180deg, #45bc38 0%, var(--v2-green) 100%);
  border-color: transparent;
}

.agree_box .checkbox--round input[type="checkbox"]:checked + em::after,
.agree_box .checkbox input[type="checkbox"]:checked + em::after {
  opacity: 1;
}

.agree_dtl_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agree_dtl_list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  border-top: 1px solid var(--v2-line);
}

.agree_dtl_list li:first-child {
  border-top: 0;
}

.btn_show_detail {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--v2-line);
  color: #8f968d;
  display: grid;
  place-items: center;
  text-decoration: none;
  position: relative;
}

.agree_box.active {
  border-color: rgba(52, 171, 42, 0.45);
  box-shadow: 0 0 0 3px rgba(52, 171, 42, 0.08);
}

.floating_btn {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 12px 22px 18px;
  background: linear-gradient(180deg, rgba(246, 247, 243, 0) 0%, rgba(246, 247, 243, 0.95) 24%, rgba(246, 247, 243, 1) 55%);
}

.btn_primary.v2-submit {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  border: 0;
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 800;
  background: linear-gradient(180deg, #45bc38 0%, var(--v2-green) 52%, var(--v2-green-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px -8px rgba(40, 150, 28, 0.5);
}

.btn_primary.v2-submit:disabled {
  opacity: 0.45;
}

@media (max-width: 460px) {
  body {
    padding: 0;
  }

  .v2-phone {
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}
