/* Version 1 (original theme): the vector coin from uos_coin_svg() next to coin amounts and coin prices, the drawn
   document covers of Shop products without a cover image, and the Shop "My downloads" tray.
   The pages link this file in Version 1 only; since v21.34 pay/_need_coins.php and the gift tray also link it in
   Version 2 for the "Not enough coins" box at the end of the file. Every rule above that box starts with
   :where(html:not([data-ui="2"])), which adds no specificity, so these rules still never reach Version 2.
   Colours come from the Version 1 tokens (--uos-warning is deep amber in light and warm gold in dark). */

/* ---------- the coin ---------- */
:where(html:not([data-ui="2"])) .uos-coin{display:inline-block;flex:none;width:1.15em;height:1.15em;vertical-align:-.2em}

/* course cards (home, catalogue) */
:where(html:not([data-ui="2"])) .mk-price .uos-coin{width:1.1em;height:1.1em;margin-right:.3em;vertical-align:-.18em}
:where(html:not([data-ui="2"])) .uos-coin-price{display:inline-flex;align-items:center;gap:.35em}
:where(html:not([data-ui="2"])) .uos-coin-price .uos-coin{width:1.1em;height:1.1em;vertical-align:0}
:where(html:not([data-ui="2"])) .uos-coin-or .uos-coin,:where(html:not([data-ui="2"])) .uos-price-or .uos-coin{width:1.1em;height:1.1em;vertical-align:-.2em}

/* course page price box, unlock buttons and the phone action bar */
:where(html:not([data-ui="2"])) .course-details-sidebar .uos-price .uos-coin,:where(html:not([data-ui="2"])) .uos-price .uos-coin{width:1em;height:1em;vertical-align:-.12em;margin-right:.1em}
:where(html:not([data-ui="2"])) .uos-cta-coins .uos-coin,:where(html:not([data-ui="2"])) .uos-cta-primary .uos-coin{width:1.25em;height:1.25em;vertical-align:-.28em}
:where(html:not([data-ui="2"])) .uos-course-bar-note .uos-coin{width:1.2em;height:1.2em;margin-right:.3em;vertical-align:-.22em}

/* a small coin amount chip (Virtual Lab "up to N coins", Shop product price) */
:where(html:not([data-ui="2"])) .uos-coin-chip{display:inline-flex;align-items:center;gap:.35em;padding:.12em .6em .12em .3em;border-radius:999px;background:var(--uos-warning-soft);color:var(--uos-warning);font-weight:700;font-variant-numeric:tabular-nums;line-height:1.5;white-space:nowrap}
:where(html:not([data-ui="2"])) .uos-coin-chip .uos-coin{width:1.15em;height:1.15em;vertical-align:0}
:where(html:not([data-ui="2"])) .lh-card-meta .uos-coin-chip,:where(html:not([data-ui="2"])) .sbx-task .uos-coin-chip{align-self:flex-start}
:where(html:not([data-ui="2"])) .sbx-task .uos-coin-chip{margin-top:2px;font-size:clamp(.72rem,.48rem + 2.25cqi,.8rem)}

/* Shop list badge, balance card, product page */
:where(html:not([data-ui="2"])) .uos-badge-warning .uos-coin{width:1.2em;height:1.2em;vertical-align:0}
:where(html:not([data-ui="2"])) .uos-shop .sh-bal-n{display:flex;align-items:center;justify-content:center;gap:.25em}
:where(html:not([data-ui="2"])) .uos-shop .sh-bal-n .uos-coin{width:.9em;height:.9em}
:where(html:not([data-ui="2"])) .uos-shop-product .uos-kv dd .uos-coin{width:1.1em;height:1.1em;margin-right:.25em;vertical-align:-.2em}
:where(html:not([data-ui="2"])) .uos-shop-product .uos-btn .uos-coin{width:1.2em;height:1.2em}

/* wallet balance card */
:where(html:not([data-ui="2"])) .wl-num .wl-coin{width:.8em;height:.8em;margin-right:.2em;vertical-align:-.06em}

