/* Commerce core, part 1: page, type, cards, buttons, tags, breadcrumb. Light theme, the shop's own colour tokens. */
.cm-page { padding: 28px 0 56px; font-family: "Open Sans", sans-serif; }
.cm-title { font-weight: 700; font-size: 32px; line-height: 38px; margin: 0 0 4px; color: var(--dark-text); }
.cm-h2 { font-weight: 700; font-size: 22px; line-height: 28px; margin: 0 0 14px; color: var(--dark-text); }
.cm-lead { color: var(--dark-gray); font-size: 15px; margin: 0 0 20px; }
.cm-section { margin-top: 36px; }
.cm-card { background: var(--background-offwhite); border-radius: 20px; padding: 20px; min-width: 0; }
.cm-help { display: block; font-size: 13px; line-height: 18px; color: var(--dark-gray); margin: 4px 0 0; }
.cm-error { display: block; font-size: 13px; line-height: 18px; color: #d92d20; }
.cm-error:empty { display: none; }
.cm-alert { background: #fdecea; color: #b42318; border-radius: 14px; padding: 12px 16px; font-size: 15px; }

.cm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; }
.cm-btn--dark { background: var(--dark-text); color: #fff; }
.cm-btn--ghost { background: var(--white); color: var(--dark-text); box-shadow: inset 0 0 0 1px #d5dbe3; }
.cm-btn[disabled] { opacity: .6; cursor: wait; }
.cm-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: cm-spin .7s linear infinite; }
@keyframes cm-spin { to { transform: rotate(360deg); } }

.cm-tag { font-size: 11px; line-height: 16px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: #e7e3ff; color: #5a3fd6; white-space: nowrap; }
.cm-tag--direct { background: #dcf5e4; color: #12803a; }
.cm-step-no { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--dark-text); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cm-step-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; line-height: 24px; margin: 0 0 16px; color: var(--dark-text); }

.cm-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; color: var(--dark-gray); }
.cm-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b3bac4; }
.cm-breadcrumb a { color: var(--dark-gray); }
.cm-breadcrumb a:hover { color: var(--dark-text); }
.cm-breadcrumb [aria-current] { color: var(--dark-text); font-weight: 600; }

.cm-logo { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 24px; background: linear-gradient(135deg, #fda343 0%, #ff5884 100%); object-fit: cover; }
.cm-logo--sm { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
.cm-logo--lg { flex-basis: 72px; width: 72px; height: 72px; border-radius: 20px; font-size: 30px; }
.cm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.cm-head .cm-lead { margin: 0; }

@media (max-width: 575px) {
 .cm-page { padding: 20px 0 40px; }
 .cm-title { font-size: 26px; line-height: 32px; }
 .cm-h2 { font-size: 20px; line-height: 26px; }
 .cm-card { padding: 16px; border-radius: 16px; }
 .cm-section { margin-top: 28px; }
}

/* launch mode "coming soon" (sales off): replaces the order box on game pages */
.cm-soon .cm-step-title { margin-bottom: 8px; }
.cm-soon-text { margin: 0 0 16px; font-size: 15px; line-height: 23px; color: var(--dark-gray); }
.cm-soon-packs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.cm-soon-packs li { background: var(--white); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--dark-text); box-shadow: inset 0 0 0 1px #e3e8ee; }
.gp-soon { margin-top: 4px; }
/* Commerce core, part 2: product tiles (hub, category, related row). */
.cm-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cm-tile { position: relative; display: flex; align-items: center; gap: 14px; background: var(--background-offwhite); border-radius: 20px; padding: 18px; color: var(--dark-text); min-width: 0; }
.cm-tile:hover, .cm-tile:focus-visible { color: var(--dark-text); box-shadow: inset 0 0 0 2px #ff8a5c; }
.cm-tile-text { display: flex; flex-direction: column; min-width: 0; }
.cm-tile-name { font-weight: 700; font-size: 17px; line-height: 22px; overflow-wrap: anywhere; }
.cm-tile-sub { font-size: 13px; color: var(--dark-gray); }
.cm-tile-price { font-size: 14px; color: var(--dark-gray); margin-top: 2px; }
.cm-tile-price strong { color: var(--dark-text); }
.cm-tile > .cm-tag { position: absolute; top: 12px; right: 12px; }
@media (max-width: 767px) {
 .cm-tile-grid--row { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
 .cm-tile-grid--row > * { scroll-snap-align: start; }
}
/* Commerce core, part 3: buy form – layout, package tiles, player fields with live check, payment choice. */
.cm-buy { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cm-steps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cm-group { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 16px 0 8px; color: var(--dark-text); }
.cm-group:first-of-type { margin-top: 0; }

.cm-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cm-variant { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--white); border-radius: 14px; padding: 14px; cursor: pointer; margin: 0; box-shadow: inset 0 0 0 1px #e3e8ee; transition: box-shadow .15s; }
.cm-variant input { position: absolute; opacity: 0; pointer-events: none; }
.cm-variant:hover { box-shadow: inset 0 0 0 2px #ffb59a; }
.cm-variant:has(input:checked) { box-shadow: inset 0 0 0 2px #ff5884; }
.cm-variant:has(input:focus-visible) { box-shadow: inset 0 0 0 2px #ff5884, 0 0 0 3px rgba(255, 88, 132, .25); }
.cm-variant.is-out { cursor: not-allowed; opacity: .55; }
.cm-variant.is-out:hover { box-shadow: inset 0 0 0 1px #e3e8ee; }
.cm-variant-name { font-weight: 700; font-size: 15px; line-height: 20px; color: var(--dark-text); }
.cm-variant-price { font-size: 14px; color: var(--dark-gray); }
.cm-variant-badge { position: absolute; top: -8px; right: 10px; font-size: 11px; line-height: 16px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #fda343 0%, #ff5884 100%); }

.cm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.cm-field label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 4px; color: var(--dark-text); }
.cm-field input, .cm-field select, .cm-discount input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid #d5dbe3; background: var(--white); padding: 0 14px; font-size: 16px; color: var(--dark-text); }
.cm-field input:focus, .cm-field select:focus, .cm-discount input:focus { outline: none; border-color: #ff5884; }
.cm-field.has-error input, .cm-field.has-error select { border-color: #d92d20; }
.cm-field--qty { max-width: 140px; }

/* player check: data-state = idle | checking | found | notfound | error */
.cm-check-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; min-height: 44px; }
.cm-account { display: none; align-items: center; gap: 6px; color: #12803a; font-size: 15px; }
.cm-player[data-state="found"] .cm-account { display: inline-flex; }
.cm-player[data-state="found"] .cm-field input, .cm-player[data-state="found"] .cm-field select { border-color: #17a34a; }
.cm-player[data-state="notfound"] .cm-field input { border-color: #d92d20; }
.cm-player[data-state="checking"] .cm-spinner { display: inline-block; }
.cm-player[data-state="checking"] .cm-field input, .cm-player[data-state="checking"] .cm-field select { opacity: .7; }

.cm-gateways { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cm-gateway { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 12px; padding: 12px 14px; margin: 0; cursor: pointer; font-size: 15px; box-shadow: inset 0 0 0 1px #e3e8ee; }
.cm-gateway:has(input:checked) { box-shadow: inset 0 0 0 2px #ff5884; }
.cm-botcheck { margin-top: 14px; }
.cm-botcheck:empty { display: none; }

@media (max-width: 991px) {
 .cm-buy { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
 .cm-fields { grid-template-columns: minmax(0, 1fr); }
 .cm-variants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .cm-field--qty { max-width: none; }
}
/* Commerce core, part 4: price summary box (line items, fee, discount, total, pay button). */
.cm-summary { position: sticky; top: 16px; }
.cm-summary-list { margin: 0 0 16px; }
.cm-summary-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.cm-summary-list > div[hidden] { display: none; }
.cm-summary-list dt { font-weight: 500; color: var(--dark-gray); }
.cm-summary-list dd { margin: 0; text-align: right; color: var(--dark-text); font-weight: 600; overflow-wrap: anywhere; }
.cm-summary-discount dd { color: #12803a; }
.cm-summary-total { border-top: 1px solid #d5dbe3; margin-top: 6px; padding-top: 12px !important; }
.cm-summary-total dd { font-size: 20px; font-weight: 700; }
.cm-discount { display: flex; gap: 8px; margin: 0 0 14px; }
.cm-discount input { min-width: 0; height: 44px; font-size: 15px; }
.cm-pay { width: 100%; height: 50px; font-weight: 700; }
.cm-pay[disabled] { opacity: .6; cursor: wait; }
.cm-error--form { margin-top: 10px; }
@media (max-width: 991px) {
 .cm-summary { position: static; }
}
/* Commerce core, part 5: content blocks – trust row, reviews, FAQ, how-to steps. */
.cm-trust { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.cm-trust li { display: inline-flex; align-items: center; gap: 6px; background: #e8f6ed; color: #12683a; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.cm-trust svg { color: #17a34a; flex: 0 0 auto; }

.cm-reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.cm-reviews-head .cm-h2 { margin: 0; }
.cm-rating { margin: 0; font-size: 15px; color: var(--dark-text); }
.cm-rating strong { font-size: 20px; }
.cm-rating span { color: var(--dark-gray); }
.cm-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cm-review { background: var(--background-offwhite); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cm-review header { display: flex; align-items: center; gap: 10px; }
.cm-review-avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #4ecdc4; color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cm-review-who { display: flex; flex-direction: column; line-height: 18px; min-width: 0; }
.cm-review-who small { color: var(--dark-gray); font-size: 12px; }
.cm-stars { margin: 0; color: #00b67a; letter-spacing: 2px; font-size: 16px; line-height: 1; }
.cm-stars span { color: #d5dbe3; }
.cm-review-text { margin: 0; font-size: 14px; line-height: 21px; color: var(--dark-text); overflow-wrap: anywhere; }
.cm-review a { font-size: 13px; color: var(--dark-gray); text-decoration: underline; margin-top: auto; }

.cm-faq { display: flex; flex-direction: column; gap: 8px; }
.cm-faq details { background: var(--background-offwhite); border-radius: 14px; }
.cm-faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; font-size: 15px; line-height: 22px; position: relative; color: var(--dark-text); }
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary::after { content: ""; position: absolute; right: 18px; top: 19px; width: 9px; height: 9px; border-right: 2px solid var(--dark-gray); border-bottom: 2px solid var(--dark-gray); transform: rotate(45deg); transition: transform .15s; }
.cm-faq details[open] summary::after { transform: rotate(-135deg); top: 23px; }
.cm-faq-answer { padding: 0 16px 16px; font-size: 14px; line-height: 22px; color: var(--middark-gray); }

.cm-howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cm-howto li { display: flex; gap: 12px; background: var(--background-offwhite); border-radius: 20px; padding: 18px; }
.cm-howto strong { display: block; font-size: 15px; line-height: 22px; color: var(--dark-text); }
.cm-howto p { margin: 4px 0 0; font-size: 14px; line-height: 21px; color: var(--dark-gray); }

@media (max-width: 767px) {
 .cm-reviews { grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
 .cm-review { scroll-snap-align: start; }
}
/* Commerce core, part 6: order page – status, items, hidden code with "Show code". */
.cm-order { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.cm-order .cm-lead { margin: 0; }
.cm-status { display: flex; align-items: center; gap: 16px; }
.cm-status p { margin: 0; color: var(--dark-gray); font-size: 15px; }
.cm-status .cm-title { font-size: 24px; line-height: 30px; }
.cm-status-dot { flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%; background: #f5a524; }
.cm-status--delivered .cm-status-dot { background: #17a34a; }
.cm-status--failed .cm-status-dot, .cm-status--refunded .cm-status-dot, .cm-status--cancelled .cm-status-dot { background: #98a2b3; }
.cm-status--paid .cm-status-dot, .cm-status--risk_check .cm-status-dot, .cm-status--fulfilling .cm-status-dot { animation: cm-pulse 1.2s ease-in-out infinite; }
@keyframes cm-pulse { 50% { opacity: .35; } }
.cm-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cm-item-name { font-size: 17px; line-height: 22px; font-weight: 700; margin: 0; }
.cm-item-input { margin: 12px 0 0; }
.cm-done { margin: 12px 0 0; color: #12803a; font-size: 15px; font-weight: 600; }
.cm-codes { margin-top: 14px; background: var(--white); border-radius: 14px; padding: 14px; }
.cm-code-hidden { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cm-code-hidden[hidden] { display: none; }
.cm-code-mask { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; letter-spacing: 1px; color: var(--dark-gray); }
.cm-code-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cm-code-list[hidden] { display: none; }
.cm-code-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cm-code-list code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; color: var(--dark-text); background: none; padding: 0; overflow-wrap: anywhere; user-select: all; }
.cm-copy { border: none; background: var(--background-offwhite); border-radius: 10px; height: 36px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--dark-text); cursor: pointer; }
.cm-total-row { display: flex; justify-content: space-between; font-size: 17px; }
/* Commerce core, part 7: hosted page of the fake payment provider (local/testing only). */
.cm-fakepay { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #101828; font-family: -apple-system, "Segoe UI", sans-serif; padding: 16px; }
.cm-fakepay-box { background: #fff; border-radius: 20px; padding: 28px; width: 100%; max-width: 420px; text-align: center; }
.cm-fakepay-box h1 { font-size: 34px; margin: 12px 0 4px; }
.cm-fakepay-box p { color: #667085; font-size: 14px; margin: 0 0 20px; overflow-wrap: anywhere; }
.cm-fakepay-badge { display: inline-block; background: #fef0c7; color: #93370d !important; font-weight: 700; font-size: 12px !important; padding: 4px 10px; border-radius: 999px; margin: 0 !important; }
.cm-fakepay-box form { display: flex; flex-direction: column; gap: 10px; }
.cm-fakepay-box button { height: 50px; border-radius: 12px; border: none; font-size: 16px; font-weight: 700; cursor: pointer; }
.cm-fakepay-pay { background: #17a34a; color: #fff; }
.cm-fakepay-decline { background: #f2f4f7; color: #344054; }
/* Commerce core, part 8: cover tile (picture on top, type label, from-price) and its grid. From the hub page; used wherever titles are browsed. */
.cm-cover-grid, .cm-cover { --cm-grad: linear-gradient(100deg, #7c3aed, #ec4899 55%, #fb923c); }
.cm-cover-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cm-cover { display: flex; flex-direction: column; min-width: 0; padding: 10px; border-radius: 24px; background: var(--background-offwhite); color: var(--dark-text); transition: transform .18s, box-shadow .18s; }
.cm-cover:hover { color: var(--dark-text); transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20, 17, 43, .14); }
.cm-cover-pic { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #fda343, #ff5884); }
.cm-cover-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.cm-cover:hover .cm-cover-pic img { transform: scale(1.05); }
.cm-cover-letter { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 56px; color: #fff; }
.cm-cover-type { position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .2px; color: #fff; background: rgba(20, 17, 43, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cm-cover-type--code { background: rgba(124, 58, 237, .88); }
.cm-cover-body { display: flex; flex-direction: column; flex: 1; padding: 12px 6px 6px; min-width: 0; }
.cm-cover-name { font-weight: 700; font-size: 15px; line-height: 20px; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-cover-meta { font-size: 12px; line-height: 18px; color: var(--dark-gray); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-cover-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.cm-cover-price { font-size: 13px; color: var(--dark-gray); }
.cm-cover-price strong { font-size: 16px; color: var(--dark-text); }
.cm-cover-go { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--white); color: var(--dark-text); transition: background .18s, color .18s; }
.cm-cover:hover .cm-cover-go { background: var(--cm-grad); color: #fff; }
.cm-cover.is-off .cm-cover-pic { filter: grayscale(1); opacity: .6; }
@media (max-width: 1199px) {
 .cm-cover-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
 .cm-cover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 575px) {
 .cm-cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .cm-cover { padding: 8px; border-radius: 20px; }
 .cm-cover-pic { border-radius: 14px; }
 .cm-cover-body { padding: 10px 4px 4px; }
 .cm-cover-cat { display: none; }
}
