/* 출산택일 보고서 주문: 상품 안내 → 출산 정보 → 신청·결제. 이 페이지 안에서만 적용한다. */
body.tka-page {
  background: var(--body-bg);
}

body.tka-page .tka-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px calc(40px + env(safe-area-inset-bottom));
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t2);
  line-height: 1.75;
}

.tka-page .mini-head {
  padding-inline: max(20px, calc((100vw - 720px) / 2 + 20px));
}

.tka-shell [hidden] {
  display: none !important;
}

.tka-shell :is(section, header, details, div, form, figure, label, a, button) {
  min-width: 0;
}

.tka-shell :is(#application, .tka-card, #tk-dates-title, #tk-count-title, #tk-count-box, #tk-order-title, #tk-contact-fields) {
  scroll-margin-top: 85px;
}

.tka-shell a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.tka-shell :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.tka-shell :is(b, strong) {
  color: var(--ink);
}

.tka-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 16px;
  margin-bottom: 16px;
}

.tka-top > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink2);
  font-size: var(--t2);
  text-decoration: none;
}

/* 공용 header의 고정 머리줄 속성을 풀어 본문 흐름 안에 둔다. */
.tka-shell .tka-intro,
.tka-shell .tka-card-head {
  position: static;
  inset: auto;
  z-index: auto;
  background: transparent;
  border: 0;
  padding: 0;
}

.tka-shell .tka-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 24px;
  margin: 0 0 28px;
}

.tka-intro-copy .tka-eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: var(--t1);
  font-weight: 700;
  letter-spacing: .06em;
}

.tka-shell .tka-intro h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(26px, 4.4vw, 32px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.tka-shell .tka-intro .lede {
  margin: 10px 0 0;
  color: var(--ink2);
  font-size: var(--t2);
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.tka-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 15px 0 0;
  color: var(--ink2);
  font-size: var(--t2);
  line-height: 1.5;
}

.tka-offer :is(b, strong, [data-price]) {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.tka-delivery {
  margin: 7px 0 0;
  color: var(--ink3);
  font-size: var(--t1);
  line-height: 1.7;
}

.tka-guide {
  width: 210px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background: var(--hero-bg);
}

.tka-guide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 42%;
}

.tka-shell .tka-form.intake {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tka-form .tka-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background: var(--card2);
  box-shadow: none;
}

.tka-form .tka-card + .tka-card {
  margin-top: 20px;
}

.tka-shell .tka-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 24px;
}

.tka-num {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent2);
  font-size: var(--t2);
  font-weight: 700;
}

.tka-form .tka-card-head h2 {
  display: block;
  margin: 2px 0 4px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t4);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -.025em;
}

.tka-form .tka-card-head p {
  margin: 0;
  color: var(--ink2);
  font-size: var(--t2);
  line-height: 1.7;
}

.tka-form .tk-input-group + .tk-input-group {
  margin-top: 24px;
}

.tka-form .tk-input-group label.fq {
  display: block;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: var(--t3);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.015em;
}

.tka-form .tk-input-group label.fq em {
  margin-left: 6px;
  color: var(--accent);
  font-size: var(--t1);
  font-weight: 400;
}

.tka-form :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line2);
  border-radius: var(--r1);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t3);
  line-height: 1.5;
}

.tka-form :is(input, select, textarea):focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.tka-form :is(input, select, textarea)[aria-invalid="true"] {
  border-color: var(--g0);
}

.tka-form .tka-input-msg {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--g0);
  border-radius: 0 var(--r1) var(--r1) 0;
  background: var(--g0-bg);
  color: var(--g0-ink);
  font-size: var(--t2);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.tka-form .med {
  margin: 12px 0 0;
  color: var(--ink3);
  font-size: var(--t1);
  line-height: 1.75;
}

.tka-form .tk-pick .tkp-row {
  gap: 10px;
  margin-top: 0;
}

.tka-form .tk-pick .tkp-row > :is(input, select) {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 100%;
}

