/* Nexus shop basket drawer (NX-CART v1). A flush, full-height drawer on the right in the shop's dark theme; buttons are the shared ui.css set. */
.nxc { --nxc-ink: #f4f4f5; --nxc-ink2: #a1a1aa; --nxc-ink3: #71717a; --nxc-line: rgba(255, 255, 255, .1); --nxc-line2: rgba(255, 255, 255, .18); --nxc-surf: #101318; --nxc-surf2: #161a21; --nxc-acc: #22d3ee; --nxc-bad: #f87171;
  position: fixed; inset: 0; z-index: 1200; pointer-events: none; font-family: var(--ui-font, 'Geist', system-ui, sans-serif); color: var(--nxc-ink); }
.nxc svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nxc-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.nxc-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(440px, 100%); background: var(--nxc-surf);
  box-shadow: inset 1px 0 0 var(--nxc-line), -24px 0 60px -30px #000; transform: translateX(100%); transition: transform .35s cubic-bezier(.22, 1, .36, 1); outline: none; }
.nxc.on { pointer-events: auto; }
.nxc.on .nxc-scrim { opacity: 1; }
.nxc.on .nxc-panel { transform: none; }
html.nxc-lock { overflow: hidden; }
html.nxc-lock .nxa { visibility: hidden; pointer-events: none; }

.nxc-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px 24px; }
.nxc-head h2 { margin: 0; font: 600 22px/1.2 var(--ui-font, 'Geist', sans-serif); letter-spacing: -.01em; }
.nxc-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--nxc-ink2); cursor: pointer; }
.nxc-x:hover { background: rgba(255, 255, 255, .06); color: var(--nxc-ink); }
.nxc-tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--nxc-line); }
.nxc-tabs button { position: relative; height: 42px; padding: 0 4px; margin-right: 16px; border: 0; background: none; color: var(--nxc-ink2); font: 500 15px var(--ui-font, sans-serif); cursor: pointer; }
.nxc-tabs button[aria-selected="true"] { color: var(--nxc-ink); font-weight: 600; }
.nxc-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--nxc-ink); }
.nxc-body { flex: 1; overflow-y: auto; padding: 8px 24px 20px; overscroll-behavior: contain; }

.nxc-lines { margin: 0; padding: 0; list-style: none; }
.nxc-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--nxc-line); }
.nxc-line > img { width: 72px; height: 72px; border-radius: 10px; background: var(--nxc-surf2); object-fit: contain; }
.nxc-li { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nxc-li b { font: 500 15px/1.35 var(--ui-font, sans-serif); }
.nxc-unit { color: var(--nxc-ink2); font-size: 13.5px; overflow-wrap: anywhere; }
.nxc-li em { color: var(--nxc-ink2); font-size: 13px; font-style: normal; }
.nxc-line.bad .nxc-li em { color: var(--nxc-bad); font-weight: 500; }
.nxc-line > strong { font: 600 15px var(--ui-font, sans-serif); font-variant-numeric: tabular-nums; }
.nxc-qty { display: flex; align-items: center; gap: 2px; margin-top: 8px; }
.nxc-qty > button:not(.nxc-rm) { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--nxc-line2); border-radius: 8px; background: transparent; color: var(--nxc-ink); cursor: pointer; }
.nxc-qty > button svg { width: 16px; height: 16px; }
.nxc-qty > button:disabled { opacity: .35; cursor: not-allowed; }
.nxc-qty span { min-width: 34px; text-align: center; font: 600 15px var(--ui-font, sans-serif); font-variant-numeric: tabular-nums; }
.nxc-rm { display: grid; place-items: center; width: 32px; height: 32px; margin-left: 8px; border: 0; border-radius: 8px; background: none; color: var(--nxc-ink3); cursor: pointer; }
.nxc-rm:hover { background: rgba(248, 113, 113, .1); color: var(--nxc-bad); }
.nxc-st.redeemed { color: #4ade80 !important; }
.nxc-st.void, .nxc-st.expired { color: var(--nxc-ink3) !important; }
.nxc-resend { display: flex; gap: 8px; margin-top: 8px; }
.nxc-resend input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--nxc-line2); border-radius: 8px; background: var(--nxc-surf2); font: 400 14px var(--ui-font, sans-serif); color: var(--nxc-ink); }
.nxc-note { color: var(--nxc-ink3); font-size: 13px; margin: 14px 0 0; }

