/* 마케팅팀 구독 견적 조합기 — 구독 페이지(#estimate)·홈 하단(#homeEstimate) 공용 (마크업: svc-subscription-estimate.ts)
   글자·막대 주색은 --mte-ink(기본 구독 페이지 남색, 홈은 사이트 파랑).
   구독 상세페이지(.mts-page)는 좁은 화면에서 통째로 축소되므로, 이 구획은 축소를 되돌려 실제 크기로 그린다.
   그래서 아래 값은 화면 실제 px 이고, 휴대폰 대응은 일반 미디어쿼리로 한다.
   목록 10줄 + 합계 막대가 한 화면에 들어오도록 항목은 한 줄(줄바꿈 없음)로 둔다. */
.mte-sec { background: transparent; scroll-margin-top: calc(68px / var(--mts-zoom, 1)); }
.mte { zoom: calc(1 / var(--mts-zoom, 1)); padding: 40px 64px 32px; color: #1E2026; line-height: normal; letter-spacing: -0.02em; text-align: left; }
.mte-title { margin: 0; font-size: 34px; line-height: 1.35; font-weight: 800; letter-spacing: -0.04em; }
.mte-lead { margin: 10px 0 0; font-size: 17px; line-height: 1.55; color: #2E3036; }
.mte-form { margin-top: 0; }
.mte-tools { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-bottom: 8px; }
.mte-tools-btns { display: flex; gap: 8px; margin-left: auto; }
.mte-tools button { white-space: nowrap; }
.mte-tools button {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--mte-ink, #25469E); background: #FFFFFF;
  border: 1.5px solid var(--mte-ink, #25469E); border-radius: 4px; padding: 6px 12px; cursor: pointer;
}
.mte-tools button:hover { background: #F3F5FB; }
.mte-list { border-top: 2px solid var(--mte-ink, #25469E); }
.mte-item {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 84px; gap: 14px; align-items: center;
  padding: 9px 4px; border-bottom: 1px dashed #D9C59A; cursor: pointer; white-space: nowrap;
}
.mte-item--fixed { cursor: default; }
.mte-item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.mte-box { width: 22px; height: 22px; border: 2px solid #9AA0AE; border-radius: 4px; background: #FFFFFF; position: relative; }
.mte-item input:checked + .mte-box { border-color: var(--mte-ink, #25469E); background: var(--mte-ink, #25469E); }
.mte-item input:checked + .mte-box::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
  border: solid #FFFFFF; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.mte-item--fixed input:checked + .mte-box { border-color: #9AA0AE; background: #9AA0AE; }
.mte-item input:focus-visible + .mte-box { outline: 3px solid #FFE94A; outline-offset: 2px; }
.mte-name { font-size: 18px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.mte-amount { font-size: 15px; font-weight: 700; color: var(--mte-ink, #25469E); text-align: right; }
.mte-price { font-size: 16px; font-weight: 700; color: #50525A; text-align: right; }
.mte-price b { color: var(--mte-ink, #25469E); }
.mte-item--fixed .mte-name, .mte-item--fixed .mte-amount { color: #50525A; }
.mte-item input:checked ~ .mte-price { color: #1E2026; }
.mte-item--fixed input:checked ~ .mte-price { color: var(--mte-ink, #25469E); }
.mte-item:not(.mte-item--fixed):hover { background: #FFFFFF; }

.mte-bar {
  position: sticky; bottom: 0; z-index: 5; margin-top: 14px;
  background: var(--mte-ink, #25469E); color: #FFFFFF; border-radius: 4px; padding: 12px 20px;
  box-shadow: 0 -6px 20px rgba(17,19,24,0.12); white-space: nowrap;
}
.mte-bar-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mte-bar-sub { font-size: 15px; font-weight: 600; }
.mte-bar-sub s { text-decoration-color: #FFE94A; text-decoration-thickness: 2px; }
.mte-bar-sub s.is-plain { text-decoration: none; }
.mte-bar-total { font-size: 18px; font-weight: 700; }
.mte-bar-total strong { font-size: 32px; font-weight: 900; letter-spacing: -0.03em; margin: 0 2px; }
.mte-bar-total small { font-size: 13px; font-weight: 600; opacity: 0.8; }
.mte-bar-note { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: #D6DAEA; overflow: hidden; text-overflow: ellipsis; }
.mte-bar-note.is-hot { color: #FFE94A; font-weight: 700; }
.mte-bar-note button {
  font: inherit; color: #FFFFFF; background: none; border: 0; padding: 0; margin-left: 8px;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}

.mte-fields { margin-top: 48px; }
.mte-fields-title { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.mte-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mte-field { display: block; margin-bottom: 16px; }
.mte-grid .mte-field { margin-bottom: 0; }
.mte-grid + .mte-field { margin-top: 16px; }
.mte-field > span { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.mte-field i, .mte-privacy i { font-style: normal; color: #E0322B; }
.mte-field input, .mte-field textarea {
  display: block; width: 100%; font: inherit; font-size: 16px; color: #1E2026; background: #FFFFFF;
  border: 1.5px solid #D8D1C2; border-radius: 4px; padding: 14px 14px; outline: none;
}
.mte-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.mte-field input:focus, .mte-field textarea:focus { border-color: var(--mte-ink, #25469E); }
.mte-field input::placeholder, .mte-field textarea::placeholder { color: #9AA0AE; }
.mte-privacy { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.mte-privacy label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.mte-privacy input { width: 20px; height: 20px; accent-color: var(--mte-ink, #25469E); margin: 0; }
.mte-privacy button {
  font: inherit; font-size: 14px; color: #50525A; background: none; border: 0; padding: 4px 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap;
}
.mte-privacy-panel { margin-top: 10px; padding: 14px 16px; background: #F7F5F0; border-radius: 4px; font-size: 14px; line-height: 1.6; color: #2E3036; }
.mte-privacy-panel p { margin: 0; }
.mte-error { margin: 14px 0 0; font-size: 15px; font-weight: 700; color: #E0322B; }
.mte-submit {
  display: block; width: 100%; margin-top: 20px; font: inherit; font-size: 20px; font-weight: 800;
  color: #FFFFFF; background: var(--mte-ink, #25469E); border: 0; border-radius: 4px; padding: 20px; cursor: pointer;
}
.mte-submit:hover { opacity: 0.92; }
.mte-submit:disabled { opacity: 0.5; cursor: default; }
.mte-foot { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: #50525A; }
.mte-done { margin-top: 0; padding: 40px 32px; background: #FFFFFF; border-radius: 4px; text-align: center; }
.mte-done-title { font-size: 28px; font-weight: 800; color: var(--mte-ink, #25469E); }
.mte-done p { margin: 14px 0 0; font-size: 18px; line-height: 1.6; }
.mte-done b { word-break: break-all; }

/* 휴대폰: 360~430px 폭에서도 한 줄에 들어가게 글자를 화면 폭에 맞춰 줄인다 */
@media (max-width: 700px) {
  .mte-sec { scroll-margin-top: calc(60px / var(--mts-zoom, 1)); }
  .mte { padding: 24px 16px 24px; }
  .mte-title { font-size: clamp(19px, 5.6vw, 22px); }
  .mte-lead { font-size: 13.5px; margin-top: 6px; }
  .mte-form { margin-top: 12px; }
  .mte-tools { margin-bottom: 6px; }
  .mte-tools button { font-size: 13px; padding: 5px 10px; }
  .mte-item { grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 8px; padding: 8px 0; }
  .mte-box { width: 18px; height: 18px; }
  .mte-item input:checked + .mte-box::after { left: 4px; top: 0; width: 5px; height: 10px; border-width: 0 2px 2px 0; }
  .mte-name { font-size: clamp(13px, 3.9vw, 16px); }
  .mte-amount { font-size: clamp(11.5px, 3.2vw, 13.5px); }
  .mte-price { font-size: clamp(12.5px, 3.5vw, 14.5px); min-width: 4.4em; }
  .mte-bar { padding: 10px 14px; margin-top: 10px; }
  .mte-bar-row { flex-direction: column; gap: 0; }
  .mte-bar-sub { font-size: 12.5px; order: 2; }
  .mte-bar-total { font-size: 15px; order: 1; }
  .mte-bar-total strong { font-size: 26px; }
  .mte-bar-total small { font-size: 12px; }
  .mte-bar-note { font-size: 12.5px; }
  /* 신청 칸: 휴대폰에서 세로 길이를 줄인다(대표 요청 2026-10-27) — 두 칸씩 나란히, 칸·간격·여백 축소.
     글자는 16px 유지(아이폰이 입력할 때 화면을 확대하지 않게) */
  .mte-fields { margin-top: 28px; }
  .mte-fields-title { font-size: 19px; margin-bottom: 12px; }
  .mte-grid { grid-template-columns: 1fr 1fr; gap: 10px 8px; }
  .mte-grid + .mte-field { margin-top: 10px; }
  .mte-field { margin-bottom: 10px; }
  .mte-field > span { font-size: 13px; margin-bottom: 4px; }
  .mte-field input, .mte-field textarea { padding: 10px 11px; }
  .mte-field textarea { min-height: 64px; }
  .mte-privacy { font-size: 13.5px; }
  .mte-error { margin-top: 10px; font-size: 14px; }
  .mte-submit { font-size: 17px; padding: 15px; margin-top: 14px; }
  .mte-foot { font-size: 12.5px; margin-top: 10px; }
}

/* 도구 줄 왼쪽 안내(홈: '마케팅팀 구독 견적' 범위 표시) */
.mte-tools:has(.mte-intro) { justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.mte-intro { font-size: 15px; font-weight: 700; color: #2E3036; text-align: left; }
.mte-intro a { color: var(--mte-ink, #25469E); text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
@media (max-width: 700px) { .mte-intro { font-size: 13px; } }

/* ── 홈 하단(#homeEstimate): 사진 바탕 위 흰 판, 사이트 파랑 ── */
.mte-sec--home {
  --mte-ink: var(--blue, #25469E);
  max-width: 860px; margin: 40px auto 0; background: #FFFFFF; border-radius: 4px;
  box-shadow: 0 18px 50px -24px rgba(17, 19, 24, 0.35); text-align: left;
  scroll-margin-top: 80px;
}
.mte-sec--home .mte { padding: 28px 40px 36px; }
.mte-sec--home .mte-item:not(.mte-item--fixed):hover { background: #F6F8FD; }
.mte-sec--home .mte-done { background: transparent; padding: 24px 8px; }
.hcta-other { margin-top: 40px; text-align: center; }
.hcta-other p { margin: 0 0 14px; font-size: 16px; color: var(--gray-2, #50525A); }
@media (max-width: 700px) {
  .mte-sec--home { margin-top: 28px; }
  .mte-sec--home .mte { padding: 20px 16px 24px; }
  .hcta-other { margin-top: 28px; }
  .hcta-other p { font-size: 14px; }
}

/* 홈(.svc-light)에는 글자색·바탕을 !important 로 일괄 덮는 규칙이 있다(style.css 'LIGHT THEME').
   조합기 안에서는 그 규칙 대신 위의 색을 쓰도록, 더 구체적인 선택자로 되돌린다. */
.svc-light .mte-sec--home { background: #FFFFFF !important; }
.svc-light .mte-sec :is(p, span, strong, small, b, s, em) { color: inherit !important; }
.svc-light .mte-sec [class*="-title"] { color: inherit !important; }
.svc-light .mte-sec .mte-amount { color: var(--mte-ink, #25469E) !important; }
.svc-light .mte-sec .mte-price { color: #50525A !important; }
.svc-light .mte-sec .mte-price b { color: var(--mte-ink, #25469E) !important; }
.svc-light .mte-sec .mte-item input:checked ~ .mte-price { color: #1E2026 !important; }
.svc-light .mte-sec .mte-item--fixed :is(.mte-name, .mte-amount) { color: #50525A !important; }
.svc-light .mte-sec .mte-item--fixed input:checked ~ .mte-price b { color: var(--mte-ink, #25469E) !important; }
.svc-light .mte-sec .mte-bar-note { color: #D6DAEA !important; }
.svc-light .mte-sec .mte-bar-note.is-hot { color: #FFE94A !important; }
.svc-light .mte-sec .mte-error { color: #E0322B !important; }
.svc-light .mte-sec .mte-foot { color: #50525A !important; }
.svc-light .mte-sec .mte-privacy-panel p { color: #2E3036 !important; }
.svc-light .mte-sec .mte-done-title { color: var(--mte-ink, #25469E) !important; }