.tka-form .tk-pick .tka-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.tka-form label.tka-date {
  display: block;
  margin: 0;
  color: var(--ink2);
  letter-spacing: 0;
}

.tka-date > span {
  display: block;
  margin-bottom: 6px;
  font-size: var(--t1);
  line-height: 1.5;
}

.tka-form .tka-date :is(input[type="date"], input[type="time"]) {
  display: block;
  min-inline-size: 0;
  inline-size: 100%;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.tka-form input[type="date"]::-webkit-date-and-time-value {
  min-height: 24px;
  text-align: left;
}

.tka-form .tka-dates > .tka-range-sep {
  padding-bottom: 12px;
  color: var(--ink3);
  text-align: center;
}

.tka-form .tk-pick .tka-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 12px;
}

.tka-form .tka-time-card {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line2);
  border-radius: var(--r1);
  background: var(--accent-soft);
}

.tka-time-card legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: var(--t2);
  font-weight: 700;
}

.tka-time-controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 6px;
}

.tka-form .tka-time-controls select {
  min-height: 48px;
  padding: 10px 5px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .tka-form .tk-pick .tka-times {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tka-form .tka-time-controls select {
    padding-inline: 10px;
  }
}

.tka-form :is(.hint, .tk-sub, .tk-read, .tka-default-note) {
  color: var(--ink3);
  font-size: var(--t1);
  line-height: 1.8;
}

.tka-form .tk-read {
  margin: 8px 0 0;
}

.tka-form .tk-read.bad {
  color: var(--g0-ink);
}

.tka-form :is(.tk-rawbtn, .tk-add) {
  min-height: 44px;
  margin: 2px 0 0;
  padding: 9px 2px;
  color: var(--accent);
  font-size: var(--t1);
}

.tka-form .tk-del {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: var(--r1);
}

.tka-form .tk-item + .tk-item {
  margin-top: 10px;
  padding-top: 10px;
}

.tka-hospital {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: var(--card);
}

.tka-hospital > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
}

.tka-hospital > summary::-webkit-details-marker {
  display: none;
}

.tka-summary-title > span {
  display: block;
  color: var(--ink);
  font-size: var(--t2);
  font-weight: 700;
  line-height: 1.6;
}

.tka-summary-title > small {
  display: block;
  margin-top: 2px;
  color: var(--ink3);
  font-size: var(--t1);
  line-height: 1.7;
}

.tka-plus {
  flex: 0 0 24px;
  color: var(--accent);
  font-size: var(--t5);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  transition: transform .15s ease;
}

.tka-hospital[open] > summary .tka-plus {
  transform: rotate(45deg);
}

.tka-hospital-body {
  margin: 0 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.tka-form .check {
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
}

.tka-form .check label {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: var(--ink2);
  font-size: var(--t2);
  line-height: 1.6;
  cursor: pointer;
}

.tka-form :is(.check, .agree) input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-width: 19px;
  min-height: 19px;
  padding: 0;
  accent-color: var(--accent);
}

.tka-form .tka-default-note {
  margin: 12px 0 0;
  padding-inline: 2px;
}

.tka-shell .tka-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--line2);
  border-radius: var(--r1);
  background: var(--card);
  color: var(--ink2);
  font-family: var(--sans);
  font-size: var(--t2);
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.tka-shell .tka-secondary:disabled,
.tka-shell .tka-secondary[aria-disabled="true"] {
  opacity: .55;
  cursor: default;
}

/* 결제 직전 상태 안내. 큰 숫자판 대신 짧은 설명과 상세 접힘을 쓴다. */
.tka-form .tka-order-check {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: var(--card);
}

.tka-order-check[data-state="ready"] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.tka-result-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}

.tka-order-check :is(#tk-count-title, .tka-result-label) {
  margin: 0;
  color: var(--ink2);
  font-family: var(--sans);
  font-size: var(--t2);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
}

.tka-order-check #tk-count-title::after {
  display: none;
}

#tk-result-status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r3);
  background: var(--card);
  color: var(--accent2);
  font-size: var(--t1);
  line-height: 1.6;
}

