/* Subscription cost calculator. Inherits the public site's tokens, type, Liquid Glass and buttons. */
.calc-hero { padding-top: clamp(20px, 3.2vw, 40px); padding-bottom: clamp(20px, 3vw, 32px); }
.calc-hero .eyebrow { margin-bottom: 2px; }
.calc-hero .h1 { font-size: clamp(32px, 5.4vw, 54px); margin: 12px 0 10px; }
.calc-hero .lead { font-size: clamp(16px, 1.8vw, 18px); max-width: 36em; }
.calc-section { padding: 0 0 clamp(40px, 6vw, 72px); }
.calc-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .65fr); gap: clamp(18px, 3vw, 28px); align-items: start; }
.calc-panel { padding: clamp(20px, 3.4vw, 32px); }
.calc-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.calc-panel-head h2 { margin: 0 0 6px; font-size: 21px; }
.calc-panel-head .fine { margin: 0; max-width: 46em; line-height: 1.6; }
.calc-total { text-align: end; flex: none; }
.calc-total span { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.calc-total strong { display: block; margin-top: 2px; font-size: clamp(27px, 3.7vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-rows { display: grid; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(150px, 1fr) minmax(120px, .8fr) 34px; gap: 12px; align-items: end; padding: 16px 0; border-bottom: 1px solid var(--line); }
.calc-row:last-child { border-bottom: 0; }
.calc-field { display: grid; gap: 7px; min-width: 0; }
.calc-field > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.calc-field input, .calc-field select, .calc-summary select {
  width: 100%; height: 50px; min-height: 50px; padding: 0 13px; border: 0; border-radius: 13px; color: var(--ink);
  background: var(--field); box-shadow: 0 0 0 1px var(--field-line) inset; font-variant-numeric: tabular-nums;
}
/* The site sets min-height on every select; these two rules keep that from moving the arrow out of line
   and replace the browser's tightly packed default chevron with one at a fixed distance from the edge. */
.calc-field select, .calc-summary select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 38px; background-repeat: no-repeat; background-position: right 13px center; background-size: 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235C6A76' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .calc-field select, .calc-summary select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23B9C8D6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
.calc-field input::placeholder { color: var(--ink-3); opacity: .72; }
.calc-field input:focus-visible, .calc-field select:focus-visible, .calc-summary select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc-money { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px; }
.calc-money select { padding: 0 30px 0 10px; font-size: 13px; font-weight: 650; background-position: right 9px center; }
.calc-money input { text-align: end; }
.calc-remove, .calc-remove-placeholder { width: 34px; height: 50px; }
.calc-remove { display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--ink-3); cursor: pointer; }
.calc-remove:hover { background: var(--err-bg); color: var(--err-ink); }
.calc-remove .ic { width: 18px; height: 18px; stroke-width: 2; }
.calc-remove[hidden] { display: none; }
.calc-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 0 4px; }
.calc-actions .btn { height: 42px; padding: 0 17px; font-size: 14.5px; }
.calc-actions .btn .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.calc-spacer { flex: 1; }
.calc-link { border: 0; background: none; padding: 6px; color: var(--ink-3); font-size: 14px; font-weight: 600; cursor: pointer; }
.calc-link:hover { color: var(--ink); }
.calc-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(130px, .9fr); gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-summary-item { display: grid; gap: 5px; align-content: start; }
.calc-summary-item > span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.calc-summary-item strong { font-size: 21px; line-height: 1.2; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-summary select { height: 50px; min-height: 50px; font-size: 14px; font-weight: 650; }
.calc-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.calc-note.is-error { color: var(--err-ink); }
.calc-save { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-save p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.calc-save .btn { flex: none; }
.calc-aside { display: grid; gap: 14px; margin-top: 18px; }
.calc-aside-card { padding: 24px; }
.calc-aside-card .eyebrow { margin-bottom: 18px; }
.calc-aside-number { margin: 0; font-size: clamp(34px, 4vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.calc-aside-number span { margin-left: 4px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.calc-aside-caption { margin: 10px 0 18px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.calc-points { display: grid; gap: 12px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.calc-points li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.calc-points li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--acc-2); }
.calc-details { padding: 4px 6px; border-radius: var(--r-md); }
.calc-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; font-size: 15px; font-weight: 650; border-radius: 16px; }
.calc-details summary::-webkit-details-marker { display: none; }
.calc-details summary .ic { color: var(--ink-3); transition: transform .3s var(--ease); }
.calc-details[open] summary .ic { transform: rotate(90deg); }
.calc-details p { margin: 0; padding: 0 16px 18px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
.calc-aside-fine { margin: 2px 4px 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.calc-faq { margin-top: 26px; }
.calc-faq .faq-a p { margin: 0; }
.calc-related { display: block; padding: clamp(22px, 3.4vw, 30px); color: var(--ink); }
.calc-related:hover { text-decoration: none; box-shadow: var(--shadow-up); }
.calc-related .eyebrow { margin-bottom: 14px; }
.calc-related h2 { margin: 0 0 8px; }
.calc-related p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.calc-related .guide-read { margin-top: 0; }
.page-calculator .guide-cta > p { max-width: 46em; }

@media (max-width: 900px) {
  .calc-wrap { grid-template-columns: minmax(0, 1fr); }
  .calc-aside { grid-row: 2; }
}
@media (max-width: 620px) {
  .calc-panel-head { display: grid; gap: 12px; }
  .calc-total { text-align: start; }
  .calc-row { grid-template-columns: minmax(0, 1fr) 34px; gap: 10px; padding: 14px 0; }
  .calc-name { grid-column: 1; grid-row: 1; }
  .calc-amount { grid-column: 1; grid-row: 2; }
  .calc-period { grid-column: 1; grid-row: 3; }
  .calc-remove, .calc-remove-placeholder { grid-column: 2; grid-row: 1; align-self: end; }
  .calc-money { grid-template-columns: 82px minmax(0, 1fr); }
  .calc-field input, .calc-field select { min-width: 0; }
  .calc-summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .calc-summary-item:last-child { grid-column: 1 / -1; }
  .calc-save { display: grid; }
  .calc-save .btn { justify-self: start; }
}
@media (max-width: 400px) {
  .calc-money { grid-template-columns: 70px minmax(0, 1fr); }
  .calc-summary-item strong { font-size: 19px; }
}
html[lang="ko"] .page-calculator main { word-break: keep-all; overflow-wrap: anywhere; }

.calc-remove:focus-visible, .calc-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc-save button:disabled { opacity: .6; cursor: not-allowed; }