/* "How rewards work" rows */
:where(html:not([data-ui="2"])) .uos-rx-row .uos-rx-coin{flex:none;display:inline-flex;width:16px;justify-content:center;margin-top:.22em}
:where(html:not([data-ui="2"])) .uos-rx-row .uos-rx-coin .uos-coin{width:16px;height:16px}

/* dashboard coin balance tile */
:where(html:not([data-ui="2"])) .uos-stat .uos-stat-icon.uos-stat-coin{background:var(--uos-warning-soft);border-color:transparent}
:where(html:not([data-ui="2"])) .uos-stat-coin .uos-coin{width:26px;height:26px}

/* SEO CTF badges (room and machine cards, room and machine headers) */
:where(html:not([data-ui="2"])) .arena-badge.uos-coin-badge{color:var(--uos-warning);border-color:rgba(245,158,11,.45);background:var(--uos-warning-soft);font-variant-numeric:tabular-nums}
:where(html:not([data-ui="2"])) .arena-badge.uos-coin-badge .uos-coin{width:1.2em;height:1.2em;vertical-align:0}
:where(html:not([data-ui="2"])) .arena-kv dd .uos-coin{width:1.1em;height:1.1em;margin-right:.25em;vertical-align:-.2em}

/* Virtual Lab reviewed task hero badge */
:where(html:not([data-ui="2"])) .lab-hero-badge.uos-coin-badge .uos-coin{width:1.2em;height:1.2em;vertical-align:0}