.tka-order-check #tk-result-caption {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: var(--t2);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.tka-order-check #tk-count-guide {
  margin: 8px 0 0;
  color: var(--ink2);
  font-size: var(--t1);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.tka-form .tka-order-check #tk-count-result .tk-read {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  color: var(--ink2);
  font-size: var(--t1);
  line-height: 1.75;
}

.tka-form .tka-order-check #tk-count-result .tk-read.bad {
  color: var(--g0-ink);
}

/* 상태 문구는 그대로 두고, 확인 전·추가 확인·실패를 색으로도 구분한다. */
.tka-result:is([data-state="empty"], [data-state="loading"], [data-state="changed"]) #tk-result-status {
  color: var(--ink2);
  border-color: var(--line2);
  background: var(--bg2);
}

.tka-result[data-state="dst"] #tk-result-status {
  color: var(--water);
  border-color: var(--water);
  background: var(--card);
}

.tka-result[data-state="holiday"] #tk-result-status {
  color: var(--g3-ink);
  border-color: var(--g3);
  background: var(--g3-bg);
}

.tka-result:is([data-state="error"], [data-state="zero"]) #tk-result-status {
  color: var(--g0-ink);
  border-color: var(--g0);
  background: var(--g0-bg);
}

.tka-form #tk-weekend-prompt {
  margin: 0 0 20px;
}

.tka-check-details {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink2);
  font-size: var(--t1);
  line-height: 1.7;
}

.tka-check-details > summary {
  min-height: 44px;
  padding: 10px 0;
  font-weight: 500;
  cursor: pointer;
}

.tka-count-breakdown {
  margin: 0 0 6px;
}

.tka-count-breakdown ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tka-count-breakdown li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.tka-count-breakdown li:last-child {
  border-bottom: 0;
}

.tka-count-breakdown li > span {
  color: var(--ink2);
  font-size: var(--t1);
  line-height: 1.7;
}

.tka-count-breakdown li > strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: var(--t2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tka-count-breakdown li:last-child > strong {
  color: var(--accent2);
}

.tka-result-actions {
  margin-top: 10px;
}

.tka-order-check > .tka-secondary {
  margin-top: 10px;
}

.tka-disclosure {
  margin-top: 12px;
  color: var(--ink2);
  font-size: var(--t1);
  line-height: 1.8;
}

.tka-disclosure > summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--ink2);
  font-weight: 500;
  cursor: pointer;
}

.tka-disclosure :is(p, ul, ol) {
  margin: 4px 0 12px;
}

.tka-disclosure :is(ul, ol) {
  padding-left: 20px;
}

.tka-product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.tka-form .tka-product-head :is(h3, p) {
  margin: 0;
  color: var(--ink);
  font-size: var(--t3);
  line-height: 1.6;
}

.tka-product-head :is(strong, [data-price]) {
  color: var(--ink);
  font-size: var(--t6);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.tka-product-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink2);
  font-size: var(--t2);
  line-height: 1.75;
}

.tka-product-list li::marker {
  color: var(--accent);
}

.tka-included {
  margin-bottom: 14px;
}

.tka-shell .tka-refund {
  margin: 0 0 24px;
  padding: 12px 14px;
  border-radius: var(--r1);
  background: var(--accent-soft);
  color: var(--ink2);
  font-size: var(--t2);
  line-height: 1.75;
}

#tk-contact-fields {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.tka-form .seg {
  gap: 8px;
  margin: 0;
}

.tka-form .seg button {
  min-height: 46px;
  padding: 11px 8px;
  border-radius: var(--r1);
  background: var(--card);
  color: var(--ink2);
  font-size: var(--t2);
  line-height: 1.5;
}

.tka-form .seg button.on {
  border-color: var(--accent2);
  background: var(--accent-soft);
  color: var(--accent2);
}

.tka-review {
  margin-top: 24px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: var(--card);
}

