/* ============================================================
 * 성우웰라이프 상조 온라인 상담신청 팝업 v2.0 — 실시간 견적서 (프린트 슬롯형)
 * 메인 주황 · 보조 네이비 / 모든 클래스 swc- 접두어
 * 색상은 아래 변수만 바꾸면 전체 반영
 * ============================================================ */
.swc {
  --swc-or: var(--sw-orange-600);        /* 메인 주황 */
  --swc-or-d: var(--sw-orange-700);      /* 주황 진하게 (글자용) */
  --swc-or-l: var(--sw-orange-50);      /* 주황 아주 연하게 (선택 배경) */
  --swc-or-hl: rgba(251,102,12,.36); /* 형광펜 */
  --swc-nv: var(--sw-navy-900);        /* 보조 네이비 */
  --swc-nv-2: var(--sw-navy-900);
  --swc-iv: var(--sw-surface-cream);        /* 웜 아이보리 */
  --swc-paper: var(--sw-surface-cream);
  --swc-ln: var(--sw-line);
  --swc-ln-2: var(--sw-line-strong);
  --swc-mt: var(--sw-text-muted);
  --swc-ft: var(--sw-text-muted);
  --swc-err: var(--sw-danger);
  --swc-font: var(--sw-font);
  --swc-serif: var(--sw-font);

  position: fixed; inset: 0; z-index: var(--sw-z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  font-family: var(--sw-font); color: var(--swc-nv);
  -webkit-font-smoothing: antialiased; word-break: keep-all; letter-spacing: -.02em;
}
.swc[hidden], .swc [hidden] { display: none !important; }
.swc *, .swc *::before, .swc *::after { box-sizing: border-box; }
.swc button { font-family: inherit; }
html.swc-lock, html.swc-lock body { overflow: hidden; }
.swc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 레이어 ---------- */
.swc-backdrop { position: absolute; inset: 0; background: rgba(20,22,30,.58); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.swc.is-open .swc-backdrop { opacity: 1; }

.swc-dialog {
  position: relative; width: min(1180px, 100%); height: min(820px, calc(100vh - 48px));
  display: grid; grid-template-columns: minmax(0, 1fr) 440px;
  background: var(--sw-surface); border-radius: var(--sw-radius-xl); overflow: hidden;
  box-shadow: var(--sw-shadow-overlay);
  opacity: 0; transform: translateY(18px) scale(.985);
  transition: opacity .3s ease, transform .3s ease;
}
.swc.is-open .swc-dialog { opacity: 1; transform: none; }

.swc-x {
  position: absolute; top: 22px; right: 22px; z-index: 6;
  width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--sw-text-on-dark); transition: background .2s;
}
.swc-x:hover { background: rgba(255,255,255,.2); }
.swc-x:focus-visible { outline: 3px solid rgba(251,102,12,.6); outline-offset: 2px; }

/* ============================================================
 * 왼쪽: 신청서
 * ============================================================ */
.swc-left { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 48px 48px 48px; scrollbar-width: thin; scrollbar-color: var(--sw-line-strong) transparent; }
.swc-eyebrow { margin: 0; font-size: 14px; letter-spacing: -.02em; font-weight: 700; color: var(--swc-or); }
.swc-title { margin: 8px 0 0; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--swc-nv); }
.swc-sub { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--swc-mt); }

