/* "Points" tab on the account page, the header balance link, and the "Top up points" prompt used by dialogs. */
.pts { display: grid; gap: 20px; max-width: 1040px; }
.pts *, .pts *::before, .pts *::after { box-sizing: border-box; }
.pts-head h2 { margin: 0 0 4px; color: var(--navy, #06274f); font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.pts-head p { margin: 0; color: #3b4f67; max-width: 62ch; }
.pts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pts-col { display: grid; gap: 20px; min-width: 0; }
.pts-card { padding: 20px; border: 1px solid var(--edge, #dfe8f2); border-radius: 16px; background: #fff; min-width: 0; }
.pts-card h2 { margin: 0 0 10px; color: var(--navy, #06274f); font-size: 18px; font-weight: 780; }
.pts-note { margin: 8px 0 0; color: #475569; font-size: 14.5px; line-height: 1.45; }
.pts-balance { border: 2px solid var(--gold, #f6bf18); background: #fffaf0; }
.pts-total { display: flex; align-items: baseline; gap: 6px; margin: 0; color: var(--navy, #06274f); }
.pts-total strong { font-size: 44px; font-weight: 850; letter-spacing: -.03em; line-height: 1.05; }
.pts-total span { font-size: 18px; font-weight: 700; }
.pts-split { margin: 4px 0 0; color: #324a66; font-size: 16px; font-weight: 650; }

.pts-list { display: grid; margin: 0; padding: 0; list-style: none; }
.pts-price, .pts-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--edge, #dfe8f2); min-width: 0; }
.pts-list > li:first-child { border-top: 0; padding-top: 4px; }
.pts-price-label, .pts-row-title { color: var(--navy, #06274f); font-weight: 700; overflow-wrap: anywhere; }
.pts-price-cost { display: grid; justify-items: end; text-align: right; flex: none; color: var(--navy, #06274f); }
.pts-price-cost small, .pts-row-detail, .pts-row-date { color: #475569; font-size: 13.5px; font-weight: 500; }
.pts-free { color: #0b6b3a !important; font-weight: 700 !important; }
.pts-row-main { display: grid; gap: 2px; min-width: 0; }
.pts-row-detail { overflow-wrap: anywhere; }
.pts-tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #eef5fd; color: #0a4d8f; font-size: 12px; font-weight: 700; }
.pts-amount { flex: none; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pts-amount.is-plus { color: #0b6b3a; }
.pts-amount.is-minus { color: #7a2a0a; }
.pts-status { flex: none; padding: 4px 11px; border-radius: 999px; background: #e6edf6; color: #324a66; font-size: 12.5px; font-weight: 800; }
.pts-status.is-paid { background: #dff4e6; color: #0d6a35; }
.pts-status.is-pending { background: #fff1c9; color: #7a5a00; }
.pts-status.is-failed, .pts-status.is-expired { background: #fde3e0; color: #9a2018; }
.pts-link { color: var(--blue, #0759a8); font-size: 14px; font-weight: 700; }

.pts-form { display: grid; gap: 16px; }
.pts-packs { margin: 0; padding: 0; border: 0; min-width: 0; }
.pts-packs legend { padding: 0; margin-bottom: 8px; color: var(--navy, #06274f); font-size: 14px; font-weight: 700; }
.pts-pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.pts-pack { display: grid; gap: 2px; justify-items: center; min-height: 64px; padding: 8px 10px; border: 2px solid #b9c9dc; border-radius: 12px; background: #fff; color: var(--navy, #06274f); cursor: pointer; font: inherit; }
.pts-pack strong { font-size: 16px; font-weight: 800; }
.pts-pack span { color: #324a66; font-size: 14.5px; font-weight: 650; }
.pts-pack[aria-pressed="true"] { border-color: var(--navy, #06274f); background: #eef5fd; box-shadow: inset 0 0 0 1px var(--navy, #06274f); }
.pts-pack:focus-visible, .pts-terms input:focus-visible, .pts-chip:focus-visible { outline: 3px solid var(--navy, #06274f); outline-offset: 2px; box-shadow: 0 0 0 6px var(--gold, #f6bf18); }
.pts-price-now { color: var(--navy, #06274f); font-weight: 700; }
.pts .dk-hint { margin: 0; color: #475569; font-size: 14px; }
.pts .dk-error:empty { display: none; }
.pts .dk-field input[type="text"], .pts .dk-field input[type="tel"] { min-height: 48px; font-size: 16px; }
.pts-terms-label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 0; cursor: pointer; font-weight: 600; line-height: 1.4; }
.pts-terms-label input { flex: none; width: 24px; height: 24px; margin: 0; }
.pts-terms-label a { color: var(--blue, #0759a8); text-decoration: underline; }
.pts-form .dash-actions { margin: 0; }
.pts-form .dk-submit { min-width: 140px; }
.pts-status-msg { margin: 0; }
.pts-gate, .pts-error { padding: 16px; border: 1px solid #d8b13a; border-radius: 12px; background: #fff9e6; color: #5a4a14; }
.pts-gate p, .pts-error p { margin: 0 0 6px; }

/* Header link on the account page */
.pts-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--gold, #f6bf18); border-radius: 999px; background: #fffaf0; color: var(--navy, #06274f); font-size: 15px; font-weight: 800; text-decoration: none; }
.pts-chip:hover { background: var(--gold-soft, #ffe8a2); }
.dash-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* "Not enough points" prompt shown beside forms and inside the promote and boost dialogs */
.pts-topup-prompt { display: grid; justify-items: start; gap: 10px; }
.pts-topup-prompt p { margin: 0; }
.pts-topup-prompt[hidden] { display: none; }

@media (max-width: 820px) {
  .pts-grid { grid-template-columns: minmax(0, 1fr); }
  .pts-card { padding: 16px; }
}

/* Unlock points with a promo code */
.pts-promo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 6px; }
.pts-promo input { flex: 1 1 180px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line, #cfd8e3); border-radius: 10px; font: inherit; text-transform: uppercase; }
.pts-error-text { color: #8a1c14; }
