/* Fees and cost estimator (inc/fees.php). */
.fees-planner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 18px; }
.fees-steps fieldset { margin: 0 0 16px; padding: 0; border: 0; display: grid; gap: 8px; }
.fees-steps legend { margin-bottom: 8px; color: var(--bb-gold-ink, #8a5d00); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fees-steps label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--bb-line, #dde6f0); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.fees-steps label:hover { border-color: #9fb7d6; }
.fees-steps label:has(input:checked) { border-color: var(--bb-navy, #0a2c6b); background: #f3f7fd; box-shadow: inset 4px 0 0 var(--bb-gold, #f7c21b); }
.fees-steps input { width: 19px; height: 19px; margin-top: 2px; flex: none; accent-color: var(--bb-navy, #0a2c6b); }
.fees-steps strong { display: block; color: var(--bb-navy, #0a2c6b); font-size: 16px; }
.fees-steps small { display: block; color: var(--bb-muted, #53627a); font-size: 13.5px; line-height: 1.45; }
.fees-result { position: sticky; top: 110px; padding: 20px; border-radius: 16px; color: #fff; background: linear-gradient(150deg, #123f86, #0a2c6b 50%, #061b44); box-shadow: inset 0 -4px 0 var(--bb-gold, #f7c21b), 0 18px 40px rgba(6, 27, 68, .18); }
.fees-hint { margin: 0 !important; color: #c9d8ee !important; font-size: 15px !important; }
.fees-lines { display: grid; gap: 0; margin: 0 0 14px !important; padding: 0 !important; list-style: none; }
.fees-lines li { display: flex; justify-content: space-between; gap: 14px; margin: 0 !important; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); color: #fff !important; }
.fees-lines li div strong { display: block; font-size: 15px; }
.fees-lines li div span { display: block; color: #b8c9e2; font-size: 13px; line-height: 1.45; }
.fees-lines li div a { color: #ffd76a; font-weight: 700; text-decoration: underline; }
.fees-lines b { flex: none; text-align: right; font-size: 16px; white-space: nowrap; }
.fees-lines b small { color: #c9d8ee; font-weight: 600; }
.fees-set { color: #ffd76a; font-size: 13px; font-weight: 700; white-space: normal; }
.fees-free { color: #8be0ae; }
.fees-total { display: grid; gap: 8px; }
.fees-total div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fees-total span { color: #c9d8ee; font-size: 14px; font-weight: 700; }
.fees-total strong { font: 700 28px/1.1 Georgia, "Times New Roman", serif; color: #ffd76a; }
.fees-note { margin: 12px 0 0 !important; color: #c9d8ee !important; font-size: 14px !important; }
.fees-grant { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.fees-grant label { display: grid; gap: 7px; font-size: 14px; font-weight: 800; }
.fees-grant select, .fees-grant input, .fees-duty input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #c9d7e6; border-radius: 6px; background: #fff; color: var(--bb-ink, #152235); font: 16px Arial, sans-serif; }
.fees-grant-out:not(:empty) { margin-top: 14px; padding: 16px 18px; border-left: 5px solid var(--bb-gold, #f7c21b); border-radius: 0 12px 12px 0; background: #fff9e6; }
.fees-grant-out .fees-note { color: #53627a !important; }
.fees-grant-line { margin: 0 !important; font-size: 18px !important; color: var(--bb-ink, #152235) !important; }
.fees-grant-line strong { color: var(--bb-navy, #0a2c6b); font: 700 24px Georgia, serif; }
.fees-small { margin-top: 14px !important; color: var(--bb-muted, #53627a) !important; font-size: 14px !important; }
.fees-small a { color: #0b4f99; font-weight: 700; text-decoration: underline; }
.fees-duty { margin-top: 16px; }
.fees-duty-scroll { position: relative; overflow-x: auto; border: 1px solid var(--bb-line, #dde6f0); border-radius: 12px; }
.fees-duty table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.fees-duty th, .fees-duty td { padding: 8px 10px; border-bottom: 1px solid var(--bb-line, #dde6f0); text-align: left; }
.fees-duty thead th { background: var(--bb-paper, #f5f8fc); color: var(--bb-navy, #0a2c6b); font-size: 13px; font-weight: 800; }
.fees-duty tfoot th, .fees-duty tfoot td { font-weight: 800; color: var(--bb-navy, #0a2c6b); border-bottom: 0; }
.fees-duty td[data-dues] { white-space: nowrap; font-weight: 700; }
.fees-duty input { min-height: 40px; }
.fees-remove { width: 34px; height: 34px; border: 1px solid #e4c6c6; border-radius: 8px; background: #fff; color: #9b2424; font-size: 20px; line-height: 1; cursor: pointer; }
.fees-duty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fees-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--bb-gold, #f7c21b); color: var(--bb-navy, #0a2c6b); font-weight: 800; cursor: pointer; }
.fees-btn--ghost { border: 1px solid #c8d6e8; background: #fff; }
.fees-disclaimer { margin-top: 36px !important; padding-top: 16px; border-top: 1px solid var(--bb-line, #dde6f0); }
@media (max-width: 820px) { .fees-planner, .fees-grant { grid-template-columns: 1fr; } .fees-result { position: static; } }
@media print {
  .fees-printing body * { visibility: hidden; }
  .fees-printing .fees-duty, .fees-printing .fees-duty * { visibility: visible; }
  .fees-printing .fees-duty { position: absolute; left: 0; top: 0; width: 100%; }
  .fees-printing .fees-duty-actions, .fees-printing .fees-remove { display: none; }
  .fees-printing .fees-duty input { border: 0; padding: 0; min-height: 0; }
}