.swc-sec { padding-top: 32px; }
.swc-sl { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.swc-sl b { font-size: 14px; font-weight: 800; letter-spacing: -.02em; color: var(--swc-or); }
.swc-sl strong { font-size: 14px; font-weight: 700; color: var(--swc-nv); }
.swc-sl span { margin-left: auto; font-size: 14px; color: var(--swc-ft); }
.swc-req { font-style: normal; color: var(--swc-or); margin-left: 3px; }

.swc-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.swc-field:last-child { margin-bottom: 0; }
.swc-label { font-size: 14px; font-weight: 600; color: var(--swc-mt); }
.swc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swc-grid > .swc-field { margin-bottom: 0; }
.swc-sec > .swc-grid { margin-bottom: 16px; }

.swc-input, .swc-select, .swc-textarea {
  width: 100%; height: 50px; padding: 0 16px; margin: 0;
  border: 1.5px solid transparent; border-radius: var(--sw-radius-md);
  background-color: var(--swc-iv); color: var(--swc-nv);
  font: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.swc-select {
  padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237C7466' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.swc-select:disabled { color: var(--swc-ft); cursor: not-allowed; opacity: .75; }
.swc-textarea { height: auto; min-height: 104px; padding: 16px 16px; line-height: 1.6; resize: vertical; }
.swc-input::placeholder, .swc-textarea::placeholder { color: var(--swc-ft); }
.swc-input:focus, .swc-select:focus, .swc-textarea:focus { outline: 0; background-color: var(--sw-surface); border-color: var(--swc-or); box-shadow: 0 0 0 4px rgba(251,102,12,.12); }
.swc-field.is-invalid .swc-input, .swc-field.is-invalid .swc-select { border-color: var(--swc-err); background-color: var(--sw-surface); }
.swc-err { margin: 0; font-size: 14px; color: var(--swc-err); }
.swc-err:empty { display: none; }
.swc-count { align-self: flex-end; font-size: 14px; color: var(--swc-ft); }

/* 01 희망장례 — 라인 리스트 */
.swc-prods { border-top: 1.5px solid var(--swc-nv); }
.swc-prod { position: relative; display: block; cursor: pointer; }
.swc-prod input, .swc-chip input, .swc-sit input, .swc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.swc-prod-in {
  position: relative; display: flex; align-items: center; gap: 16px; height: 54px; padding: 0 16px;
  border-bottom: 1px solid var(--swc-ln); transition: background .18s;
}
.swc-prod-in strong { font-size: 16px; font-weight: 700; }
.swc-prod-in small { font-size: 14px; color: var(--swc-ft); }
.swc-prod-in em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.swc-prod-in em.is-muted { font-weight: 500; color: var(--swc-ft); }
.swc-rd { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--sw-line-strong); transition: border .18s; }
.swc-prod:hover .swc-prod-in { background: var(--sw-surface-cream); }
.swc-prod input:checked + .swc-prod-in { background: var(--swc-or-l); }
.swc-prod input:checked + .swc-prod-in::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--swc-or); }
.swc-prod input:checked + .swc-prod-in .swc-rd { border: 5.5px solid var(--swc-or); }
.swc-prod input:checked + .swc-prod-in strong, .swc-prod input:checked + .swc-prod-in em { color: var(--swc-or-d); }
.swc-prod input:focus-visible + .swc-prod-in { outline: 3px solid rgba(251,102,12,.35); outline-offset: -3px; }
.swc-field.is-invalid .swc-prods { border-top-color: var(--swc-err); }

/* 03 현재 상황 */
.swc-sits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.swc-sit { position: relative; cursor: pointer; }
.swc-sit span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 16px 16px; border: 1.5px solid var(--swc-ln); border-radius: var(--sw-radius-md); transition: all .18s; }
.swc-sit strong { font-size: 14px; font-weight: 700; }
.swc-sit small { font-size: 14px; color: var(--swc-ft); }
.swc-sit:hover span { border-color: var(--swc-ln-2); background: var(--sw-surface-cream); }
.swc-sit input:checked + span { background: var(--swc-nv); border-color: var(--swc-nv); color: var(--sw-text-on-dark); }
.swc-sit input:checked + span small { color: rgba(255,255,255,.6); }
.swc-sit input:focus-visible + span { outline: 3px solid rgba(251,102,12,.35); outline-offset: 2px; }
.swc-field.is-invalid .swc-sit span { border-color: var(--swc-err); }
.swc-urgent { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; padding: 16px 16px; border-radius: var(--sw-radius-md); background: var(--swc-nv); color: var(--sw-text-on-dark); }
.swc-urgent p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.75); }
.swc-urgent p strong { display: block; margin-bottom: 2px; font-size: 14px; color: var(--sw-text-on-dark); }
.swc-call { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: var(--sw-radius-pill); background: var(--swc-or); color: var(--sw-text-on-dark); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* 칩 (할인·상담 대상·시간) */
.swc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.swc-chip { position: relative; cursor: pointer; }
.swc-chip > span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1.5px solid var(--swc-ln-2); border-radius: var(--sw-radius-pill); font-size: 14px; color: var(--swc-mt); background: var(--sw-surface); transition: all .18s; }
.swc-chip > span em { font-style: normal; font-size: 14px; color: var(--swc-ft); }
.swc-chip > span i { display: none; }
.swc-chip:hover > span { border-color: var(--sw-line-strong); color: var(--swc-nv); }
.swc-chip input:checked + span { background: var(--swc-nv); border-color: var(--swc-nv); color: var(--sw-text-on-dark); font-weight: 600; }
.swc-chip-or input:checked + span { background: var(--swc-or-l); border-color: var(--swc-or); color: var(--swc-or-d); font-weight: 700; }
.swc-chip-or input:checked + span em { color: var(--swc-or-d); }
.swc-chip-or input:checked + span i { display: inline-flex; }
.swc-chip input:focus-visible + span { outline: 3px solid rgba(251,102,12,.35); outline-offset: 2px; }