.tka-review > summary {
  min-height: 48px;
  padding: 13px 0;
  color: var(--ink);
  font-size: var(--t2);
  font-weight: 700;
  cursor: pointer;
}

#tk-review-list {
  display: grid;
  grid-template-columns: minmax(70px, 100px) minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
  padding: 4px 0 16px;
  font-size: var(--t2);
  line-height: 1.7;
}

#tk-review-list dt {
  color: var(--ink3);
}

#tk-review-list dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.tka-consents {
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.tka-consents > h3 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: var(--t2);
  font-weight: 700;
  line-height: 1.65;
}

.tka-form .tka-consents .agree {
  gap: 11px;
  min-height: 44px;
  margin: 0;
  padding: 12px 0;
  color: var(--ink2);
  font-size: var(--t2);
  line-height: 1.85;
}

.tka-form .tka-consents .agree input {
  margin-top: 4px;
}

.tka-form .tka-consents .agree + .agree {
  border-top: 1px solid var(--line);
}

.tka-checkout {
  margin-top: 20px;
}

.tka-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 20px 0 12px;
  color: var(--ink2);
  font-size: var(--t2);
}

.tka-total b {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.tka-form .tka-checkout .send {
  min-height: 52px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--r1);
  font-size: var(--t3);
  line-height: 1.6;
}

.tka-checkout #whyLogin {
  margin-top: 12px;
  font-size: var(--t1);
  line-height: 1.8;
}

.tka-form .msg {
  max-width: 100%;
  padding: 0;
  overflow-wrap: anywhere;
}

.tka-form .msg:empty {
  margin: 0;
}

.tka-shell :is(.already, .loginmsg) {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r1);
  background: var(--card);
  color: var(--ink2);
  font-size: var(--t2);
  line-height: 1.8;
}

.tka-shell .loginmsg {
  color: var(--g0-ink);
}

.tka-shell .fine {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink3);
  font-size: var(--t1);
  line-height: 1.9;
  text-align: left;
  letter-spacing: 0;
}

.tka-shell .fine a {
  color: var(--ink2);
}

.tka-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 16px;
}

.tka-footer-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t2);
}

@media (max-width: 559px) {
  body.tka-page .tka-shell {
    padding: 14px 14px calc(28px + env(safe-area-inset-bottom));
  }

  .tka-page .mini-head {
    padding-inline: 14px;
  }

  .tka-top {
    gap: 4px 8px;
    margin-bottom: 12px;
  }

  .tka-shell .tka-intro {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    margin-bottom: 22px;
  }

  .tka-shell .tka-intro h1 {
    font-size: 26px;
    line-height: 1.4;
  }

  .tka-offer {
    margin-top: 13px;
  }

  .tka-offer :is(b, strong, [data-price]) {
    font-size: 30px;
  }

  .tka-guide {
    width: 100%;
    margin: 0;
    border-radius: var(--r1);
  }

  .tka-guide img {
    height: 184px;
    aspect-ratio: auto;
  }

  .tka-form .tka-order-check {
    padding: 12px;
  }

  .tka-form .tka-card {
    padding: 20px 16px;
  }

  .tka-form .tka-card + .tka-card {
    margin-top: 16px;
  }

  .tka-shell .tka-card-head {
    gap: 10px;
    margin-bottom: 20px;
  }

  .tka-form .tka-card-head h2 {
    font-size: var(--t4);
  }

  .tka-form .tka-date input[type="date"] {
    padding-inline: 7px;
  }

  .tka-hospital > summary {
    padding-inline: 12px;
  }

  .tka-hospital-body {
    margin-inline: 12px;
  }

  .tka-product-head :is(strong, [data-price]) {
    font-size: var(--t5);
  }

  #tk-review-list {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 9px 10px;
  }
}

@media (max-width: 400px) {
  body.tka-page .tka-shell {
    padding-inline: 12px;
  }

  .tka-form .tk-pick .tka-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tka-form .tka-dates > .tka-range-sep {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .tka-page,
  .tka-shell *,
  .tka-shell *::before,
  .tka-shell *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