/* ---------- Shop: drawn document cover for products without a cover image ---------- */
:where(html:not([data-ui="2"])) .uos-doc-cover{position:relative;overflow:hidden;display:block!important;background:#2458ff}
:where(html[data-theme="dark"]:not([data-ui="2"])) .uos-doc-cover{background:#101828;box-shadow:inset 0 0 0 1px rgba(140,180,255,.28)}
:where(html:not([data-ui="2"])) .uos-doc-cover .uos-doc-paper{position:absolute;left:50%;top:clamp(30px,12cqi,44px);width:clamp(70px,25cqi,92px);height:auto;transform:translateX(-50%) rotate(-5deg);filter:drop-shadow(0 12px 18px rgba(16,24,40,.35))}
:where(html:not([data-ui="2"])) .uos-doc-cover .uos-doc-tag{position:absolute;left:12px;top:12px;z-index:1;max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 10px;border-radius:999px;background:#fff;color:#101828;font-size:clamp(11.5px,3.2cqi,12.5px);font-weight:700;line-height:1.5}
:where(html:not([data-ui="2"])) .uos-doc-cover-big{height:clamp(170px,26vw,240px)!important}
:where(html:not([data-ui="2"])) .uos-doc-cover-big .uos-doc-paper{width:clamp(92px,12vw,132px);top:clamp(40px,5.5vw,60px)}
:where(html:not([data-ui="2"])) .uos-doc-cover-big .uos-doc-tag{left:clamp(14px,2vw,22px);top:clamp(14px,2vw,22px);font-size:clamp(11.5px,.7rem + .2vw,13px)}

/* ---------- Shop: "My downloads" tray ---------- */
:where(html:not([data-ui="2"])) .uos-dl{container-type:inline-size;margin-top:clamp(16px,2.4vw,24px)}
:where(html:not([data-ui="2"])) .uos-dl-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px;margin-bottom:10px}
:where(html:not([data-ui="2"])) .uos-dl-head h2{margin:0;font-size:clamp(1.05rem,4cqi,1.2rem)}
:where(html:not([data-ui="2"])) .uos-dl-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:10px}
:where(html:not([data-ui="2"])) .uos-dl-list li{display:flex;align-items:center;gap:12px;min-width:0;padding:10px 12px;border-radius:var(--uos-radius-sm,8px);border:1px solid var(--uos-line)}
:where(html:not([data-ui="2"])) .uos-dl-ico{flex:none;width:36px;height:36px;border-radius:8px;display:grid;place-items:center;background:rgba(var(--uos-accent-rgb),.1);color:var(--uos-accent-text)}
:where(html:not([data-ui="2"])) .uos-dl-txt{flex:1;min-width:0;display:flex;flex-direction:column}
:where(html:not([data-ui="2"])) .uos-dl-txt a{color:var(--uos-ink);font-weight:600;overflow-wrap:anywhere;font-size:clamp(14px,3.6cqi,15px)}
:where(html:not([data-ui="2"])) .uos-dl-txt small{color:var(--uos-muted);font-size:clamp(12px,3.2cqi,13px)}
:where(html:not([data-ui="2"])) .uos-dl-txt small .uos-coin{width:1.1em;height:1.1em;margin-right:.2em;vertical-align:-.2em}
:where(html:not([data-ui="2"])) .uos-dl-list .uos-btn{flex:none}
:where(html:not([data-ui="2"])) .uos-dl-note{margin:10px 0 0;font-size:clamp(12px,3.2cqi,13px)}
@container (max-width:420px){
    :where(html:not([data-ui="2"])) .uos-dl-list li{flex-wrap:wrap}
    :where(html:not([data-ui="2"])) .uos-dl-list .uos-btn{flex:1 1 100%;justify-content:center}
}

/* ---------- v21.34: the "Not enough coins" box (views/.../pay/_need_coins.php and the gift tray), both looks ----------
   One block for every place coins are spent. Version 1: flat, 8px card, 4px controls, no gradients. Version 2: the Glass
   tokens (html[data-ui="2"], below). Text scales with the box itself (cqi inside clamp), the two buttons stay side by
   side at every width and are at least 44px high. Colours are the theme tokens, so dark and light follow the page. */
.uos-nc{container-type:inline-size;margin:12px 0;text-align:left}
.uos-nc-in{display:flex;align-items:flex-start;gap:clamp(10px,3.2cqi,14px);padding:clamp(12px,4cqi,16px);border:1px solid var(--uos-line-2);border-radius:8px;background:var(--uos-surface-solid);color:var(--uos-text)}
.uos-nc-icon{flex:none;display:grid;place-items:center;width:clamp(34px,11cqi,44px);height:clamp(34px,11cqi,44px);border-radius:8px;background:var(--uos-warning-soft)}
.uos-nc-icon .uos-nc-coin{display:block;width:64%;height:64%}
.uos-nc-body{flex:1 1 auto;min-width:0}
.uos-nc .uos-nc-title{margin:0;--uos-font:var(--uos-font-display);font-family:var(--uos-font-display);font-weight:600;color:var(--uos-ink);font-size:clamp(.9375rem,.8rem + 1.9cqi,1.125rem);line-height:1.3;letter-spacing:-.01em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.uos-nc .uos-nc-text{margin:4px 0 0;color:var(--uos-muted);font-size:clamp(.8125rem,.74rem + 1.1cqi,.9375rem);line-height:1.5;font-variant-numeric:tabular-nums}
.uos-nc-actions{display:flex;flex-wrap:nowrap;align-items:stretch;gap:8px;margin-top:12px}
.uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn{flex:1 1 0;min-width:0;width:auto;margin:0;display:inline-flex;align-items:center;justify-content:center;gap:.45em;min-height:44px;padding:8px clamp(8px,3cqi,16px);border:1px solid transparent;border-radius:4px;font-weight:600;font-size:clamp(.8125rem,.72rem + 1.4cqi,.9375rem);line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background-color var(--uos-dur-1,.12s),border-color var(--uos-dur-1,.12s)}
.uos-nc-btn svg{flex:none}
.uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-primary{background:var(--uos-accent,#2458ff);color:#fff}
.uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-primary:hover,.uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-primary:focus-visible{background:var(--uos-accent-hover,#1b45cc);color:#fff}
.uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-light{background:transparent;border-color:var(--uos-line-2);color:var(--uos-ink)}
.uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-light:hover{border-color:var(--uos-accent-text);color:var(--uos-ink)}
.uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn:focus-visible{outline:2px solid var(--uos-accent-text);outline-offset:2px}
.uos-nc.uos-nc-closed .uos-nc-body .uos-nc-actions .uos-nc-btn{flex:0 1 auto;min-width:min(100%,12rem)}
.uos-nc-compact .uos-nc-in{padding:10px 12px}
.uos-nc-compact .uos-nc-actions{margin-top:8px}
.uos-nc-compact .uos-nc-soon{margin-top:2px}
@container (max-width:300px){
    .uos-nc-icon{display:none}
    .uos-nc-btn svg{display:none}
    .uos-nc.uos-nc-closed .uos-nc-body .uos-nc-actions .uos-nc-btn{flex:1 1 0}
}
@media (prefers-reduced-motion:reduce){.uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn{transition:none}}
/* wallet on hold: the notice of pay/_hold.php, styled here because spend pages do not load the checkout styles */
.uos-nc-hold .pay-note{display:flex;align-items:flex-start;gap:12px;margin:0;padding:clamp(12px,4cqi,16px);border:1px solid var(--uos-warning);border-radius:8px;background:var(--uos-warning-soft);color:var(--uos-text);font-size:clamp(.8125rem,.74rem + 1.1cqi,.9375rem);line-height:1.5}
.uos-nc-hold .pay-note-icon{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:4px;background:var(--uos-surface-solid);color:var(--uos-warning)}
.uos-nc-hold .pay-note-body{flex:1 1 auto;min-width:0}
.uos-nc-hold .pay-note-body p{margin:0}
.uos-nc-hold .pay-note-title{display:block;margin:0 0 2px;color:var(--uos-ink);font-weight:600}
.uos-nc-hold .pay-link{color:var(--uos-accent-text);font-weight:600}
/* the gift tray (js/uos-gifts.js) puts the compact box under the balance line */
.ug-sheet .uos-nc{flex:0 0 auto;margin:0 0 10px}
/* gift tray: one short paragraph and two 44 px buttons, so the gifts stay in view on a phone */
.uos-nc .uos-nc-one{margin:0;font-size:clamp(.8125rem,.74rem + .35cqi,.875rem);line-height:1.4}
.uos-nc .uos-nc-one .uos-nc-title{font-size:inherit;line-height:inherit;letter-spacing:0}
.ug-sheet .uos-nc-compact .uos-nc-in{padding:8px 10px}
.ug-sheet .uos-nc-compact .uos-nc-actions{margin-top:6px}
.ug-sheet .uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn{min-height:44px;max-height:44px;padding:4px 6px;white-space:nowrap;font-size:clamp(.78rem,.7rem + 1.2cqi,.875rem)}
/* the course page price box styles every link inside .button as a full button (style.css, learn.css): the long selector
   chain on the two buttons above outranks those rules, so the box looks the same everywhere */
.button .uos-nc{width:100%}

/* Version 2 (Glass): glass surface over the solid colour, Glass radii, Sora on the controls, flat brand blue button */
html[data-ui="2"] .uos-nc-in{background:var(--v2-glass),var(--v2-glass-solid);border-color:var(--v2-glass-border);border-radius:var(--v2-radius);box-shadow:var(--v2-glass-inset)}
html[data-ui="2"][data-theme="light"] .uos-nc-in{background:var(--v2-glass),rgba(255,255,255,.7)}
html[data-ui="2"] .uos-nc-icon{border-radius:var(--v2-radius-sm);background:var(--v2-gold-soft)}
html[data-ui="2"] .uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn{border-radius:var(--v2-radius-sm);--uos-font:var(--uos-font-display);font-family:var(--uos-font-display)}
html[data-ui="2"] .uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-primary{background:#2458ff;color:#fff}
html[data-ui="2"] .uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-primary:hover,html[data-ui="2"] .uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-primary:focus-visible{background:#1b45cc;color:#fff}
html[data-ui="2"] .uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-light{background:rgba(255,255,255,.06);border-color:var(--v2-glass-border);color:var(--uos-ink)}
html[data-ui="2"] .uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-light:hover{background:rgba(255,255,255,.10);border-color:var(--uos-accent-text)}
html[data-ui="2"][data-theme="light"] .uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-light{background:#fff;border-color:rgba(36,88,255,.22)}
html[data-ui="2"][data-theme="light"] .uos-nc .uos-nc-body .uos-nc-actions .uos-nc-btn-light:hover{background:#f4f7ff;border-color:#2458ff}
html[data-ui="2"] .uos-nc-hold .pay-note{background:var(--v2-gold-soft),var(--v2-glass-solid);border-color:rgba(255,210,77,.40);border-radius:var(--v2-radius)}
html[data-ui="2"][data-theme="light"] .uos-nc-hold .pay-note{background:#fff7db;border-color:rgba(245,179,1,.45)}
html[data-ui="2"] .uos-nc-hold .pay-note-icon{border-radius:var(--v2-radius-sm);background:rgba(255,210,77,.18);color:var(--v2-gold-text)}

/* v21.34 checkout pages (both looks; uos-pay.css and the Glass pay.css style the rest): the four steps of a bank
   transfer (Choose, Transfer, Upload screenshot, Approved) and the "How buying coins works" steps of the coin store */
.pay-steps.pay-steps-4{grid-template-columns:repeat(4,minmax(0,1fr));max-width:680px}
.pay-steps-4 .pay-step-label{white-space:normal;overflow:visible;line-height:1.2;overflow-wrap:anywhere}
.pay-how .pay-how-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr))}
.pay-how .pay-how-step{align-items:flex-start;height:100%;cursor:default}
.pay-how .pay-how-step:hover{border-color:var(--uos-line)}
html[data-ui="2"] .pay-how .pay-how-step:hover{border-color:var(--v2-glass-border)}
.pay-how .pay-unlock-text b{font-size:1em}
.pay-buy-need .pay-link{font-weight:600;white-space:nowrap}

/* v21.34 review fixes: the checkout button of a bank transfer (bank icon, lock icon for card methods; uos-pay.js swaps them)
   and an 11.5 px floor for the small order kind label ("COIN PACK") on phones */
.pay-btn-pay .pay-submit-icon{display:inline-flex;flex:none;align-items:center}
.pay-btn-pay .pay-submit-icon[hidden]{display:none}
.pay-page .pay-sum-kind{font-size:clamp(11.5px,min(3.2cqi,.66rem + .1vw),12.5px)}

/* v21.36 coin store: the "Custom amount" card (both looks; the frame is .pay-fields from uos-pay.css and the Glass pay.css).
   One row on wide cards: the field, the live price, the Buy button; on a phone the field takes the full width and the
   price sits beside the button. */
.pay-custom{container-type:inline-size;margin:clamp(18px,3vw,28px) 0 0;scroll-margin-top:96px}
.pay-custom .pay-custom-card{max-width:46rem}
.pay-custom-head{display:flex;align-items:flex-start;gap:12px;min-width:0}
.pay-custom-art{flex:none;display:grid;place-items:center;width:44px;height:44px}
.pay-custom-art .pay-custom-coin{width:40px;height:40px}
.pay-custom-intro{flex:1 1 auto;min-width:0}
.pay-custom .pay-custom-lead{margin-top:2px;color:var(--uos-muted)}
.pay-custom-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.9fr);align-items:end;gap:12px}
.pay-custom-price{display:grid;gap:6px;min-width:0}
.pay-custom-amount{display:flex;align-items:center;min-height:46px;color:var(--uos-ink);font-weight:700;font-size:clamp(1.2rem,min(6cqi,1.05rem + .6vw),1.6rem);letter-spacing:-.01em;line-height:1.2;overflow-wrap:anywhere}
.pay-custom-amount.is-idle{color:var(--uos-muted)}
.pay-custom-go{min-width:0}
.pay-custom-go .pay-btn{min-height:46px}
.pay-custom .pay-custom-hint{color:var(--uos-muted);font-size:clamp(.78rem,min(3.2cqi,.76rem + .15vw),.875rem)}
.pay-custom .pay-custom-hint.is-bad{color:var(--uos-danger)}
@container (max-width:460px){
    .pay-custom-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
    .pay-custom-field{grid-column:1/-1}
}