/* 04 엔디아 카드 */
.swc-endia { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 16px 16px; border: 1.5px solid var(--swc-ln); border-radius: var(--sw-radius-lg); transition: all .18s; }
.swc-endia.is-on { border-color: var(--swc-or); background: var(--swc-or-l); }
.swc-endia-amt { font-size: 14px; font-weight: 800; color: var(--swc-or-d); font-variant-numeric: tabular-nums; }
.swc-endia-desc { grid-column: 1 / -1; margin: 4px 0 0 32px; font-size: 14px; line-height: 1.6; color: var(--swc-mt); }
.swc-endia-desc a { display: inline-flex; align-items: center; gap: 3px; color: var(--swc-or-d); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.swc-endia-desc a:hover { text-decoration: underline; }
.swc-group-label { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: 14px; color: var(--swc-mt); }
.swc-group-label::after { content: ""; flex: 1; height: 1px; background: var(--swc-ln); }
.swc-partner { margin: 16px 0 0; }
.swc-nudge { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px 16px; border-radius: var(--sw-radius-md); border: 1px dashed var(--swc-or); background: var(--sw-surface-cream); }
.swc-nudge p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--swc-mt); }
.swc-nudge strong { color: var(--swc-or-d); }
.swc-nudge-btn { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: var(--sw-radius-pill); cursor: pointer; background: var(--swc-or); color: var(--sw-text-on-dark); font-size: 14px; font-weight: 700; white-space: nowrap; }
.swc-nudge-btn:hover { background: var(--swc-or-d); }

/* 체크박스 */
.swc-check { position: relative; display: flex; align-items: flex-start; gap: 16px; cursor: pointer; }
.swc-box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: var(--sw-radius-sm); border: 1.5px solid var(--sw-line-strong); background: var(--sw-surface); color: transparent; display: grid; place-items: center; transition: all .18s; }
.swc-check input:checked + .swc-box { background: var(--swc-nv); border-color: var(--swc-nv); color: var(--sw-text-on-dark); }
.swc-endia .swc-check input:checked + .swc-box { background: var(--swc-or); border-color: var(--swc-or); }
.swc-check input:focus-visible + .swc-box { outline: 3px solid rgba(251,102,12,.35); outline-offset: 2px; }
.swc-check-text { font-size: 14px; line-height: 1.6; }
.swc-check-text strong { font-weight: 700; }
.swc-check-text small { display: block; font-size: 14px; color: var(--swc-ft); }
.swc-consent-all .swc-check-text { display: flex; align-items: baseline; gap: 8px; }
.swc-consent-all .swc-check-text small { display: inline; }

