/* Result modal plan comparison */
.calculator-page .modal-sheet.has-plan-comparison {
  width: min(100%, 920px) !important;
  max-height: min(900px, calc(100vh - 48px)) !important;
}

.bts-plan-comparison {
  margin: 24px 0 8px;
  padding-top: 22px;
  border-top: 3px solid var(--ink, #111);
  color: var(--ink, #111);
}

.plan-section-head,
.plan-card-head,
.plan-mini-row,
.plan-card-toggle,
.plan-unavailable {
  display: flex;
  align-items: center;
}

.plan-section-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.plan-section-eyebrow,
.plan-kicker,
.plan-test-badge,
.plan-status {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.plan-section-eyebrow {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  color: #5c5c5c;
}

.plan-section-head h2 {
  margin: 0;
  font-family: 'Anton', 'Noto Sans TC', sans-serif;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
  letter-spacing: .01em;
}

.plan-test-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 2px solid var(--ink, #111);
  border-radius: 999px;
  background: var(--yellow, #ffe600);
  font-size: 10px;
  box-shadow: 3px 3px 0 var(--ink, #111);
}

.plan-intro {
  margin: 0 0 16px;
  color: var(--text-sub, #565656);
  font-size: 13px;
  line-height: 1.65;
}

.plan-intro b { color: var(--ink, #111); }

.plan-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  min-width: 0;
  padding: 17px;
  border: 2px solid var(--ink, #111);
  border-radius: 14px;
  background: var(--paper, #fff);
  box-shadow: 5px 5px 0 var(--ink, #111);
}

.plan-card.external-plan { background: #eaf9ff; }

.plan-card-head {
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.plan-kicker { font-size: 10px; }

.plan-status {
  padding: 4px 7px;
  border: 1.5px solid var(--ink, #111);
  border-radius: 999px;
  background: var(--lime, #c6ff2e);
  font-size: 8px;
  letter-spacing: .03em;
}

.plan-status.conditional { background: var(--cyan, #42d9ff); }

.plan-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
}

.plan-model {
  min-height: 36px;
  margin: 0 0 11px;
  color: var(--text-sub, #565656);
  font-size: 11px;
  line-height: 1.5;
}

.plan-amount {
  overflow-wrap: anywhere;
  font-family: 'Anton', 'Archivo', sans-serif;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1;
  letter-spacing: .01em;
}

.external-plan .plan-amount { color: #0055cc; }

.plan-amount-label {
  margin: 5px 0 14px;
  color: var(--text-sub, #565656);
  font-size: 11px;
  font-weight: 800;
}

.plan-benefit-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(0,0,0,.15);
}

.plan-benefit-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
  font-size: 11px;
}

.plan-benefit-list strong { color: #c51969; white-space: nowrap; }

.plan-mini-row {
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 7px 0;
  border-top: 1px solid rgba(0,0,0,.12);
  font-size: 11px;
}

.plan-mini-row span { color: var(--text-sub, #565656); }
.plan-mini-row b { text-align: right; }

.plan-gift-details {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px dashed rgba(0,0,0,.38);
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  font-size: 10px;
  line-height: 1.5;
}

.plan-gift-details > span { font-weight: 900; }
.plan-gift-details ul { margin: 5px 0; padding-left: 18px; }
.plan-gift-details small { color: var(--text-sub, #565656); }

.plan-controls {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.plan-disclaimer {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding: 11px 12px;
  border: 2px solid var(--ink, #111);
  border-radius: 10px;
  background: #fff7be;
  color: var(--ink, #111);
  font-size: 10px;
  line-height: 1.55;
}

.plan-disclaimer p { margin: 0; }

.plan-field { display: grid; gap: 5px; }
.plan-field > span { font-size: 10px; font-weight: 800; }

.plan-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 34px 0 11px;
  border: 2px solid var(--ink, #111);
  border-radius: 9px;
  background: #fff;
  color: var(--ink, #111);
  font: 700 12px/1.3 'Noto Sans TC', sans-serif;
  cursor: pointer;
}

.plan-field select:focus-visible,
.plan-card-toggle:has(input:focus-visible) {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

.plan-card-toggle {
  min-height: 52px;
  gap: 10px;
  padding: 8px 10px;
  border: 2px solid var(--ink, #111);
  border-radius: 9px;
  background: #fff7be;
  cursor: pointer;
}

.plan-card-toggle input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: #111;
}

.plan-card-toggle span { display: grid; gap: 2px; }
.plan-card-toggle b { font-size: 11px; }
.plan-card-toggle small { color: #5b5b5b; font-size: 9px; line-height: 1.35; }

.plan-verdict {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 2px solid var(--ink, #111);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink, #111);
}

.plan-verdict.current-wins { background: var(--lime, #c6ff2e); }
.plan-verdict.external-wins { background: var(--cyan, #42d9ff); }
.plan-verdict.tie { background: var(--yellow, #ffe600); }
.plan-verdict b { font-size: 14px; }
.plan-verdict span { font-size: 10px; line-height: 1.5; }

.plan-method {
  margin-top: 16px;
  border-top: 1px solid rgba(0,0,0,.2);
}

.plan-method summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.plan-method ol {
  margin: 0;
  padding: 0 0 2px 20px;
  color: var(--text-sub, #565656);
  font-size: 10px;
  line-height: 1.65;
}

.plan-unavailable {
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--ink, #111);
  border-radius: 12px;
  background: #fff7be;
}

.plan-unavailable svg { width: 24px; height: 24px; flex: 0 0 auto; fill: currentColor; }
.plan-unavailable b { display: block; margin-bottom: 3px; font-size: 14px; }
.plan-unavailable p { margin: 0; color: var(--text-sub, #565656); font-size: 11px; line-height: 1.55; }

@media (max-width: 720px) {
  .calculator-page .modal-sheet.has-plan-comparison { max-height: 94vh !important; }
  .plan-compare-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 15px; box-shadow: 4px 4px 0 var(--ink, #111); }
  .plan-model { min-height: 0; }
  .plan-section-head h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .bts-plan-comparison *,
  .bts-plan-comparison *::before,
  .bts-plan-comparison *::after { scroll-behavior: auto !important; transition: none !important; }
}
