/* Checkout and My games: the customer's pages, in the app's own look. */
.shop-page { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.shop-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.shop-top .logo { font-size: 30px; text-decoration: none; color: #fff; }
.shop-top .spacer { flex: 1; }
.shop-top .who { color: #fff; opacity: .9; font-weight: 700; overflow-wrap: anywhere; }
.shop-page h1 { color: #fff; font-size: 34px; margin: 4px 0 18px; }
.shop-page .card { margin-bottom: 18px; }
.shop-page .card h2 { margin: 0 0 12px; font-size: 24px; }
.shop-page label { display: block; font-weight: 700; margin: 12px 0 0; }
.shop-page label .input { margin-top: 6px; }

.notice { border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-weight: 700; background: #fff7d6; color: #5c4400; }
.notice.good { background: #dcfce7; color: #14532d; }
.notice.test { background: #e0f2fe; color: #0c4a6e; font-weight: 400; }
.notice.test b { font-weight: 800; }

/* the basket */
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 2px solid #efecf8; }
.line .emoji { font-size: 32px; text-align: center; }
.line .what b { display: block; font-size: 18px; }
.line .what small { color: var(--muted); }
.line .price { font-weight: 800; font-size: 18px; }
.line .remove { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--muted); padding: 6px 8px; border-radius: 10px; }
.line .remove:hover, .line .remove:focus-visible { background: #f3f0fb; color: var(--bad); }
.total { display: flex; justify-content: space-between; font-size: 22px; font-weight: 800; padding-top: 14px; }
.basket-notes { margin: 10px 0 0; padding-left: 20px; color: #8a5a00; }
.empty-basket { text-align: center; padding: 10px 0; }

/* account step */
.tabs { display: flex; gap: 8px; margin-bottom: 4px; }
.tabs button { flex: 1; border: 3px solid #d9d4ee; background: #fff; border-radius: 14px; padding: 10px; font-weight: 800; font-size: 16px; cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { border-color: var(--a3); background: #f3efff; }
.signed-in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.linkish { border: 0; background: none; color: var(--a3); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.agree { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin: 4px 0 16px !important; }
.agree input { width: 22px; height: 22px; margin-top: 1px; flex: none; }
.step-off { opacity: .55; pointer-events: none; }

/* My games */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; } /* the same as the admin's quiz cards */
.shop-page.wide { max-width: 1120px; } /* My games: room for the cards to be as big as the admin's */
.shop-page.wide #login, .shop-page.wide #forgot, .shop-page.wide #reset, .shop-page.wide #settings { max-width: 728px; margin-left: auto; margin-right: auto; } /* forms keep the shop's width */
.game { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.game .cover { font-size: 64px; text-align: center; padding: 18px; background: var(--cover, linear-gradient(160deg, #1b1250, #7c3aed)); }
.game .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game h3 { margin: 0; font-size: 20px; }
.game .size { font-weight: 700; }
.game .until { color: var(--muted); font-size: 15px; }
/* When a pack ends, as a pill: green, amber with less than a month to go, red in the last week */
.game .ends { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 2px; padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.game .ends.ok { background: #dcfce7; color: #15803d; }
.game .ends.month { background: #fef3c7; color: #b45309; }
.game .ends.soon { background: #fee2e2; color: #b91c1c; }
.game .btn { margin-top: auto; text-align: center; text-decoration: none; }
.none-yet { color: #fff; text-align: center; font-size: 18px; }
.none-yet a { color: var(--gold); }
.small-links { color: #fff; opacity: .85; text-align: center; margin-top: 24px; }
.small-links a, .small-links button { color: #fff; }

@media (max-width: 520px) {
  .line { grid-template-columns: 36px 1fr auto; }
  .line .remove { grid-column: 3; grid-row: 1; }
  .line .price { grid-column: 2; }
}

/* the gear (settings) and the settings page */
.gear { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: rgba(0, 0, 0, .3); }
.gear svg { width: 24px; height: 24px; transition: transform .3s; }
.gear:hover svg, .gear:focus-visible svg { transform: rotate(60deg); }
.gear[aria-current="page"] { background: var(--a3); }
.back-link { color: #fff; font-weight: 700; text-decoration: none; opacity: .9; }
.back-link:hover { text-decoration: underline; opacity: 1; }
.status { min-height: 1.4em; margin: 6px 0 0; font-weight: 700; color: var(--good); }
.status.bad { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .gear svg { transition: none; } }

/* the "Get more packs" card after the customer's own packs */
.game.more-packs { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; outline: 3px dashed rgba(255, 255, 255, .45); outline-offset: -3px; }
.game.more-packs .cover { background: none; }
.game.more-packs .until { color: rgba(255, 255, 255, .8); }
.btn.gold { background: var(--gold); color: var(--ink); }

/* subtotal, voucher discount and the voucher box */
.sub-row { display: flex; justify-content: space-between; padding-top: 10px; font-size: 17px; color: var(--muted); }
.sub-row.discount { color: var(--good); font-weight: 700; }
.voucher { margin-top: 16px; padding-top: 14px; border-top: 2px solid #efecf8; }
.voucher label { margin: 0 0 6px; font-size: 15px; }
.voucher-row { display: flex; gap: 8px; }
.voucher-row .input { text-transform: uppercase; font-size: 18px; padding: 9px 12px; letter-spacing: 1px; }
.voucher-row .btn { flex: none; }
.voucher-msg { min-height: 1.3em; margin: 6px 0 0; font-weight: 700; color: var(--good); }
.voucher-msg.bad { color: var(--bad); }
/* Upgrade to Mega-host, under the Host button on an 8-player pack */
.game .upgrade-btn { margin-top: 10px; width: 100%; font-size: 15px; padding-left: 8px; padding-right: 8px; }
.game .upgrade-note { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); text-align: center; }

/* Pack pictures: the 3D emoji pictures, and the admin's own cover pictures */
.line .emoji { display: grid; place-items: center; }
.line .emoji .pic { width: 40px; height: 40px; }
.line .emoji .pic-text { width: auto; height: auto; }
.line-cover { width: 44px; height: 33px; object-fit: cover; border-radius: 6px; }
.game .cover { display: grid; place-items: center; aspect-ratio: 2 / 1; padding: 0; box-sizing: border-box; }
.game .cover .cover-pic { width: 80px; height: 80px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
.game .cover .pic-text { font-size: 64px; line-height: 1; }
.game .cover.has-img { background-size: cover; background-position: center; }

/* My games: gift vouchers the customer has bought. */
.my-gifts { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 16px 20px; margin: 18px 0 0; }
.my-gifts h2 { margin: 0 0 8px; font-size: 20px; }
.my-gifts ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.my-gifts li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.my-gifts code { font-weight: 800; letter-spacing: 1px; }
.my-gifts .muted { color: var(--muted); font-size: 14px; }
.my-gifts a { color: #7c3aed; font-weight: 700; }