/* 07 개인정보 동의 */
.swc-consent { border: 1.5px solid var(--swc-ln); border-radius: var(--sw-radius-md); overflow: hidden; }
.swc-consent-all { padding: 16px 16px; background: var(--swc-iv); border-bottom: 1px solid var(--swc-ln); }
.swc-consent-item { padding: 16px 16px; border-bottom: 1px solid var(--swc-ln); }
.swc-consent-item:last-child { border-bottom: 0; }
.swc-consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.swc-tag { margin-right: 4px; font-weight: 700; color: var(--swc-or-d); }
.swc-tag.is-opt { color: var(--swc-ft); }
.swc-more { flex: none; padding: 2px 0; border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--swc-mt); text-decoration: underline; text-underline-offset: 3px; }
.swc-more:hover { color: var(--swc-or-d); }
.swc-terms { margin: 16px 0 0; padding: 16px 16px; border-radius: var(--sw-radius-sm); background: var(--swc-iv); font-size: 14px; line-height: 1.6; color: var(--swc-mt); }
.swc-terms dl { margin: 0; display: grid; grid-template-columns: 92px 1fr; gap: 8px 16px; }
.swc-terms dt { font-weight: 600; color: var(--swc-nv); }
.swc-terms dd { margin: 0; }
.swc-terms strong { color: var(--swc-nv); }
.swc-terms p { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--swc-ln); }
.swc-field.is-invalid .swc-consent { border-color: var(--swc-err); }
.swc-privacy-foot { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--swc-ft); }
.swc-privacy-foot a { color: var(--swc-mt); }
.swc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
 * 오른쪽: 실시간 견적서
 * ============================================================ */
.swc-rt {
  position: relative; min-height: 0; display: flex; flex-direction: column;
  padding: 32px 32px 32px; color: var(--sw-text-on-dark);
  background: var(--sw-navy-900);
}
.swc-cap { display: flex; align-items: center; gap: 8px; padding-right: 48px; font-size: 14px; letter-spacing: -.02em; font-weight: 600; color: rgba(255,255,255,.55); }
.swc-cap i { width: 7px; height: 7px; border-radius: 50%; background: var(--swc-or); box-shadow: 0 0 0 3px rgba(251,102,12,.2), 0 0 12px var(--swc-or); animation: swc-blink 1.6s ease-in-out infinite; }
.swc-rt-close { display: none; }
.swc-slot { position: relative; z-index: 3; flex: none; margin-top: 16px; height: 26px; border-radius: var(--sw-radius-md); background: linear-gradient(180deg, var(--sw-navy-950), var(--sw-text)); box-shadow: inset 0 3px 6px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.08); }
.swc-slot::after { content: ""; position: absolute; left: 18px; right: 18px; top: 11px; height: 4px; border-radius: 2px; background: var(--sw-navy-950); }
.swc-paper-area { position: relative; z-index: 2; flex: 1; min-height: 0; margin: -16px 0 0; padding: 0 24px 24px; overflow-y: auto; scrollbar-width: none; }
.swc-paper-area::-webkit-scrollbar { display: none; }

