/* Díjkalkulátor (Díjak oldal). Minden szabály a .fees alá van zárva, hogy a
   téma többi részét ne érintse. A színek a téma tokenjeiből jönnek. */
.fees {
  --fees-fg-soft: var(--color-neutral-700);
  --fees-fg-mute: var(--color-neutral-600);
  --fees-rule: var(--color-divider);
  --fees-rule-soft: rgba(32, 30, 29, 0.16);
  --fees-cat-fee: #ec3013;
  --fees-cat-duty: #2f6fa8;
  max-width: 920px; margin: 0 auto;
  padding: var(--sec-pad) var(--gutter) calc(var(--sec-pad) + 16px);
}
.fees p { margin: 0; }
.fees-head { padding-bottom: 24px; border-bottom: 2px solid var(--fees-rule); }
.fees-head h1 { font-size: clamp(30px, 5.2vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 14px 0 0; }
.fees-lede { margin-top: 16px; max-width: 62ch; color: var(--fees-fg-soft); font-size: 16.5px; line-height: 1.6; }

.fees-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-top: 22px; padding: 16px 18px; background: var(--color-surface); }
.fees-rate-lab { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fees-fg-mute); }
.fees-rate-num { font-size: clamp(22px, 4.5vw, 30px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fees-rate-sub { font-size: 14px; color: var(--fees-fg-soft); }

.fees-tabs { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--fees-rule); margin-top: 8px; }
.fees-tab { appearance: none; background: none; border: 0; border-radius: 0; cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--fees-fg-soft); padding: 16px 18px 14px; min-height: var(--tap); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.fees-tab:hover { color: var(--color-accent-700); }
.fees-tab[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-accent); }
.fees-tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -3px; }

.fees-panel { padding-top: 32px; }
.fees-panel[hidden] { display: none; }
.fees-panel h2 { font-size: clamp(21px, 3.4vw, 27px); margin-top: 8px; }
.fees-intro { margin-top: 12px; max-width: 60ch; color: var(--fees-fg-soft); font-size: 15.5px; line-height: 1.6; }

.fees-control { margin-top: 28px; }
.fees-control > label, .fees-control > .fees-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fees-fg-mute); }
.fees-amount { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; border-bottom: 2px solid var(--fees-rule); padding-bottom: 8px; }
.fees-amount input { flex: 1 1 auto; min-width: 0; appearance: none; background: none; border: 0; border-radius: 0; font-family: var(--font); font-size: clamp(28px, 6vw, 42px); font-weight: 800; letter-spacing: -0.03em; color: var(--color-text); padding: 0; font-variant-numeric: tabular-nums; }
.fees-amount input:focus { outline: none; }
.fees-amount:focus-within { border-bottom-color: var(--color-accent); }
.fees-unit { font-size: clamp(16px, 3vw, 22px); font-weight: 700; color: var(--fees-fg-mute); }
.fees input[type="range"] { width: 100%; margin-top: 16px; accent-color: var(--color-accent); min-height: 24px; }

.fees-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fees-opt { position: relative; margin: 0; }
.fees-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fees-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--fees-rule-soft); font-size: 14px; font-weight: 600; color: var(--fees-fg-soft); }
.fees-opt input:checked + span { border-color: var(--color-accent); background: var(--color-accent-100); color: var(--color-accent-700); }
.fees-opt input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.fees-result { margin-top: 36px; border-top: 2px solid var(--fees-rule); }
.fees-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 20px 0 14px; }
.fees-total-lab { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fees-fg-mute); }
.fees-total-val { font-size: clamp(30px, 7vw, 48px); font-weight: 800; letter-spacing: -0.03em; color: var(--color-accent-700); font-variant-numeric: tabular-nums; }

.fees-split { margin: 6px 0 10px; }
.fees-bar { display: flex; height: 16px; gap: 2px; }
.fees-bar i { display: block; }
.fees-bar i.fee, .fees-key b.fee { background: var(--fees-cat-fee); }
.fees-bar i.duty, .fees-key b.duty { background: var(--fees-cat-duty); }
.fees-key { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; font-size: 13.5px; color: var(--fees-fg-soft); }
.fees-key span { display: inline-flex; align-items: center; gap: 7px; }
.fees-key b { display: inline-block; width: 11px; height: 11px; flex: none; }
.fees-key em { font-style: normal; color: var(--color-text); font-weight: 700; font-variant-numeric: tabular-nums; }

.fees-lines { margin-top: 18px; border-top: 2px solid var(--fees-rule-soft); }
.fees-line { display: flex; gap: 14px; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--fees-rule-soft); }
.fees-line .nm { min-width: 0; }
.fees-line .nm b { font-weight: 600; font-size: 15px; }
.fees-line .nm small { display: block; color: var(--fees-fg-mute); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.fees-line .amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 15.5px; }
.fees-line.sum { border-bottom: 0; padding-top: 16px; }
.fees-line.sum .nm b { font-weight: 800; }
.fees-line.sum .amt { font-size: 18px; font-weight: 800; }
.fees-line.off .nm b, .fees-line.off .amt { color: var(--fees-fg-mute); }

.fees-note { margin-top: 20px !important; font-size: 13.5px; color: var(--fees-fg-mute); max-width: 64ch; line-height: 1.55; }

.fees-tablewrap { overflow-x: auto; margin-top: 24px; }
.fees table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 15px; }
.fees th, .fees td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--fees-rule-soft); vertical-align: top; }
.fees th { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fees-fg-mute); border-bottom: 2px solid var(--fees-rule); }
.fees th.num, .fees td.num { text-align: right; padding-right: 0; }
.fees td.num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

.fees-legal { margin-top: 56px; padding-top: 26px; border-top: 2px solid var(--fees-rule); }
.fees-legal h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fees-fg-mute); }
.fees-legal ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.fees-legal li { font-size: 14px; color: var(--fees-fg-soft); padding-left: 16px; position: relative; line-height: 1.55; }
.fees-legal li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 2px; background: var(--color-accent); }
.fees-legal li b { color: var(--color-text); font-weight: 600; }
.fees-valid { margin-top: 22px !important; font-size: 13.5px; color: var(--fees-fg-mute); line-height: 1.55; }

@media (max-width: 560px) {
  .fees-tab { padding: 14px 12px 12px; font-size: 13px; }
  .fees-line { flex-wrap: wrap; }
}
@media print {
  .fees-tabs, .fees input[type="range"] { display: none; }
  .fees-panel[hidden] { display: block; }
}