.nxc-gift { min-width: 0; margin: 18px 0 0; padding: 16px; border: 1px solid var(--nxc-line); border-radius: 12px; }
.nxc-gift legend { padding: 0 6px; font: 600 15px/1.4 var(--ui-font, sans-serif); }
.nxc-recipient { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.nxc-recipient .nxc-check { min-height: 44px; }
.nxc-recipient input { flex: none; margin: 0; }
.nxc-line b, .nxc-line em { overflow-wrap: anywhere; }
.nxc-wait .ui-btn { margin-top: 12px; min-height: 44px; }
.nxc button:focus-visible, .nxc a:focus-visible, .nxc input:focus-visible, .nxc textarea:focus-visible { outline: 2px solid var(--nxc-acc); outline-offset: 3px; }
.nxc .nxc-qty > button:not(.nxc-rm), .nxc .nxc-rm { width: 40px; height: 40px; }
.nxc-gift.on { border-color: var(--nxc-line2); background: var(--nxc-surf2); }
.nxc-gift p { margin: 10px 0 4px; color: var(--nxc-ink2); font-size: 14px; line-height: 1.5; }
.nxc-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font: 600 15px var(--ui-font, sans-serif); }
.nxc-check input { width: 18px; height: 18px; accent-color: #22d3ee; }
.nxc-check span { display: inline-flex; align-items: center; gap: 8px; }
.nxc-f { display: block; margin-top: 12px; }
.nxc-f span { display: block; margin-bottom: 6px; font: 500 14px var(--ui-font, sans-serif); }
.nxc-f i { color: var(--nxc-ink3); font-style: normal; font-weight: 400; }
.nxc-f input, .nxc-f textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--nxc-line2); border-radius: 8px; background: #0b0e14; color: var(--nxc-ink); font: 400 15px/1.4 var(--ui-font, sans-serif); outline: none; resize: vertical; }
.nxc-f input:focus, .nxc-f textarea:focus { border-color: var(--nxc-acc); box-shadow: 0 0 0 3px rgba(34, 211, 238, .25); }
.nxc-msg { margin: 12px 0 0; color: var(--nxc-bad); font-size: 14px; }
.nxc-msg:empty { display: none; }

.nxc-foot { padding: 16px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--nxc-line); background: var(--nxc-surf); }
.nxc-foot:empty { display: none; }
.nxc-total { display: flex; align-items: baseline; justify-content: space-between; font: 600 17px var(--ui-font, sans-serif); }
.nxc-total b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nxc-who { margin: 4px 0 0; color: var(--nxc-ink2); font-size: 13.5px; }
.nxc .nxc-go { width: 100%; margin-top: 14px; min-height: 50px; font-size: 16px; }
.nxc-safe { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; color: var(--nxc-ink3); font-size: 12.5px; }
.nxc-safe svg { width: 14px; height: 14px; }
.nxc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 12px; text-align: center; color: var(--nxc-ink2); }
.nxc-empty svg { width: 40px; height: 40px; color: var(--nxc-ink3); stroke-width: 1.5; margin-bottom: 6px; }
.nxc-empty b { color: var(--nxc-ink); font-size: 17px; font-weight: 600; }
.nxc-empty span { font-size: 14.5px; max-width: 280px; }
.nxc-wait { padding: 24px 0; color: var(--nxc-ink3); list-style: none; }

/* Pages without the shop bar get a floating basket button */
.nxc-float { position: fixed; right: 20px; bottom: 20px; z-index: 1150; }
.nxc-float .sp-opt { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: #161a21; color: #fff; font: 500 15px var(--ui-font, sans-serif); cursor: pointer; box-shadow: 0 10px 30px -10px #000; }
.nxc-float .sp-opt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nxc-float .sp-n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #22d3ee; color: #082f49; font: 700 11px/20px var(--ui-font, sans-serif); text-align: center; }
#stCart .sp-opt svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 640px) {
  .nxc-panel { width: 100%; }
  .nxc-head, .nxc-tabs, .nxc-body, .nxc-foot { padding-left: 18px; padding-right: 18px; }
  .nxc-line { grid-template-columns: 60px 1fr auto; gap: 12px; }
  .nxc-line > img { width: 60px; height: 60px; }
  #stCart .sp-opt span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nxc-panel, .nxc-scrim { transition: none; } }