.swc-paper {
  position: relative; padding: 32px 24px 32px; color: var(--swc-nv); background: var(--swc-paper);
  box-shadow: var(--sw-shadow-lg);
  -webkit-mask: linear-gradient(var(--sw-black), var(--sw-black)) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, var(--sw-black) 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
          mask: linear-gradient(var(--sw-black), var(--sw-black)) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, var(--sw-black) 1deg 89deg, #0000 90deg) bottom / 14px 10px repeat-x;
}
.swc-paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(180deg, rgba(0,0,0,.18), transparent); pointer-events: none; }
.swc-paper::after { /* 종이 질감 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .28  0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.swc-paper.is-printing { animation: swc-print 1s cubic-bezier(.2,.7,.2,1) both; }

.swc-ph { display: flex; align-items: center; gap: 16px; }
.swc-seal { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--swc-nv); color: var(--sw-orange-50); display: grid; place-items: center; font-family: var(--sw-font); font-size: 16px; font-weight: 600; }
.swc-ph h3 { margin: 0; font-family: var(--sw-font); font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--swc-nv); }
.swc-ph small { display: block; margin-top: 2px; font-size: 14px; letter-spacing: -.02em; color: var(--swc-ft); }
.swc-hr { border-top: 1px dashed var(--sw-line-strong); margin: 16px 0; }
.swc-rl { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0; font-size: 14px; color: var(--swc-mt); border-radius: 4px; }
.swc-rl b { font-weight: 400; color: var(--sw-gold-300); text-align: right; font-variant-numeric: tabular-nums; }
.swc-rl.is-filled b { font-weight: 600; color: var(--swc-nv); }
.swc-rl i { font-style: normal; font-size: 14px; color: var(--swc-ft); margin-left: 2px; }
.swc-rl.is-disc b { color: var(--swc-or-d); }
.swc-rl mark { color: var(--swc-nv); padding: 0 3px; background: linear-gradient(100deg, transparent 2%, var(--swc-or-hl) 4%, rgba(251,102,12,.3) 96%, transparent 98%) 0 64% / 100% 48% no-repeat; }
.swc-rl.is-new { animation: swc-line .9s ease both; }
.swc-tt { display: flex; justify-content: space-between; align-items: baseline; border-radius: var(--sw-radius-sm); }
.swc-tt span { font-size: 14px; font-weight: 700; }
.swc-tt strong { font-family: var(--sw-font); font-size: 32px; font-weight: 600; letter-spacing: -.02em; color: var(--swc-nv); }
.swc-tt strong u { text-decoration: none; font-size: 18px; margin-left: 3px; }
.swc-tt strong.is-text { font-family: var(--sw-font); font-size: 18px; font-weight: 700; }
.swc-tt.is-new strong { animation: swc-pop .6s ease both; }
.swc-sv { min-height: 18px; margin-top: 8px; text-align: right; font-size: 14px; color: var(--swc-ft); font-weight: 600; }
.swc-sv.is-gain { color: var(--swc-or-d); font-weight: 700; }
.swc-sg { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 32px; font-size: 14px; color: var(--swc-ft); }
.swc-sg div { width: 140px; border-top: 1px solid var(--sw-line-strong); padding-top: 8px; }
.swc-stamp { position: absolute; left: 112px; bottom: 6px; width: 86px; height: 86px; color: var(--sw-orange-600); transform: rotate(-12deg); opacity: .88; mix-blend-mode: multiply; pointer-events: none; }
.swc-stamp text { font-family: var(--sw-font); }
.swc-stamp .swc-stamp-t { font-family: var(--sw-font); }

.swc-rt-foot { flex: none; padding-top: 4px; }
.swc-submit {
  width: 100%; height: 58px; border: 0; border-radius: var(--sw-radius-md); cursor: pointer;
  background: var(--swc-or); color: var(--sw-text-on-dark);
  font-size: 16px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: none; transition: transform .15s, box-shadow .2s, filter .2s;
}
.swc-submit:hover { filter: brightness(1.05); box-shadow: none; }
.swc-submit:active { transform: translateY(1px); }
.swc-submit:disabled { opacity: .65; cursor: wait; }
.swc-submit:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: 3px; }
.swc-rt-note { margin: 8px 0 0; text-align: center; font-size: 14px; color: rgba(255,255,255,.42); }

/* 모바일 하단 바 (데스크톱에서는 숨김) */
.swc-mbar { display: none; }

/* ============================================================
 * 접수 완료
 * ============================================================ */
.swc-dialog.is-done { grid-template-columns: 1fr; }
.swc-dialog.is-done .swc-left, .swc-dialog.is-done .swc-rt, .swc-dialog.is-done .swc-mbar { display: none; }
.swc-dialog.is-done .swc-x { background: rgba(20,33,58,.06); color: var(--swc-nv); }
.swc-done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 48px 32px; text-align: center; background: var(--swc-iv); overflow-y: auto; }
.swc-done-icon { width: 76px; height: 76px; margin-bottom: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--swc-or); color: var(--sw-text-on-dark); box-shadow: var(--sw-shadow-md); }
.swc-done h3 { margin: 0 0 8px; font-family: var(--sw-font); font-size: 32px; font-weight: 600; color: var(--swc-nv); outline: none; }
.swc-done p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--swc-mt); }
.swc-done-card { display: grid; grid-template-columns: auto auto; gap: 8px 32px; margin-top: 24px; padding: 24px 24px; border-radius: var(--sw-radius-md); background: var(--sw-surface); border: 1px solid var(--swc-ln); font-size: 14px; text-align: left; }
.swc-done-card span { color: var(--swc-ft); }
.swc-done-card b { color: var(--swc-nv); font-variant-numeric: tabular-nums; }
.swc-done-box { max-width: 380px; margin-top: 16px; font-size: 14px; color: var(--swc-mt); }
.swc-call.is-or { display: flex; width: max-content; margin: 16px auto 0; }
.swc-btn-ghost { margin-top: 24px; height: 50px; padding: 0 32px; border: 1.5px solid var(--swc-ln-2); border-radius: var(--sw-radius-md); background: var(--sw-surface); cursor: pointer; font-size: 16px; font-weight: 600; color: var(--swc-nv); }
.swc-btn-ghost:hover { border-color: var(--swc-or); color: var(--swc-or-d); }

/* ---------- 애니메이션 ---------- */
@keyframes swc-print { from { transform: translateY(-104%); } to { transform: none; } }
@keyframes swc-line { 0% { opacity: 0; transform: translateY(-4px); background: rgba(251,102,12,.28); } 30% { opacity: 1; transform: none; } 100% { background: transparent; } }
@keyframes swc-pop { 0% { transform: scale(.96); opacity: .4; } 60% { transform: scale(1.02); opacity: 1; } 100% { transform: none; } }
@keyframes swc-blink { 50% { opacity: .35; } }

/* ============================================================
 * 태블릿
 * ============================================================ */
@media (max-width:1100px) {
  .swc-dialog { grid-template-columns: minmax(0, 1fr) 380px; }
  .swc-left { padding: 32px 32px 48px; }
  .swc-rt { padding: 32px 24px 24px; }
  .swc-paper-area { padding: 0 16px 24px; }
  .swc-prod-in small { display: none; }
}

/* ============================================================
 * 모바일: 하단 시트 + 접히는 견적서
 * ============================================================ */
@media (max-width:760px) {
  .swc { padding: 0; align-items: flex-end; }
  .swc-dialog {
    display: flex; flex-direction: column; width: 100%;
    height: 94vh; height: 94dvh; border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
  .swc.is-open .swc-dialog { transform: none; }
  .swc-x { top: 16px; right: 16px; background: rgba(20,33,58,.06); color: var(--swc-nv); }
  .swc-left { flex: 1; padding: 24px 24px 32px; }
  .swc-title { font-size: 20px; }
  .swc-sub { padding-right: 32px; }
  .swc-sec { padding-top: 24px; }
  .swc-prod-in { gap: 16px; padding: 0 16px; }
  .swc-prod-in small { display: none; }
  .swc-sits { grid-template-columns: 1fr; }
  .swc-sit span { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .swc-urgent { flex-direction: column; align-items: stretch; }
  .swc-endia-desc { margin-left: 0; }
  .swc-nudge { flex-direction: column; align-items: stretch; }
  .swc-terms dl { grid-template-columns: 1fr; gap: 2px; }
  .swc-terms dd { margin-bottom: 8px; }

  /* 하단 바 */
  .swc-mbar {
    flex: none; display: flex; align-items: center; gap: 16px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    background: var(--swc-nv); border-radius: 16px 16px 0 0; box-shadow: var(--sw-shadow-md);
  }
  .swc-mbar-est { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 4px 8px; border: 0; background: none; color: var(--sw-text-on-dark); cursor: pointer; text-align: left; }
  .swc-mbar-est small { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: rgba(255,255,255,.6); }
  .swc-mbar-est strong { font-family: var(--sw-font); font-size: 20px; font-weight: 600; }
  .swc-mbar .swc-submit { width: auto; flex: none; height: 50px; padding: 0 24px; font-size: 16px; border-radius: var(--sw-radius-md); }

  /* 견적서: 평소엔 숨김, 바를 누르면 아래에서 올라옴 */
  .swc-rt {
    position: absolute; left: 0; right: 0; bottom: 0; top: 64px; z-index: 5;
    border-radius: 24px 24px 0 0; padding: 24px 24px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(105%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
    box-shadow: var(--sw-shadow-lg);
  }
  .swc-dialog.show-receipt .swc-rt { transform: none; }
  .swc-cap { padding-right: 0; }
  .swc-rt-close { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; height: 30px; padding: 0 16px; border: 0; border-radius: var(--sw-radius-pill); background: rgba(255,255,255,.1); color: var(--sw-text-on-dark); font-size: 14px; letter-spacing: -.02em; cursor: pointer; }
  .swc-rt-close svg { transform: rotate(90deg); }
  .swc-paper-area { padding: 0 8px 16px; }
  .swc-paper { padding: 32px 24px 24px; }
  .swc-dialog.show-receipt .swc-x { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .swc-backdrop, .swc-dialog, .swc-rt { transition: none; }
  .swc-paper.is-printing, .swc-rl.is-new, .swc-tt.is-new strong, .swc-cap i { animation: none; }
}

/* 할인금액은 체크했을 때만 표시 */
.swc-endia:not(.is-on) .swc-endia-amt { display: none; }
.swc-chip:not(:has(input:checked)) em[data-amt] { display: none; }

/* 팝업 맨 위: 긴급 접수 번호 */
.swc-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; letter-spacing: -.02em; font-size: 14px; }
.swc-eyebrow-tel { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--sw-radius-pill); background: var(--swc-or); color: var(--sw-text-on-dark); font-size: 18px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.swc-eyebrow-tel svg { width: 16px; height: 16px; }

/* ============================================================
 * 가독성 강화: 급박한 상황에서도 한눈에 읽히도록 글자·여백·대비를 키움
 * ============================================================ */
.swc { --swc-mt: var(--sw-text-muted); --swc-ft: var(--sw-text-muted); }
.swc-left { padding: 48px 48px 48px; }
.swc-eyebrow { font-size: 18px; font-weight: 700; gap: 8px 16px; }
.swc-eyebrow-tel { font-size: 20px; padding: 8px 24px; }
.swc-eyebrow-tel svg { width: 20px; height: 20px; }
.swc-title { font-size: 32px; margin-top: 16px; line-height: 1.2; }
.swc-sub { font-size: 18px; line-height: 1.6; margin-top: 8px; }
.swc-sec { padding-top: 32px; }
.swc-sl { gap: 16px; margin-bottom: 16px; }
.swc-sl b { font-size: 16px; }
.swc-sl strong { font-size: 20px; }
.swc-sl span { font-size: 16px; }
.swc-label { font-size: 16px; }
.swc-input, .swc-select, .swc-textarea { height: 58px; font-size: 18px; padding: 0 16px; }
.swc-textarea { min-height: 120px; line-height: 1.6; padding-top: 16px; }
.swc-err { font-size: 16px; }
.swc-count { font-size: 14px; }
.swc-prod-in { height: 66px; gap: 16px; }
.swc-prod-in strong { font-size: 20px; }
.swc-prod-in small { font-size: 16px; }
.swc-prod-in em { font-size: 18px; }
.swc-rd { width: 22px; height: 22px; }
.swc-prod input:checked + .swc-prod-in .swc-rd { border-width: 7px; }
.swc-sits { gap: 16px; }
.swc-sit span { padding: 16px 16px; gap: 8px; }
.swc-sit strong { font-size: 18px; }
.swc-sit small { font-size: 16px; }
.swc-urgent p { font-size: 16px; line-height: 1.6; }
.swc-urgent p strong { font-size: 18px; }
.swc-call { height: 52px; font-size: 18px; padding: 0 24px; }
.swc-chip > span { height: 48px; padding: 0 24px; font-size: 16px; }
.swc-chip > span em { font-size: 14px; }
.swc-endia-amt { font-size: 18px; }
.swc-endia-desc { font-size: 16px; line-height: 1.6; }
.swc-endia-desc a { font-size: 18px; }
.swc-group-label { font-size: 16px; }
.swc-nudge p { font-size: 16px; }
.swc-nudge-btn { height: 44px; font-size: 16px; padding: 0 16px; }
.swc-check-text { font-size: 18px; line-height: 1.6; }
.swc-check-text small { font-size: 16px; }
.swc-more { font-size: 16px; }
.swc-terms { font-size: 16px; line-height: 1.6; }
.swc-privacy-foot { font-size: 14px; }
/* 오른쪽 견적서 */
.swc-cap { font-size: 14px; }
.swc-ph h3 { font-size: 20px; }
.swc-ph small { font-size: 14px; }
.swc-rl { font-size: 18px; padding: 8px 0; }
.swc-rl i { font-size: 14px; }
.swc-tt span { font-size: 18px; }
.swc-tt strong { font-size: 48px; }
.swc-tt strong u { font-size: 20px; }
.swc-sv { font-size: 16px; }
.swc-sg { font-size: 14px; }
.swc-rt-note { font-size: 14px; color: rgba(255,255,255,.7); }
.swc-done h3 { font-size: 32px; }
.swc-done p { font-size: 18px; }
.swc-done-card { font-size: 18px; }
.swc-done-box { font-size: 16px; }
.swc-btn-ghost { font-size: 18px; height: 56px; }
@media (max-width:760px) {
  .swc-left { padding: 32px 24px 48px; }
  .swc-eyebrow { font-size: 16px; }
  .swc-eyebrow-tel { font-size: 20px; }
  .swc-title { font-size: 32px; }
  .swc-sub { font-size: 16px; }
  .swc-sl strong { font-size: 18px; }
  .swc-input, .swc-select, .swc-textarea { font-size: 18px; }
  .swc-prod-in strong { font-size: 18px; }
  .swc-prod-in em { font-size: 18px; }
  .swc-sit strong { font-size: 18px; }
  .swc-mbar-est small { font-size: 14px; }
  .swc-mbar-est strong { font-size: 20px; }
  .swc-mbar .swc-submit { font-size: 18px; }
}

/* 좌우 자리 바꿈: 견적서가 왼쪽, 신청서가 오른쪽 (모바일은 기존 하단 시트 유지) */
@media (min-width:761px) {
  .swc-dialog { grid-template-columns: 440px minmax(0, 1fr); }
  .swc-dialog .swc-rt { order: -1; }
  .swc-x { background: rgba(20,33,58,.07); color: var(--swc-nv); }
  .swc-x:hover { background: rgba(20,33,58,.14); }
  .swc-left { padding-right: 96px; }
  .swc-dialog.is-done { grid-template-columns: 1fr; }
}
@media (min-width:761px) and (max-width:1100px) {
  .swc-dialog { grid-template-columns: 380px minmax(0, 1fr); }
  .swc-left { padding-right: 64px; }
}

/* 견적서 패널 상단 로고 */
.swc-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-right: 48px; color: var(--sw-text-on-dark); font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.swc-brand img { display: block; width: 48px; height: auto; }
.swc-brand small { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; letter-spacing: -.02em; color: var(--sw-gold-300); }
@media (max-width:760px) { .swc-brand { display: none; } }
@media (min-width:761px) {
  .swc-rt { padding-top: 24px; }
  .swc-brand { margin-bottom: 16px; }
  .swc-rl { padding: 3px 0; }
  .swc-sg { margin-top: 24px; }
}

/* 견적서 머리의 동그라미를 로고로 */
.swc-seal { width: 46px; height: 46px; background: var(--swc-nv); }
.swc-seal img { display: block; width: 30px; height: auto; }
.swc-seal { width: auto; height: auto; border-radius: 0; background: none; }
.swc-seal img { width: 58px; }

/* ============================================================
 * Tally 접수 단계 (#tally-container) — PC·모바일 공통, 팝업 안에서 스크롤
 * ============================================================ */
.swc-tally[hidden] { display: none; }
.swc-dialog.is-tally { grid-template-columns: 1fr; }
.swc-dialog.is-tally .swc-left, .swc-dialog.is-tally .swc-rt, .swc-dialog.is-tally .swc-mbar { display: none; }
.swc-dialog.is-tally .swc-x { background: rgba(20,33,58,.06); color: var(--swc-nv); }
.swc-tally { display: flex; flex-direction: column; min-height: 0; background: var(--swc-iv); }
.swc-tally-head { display: flex; align-items: center; gap: 16px; padding: 16px 64px 16px 24px; border-bottom: 1px solid var(--swc-ln-2); }
.swc-tally-head > div { display: flex; flex-direction: column; min-width: 0; }
.swc-tally-head strong { font-size: 16px; color: var(--swc-nv); }
.swc-tally-head span { font-size: 14px; color: var(--swc-mt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swc-tally-back { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 1.5px solid var(--swc-ln-2); border-radius: var(--sw-radius-sm); background: var(--sw-surface); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--swc-nv); }
.swc-tally-back svg { transform: rotate(180deg); }
.swc-tally-box { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 16px 24px; }
.swc-tally-box iframe { display: block; width: 100%; min-height: 520px; border: 0; }
@media (max-width:760px) {
  .swc-tally-head { padding: 16px 64px 16px 16px; }
  .swc-tally-box { padding: 4px 4px 24px; }
}
