/* Phase 3: magazine product page and order dialog. Everything is scoped to .product-v2.mag-product so other pages are not affected.
   Markup, data attributes and ids stay as they are, because product.js depends on them. */

.product-v2.mag-product { background: var(--mag-paper); color: var(--mag-ink); font-family: 'IBM Plex Sans Arabic', 'Noto Sans Arabic', system-ui, sans-serif; }
.product-v2.mag-product a { color: inherit; }
.product-v2.mag-product a:focus-visible, .product-v2.mag-product button:focus-visible, .product-v2.mag-product input:focus-visible, .product-v2.mag-product summary:focus-visible { outline: 3px solid var(--mag-yellow); outline-offset: 3px; }

/* Layout: purchase column and photo side by side on desktop */
.product-v2.mag-product .product-v4 { max-width: 1280px; margin: 0 auto; padding: 34px 28px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
.product-v2.mag-product .product-v4-topmeta { grid-column: 1 / -1; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--mag-ink); margin-bottom: 30px; }
.product-v2.mag-product .product-v4-visual { grid-row: 2; min-width: 0; }
.product-v2.mag-product .product-v4-purchase { grid-row: 2; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.product-v2.mag-product .breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--mag-muted); }
.product-v2.mag-product .product-v2-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.product-v2.mag-product .product-v2-badges span { border: 1.5px solid var(--mag-ink); padding: 2px 10px; font-size: 13px; font-weight: 700; background: transparent; color: var(--mag-ink); }

/* Photo: keep the real image ratio, hard shadow, no crop */
.product-v2.mag-product .product-gallery { background: var(--mag-black); box-shadow: 12px 12px 0 var(--mag-ink); }
.product-v2.mag-product .product-gallery img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }

/* Title and price */
.product-v2.mag-product .product-v4-purchase h1 { margin: 0; font-family: 'Alexandria', 'Noto Sans Arabic', sans-serif; font-weight: 900; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.3; }
.product-v2.mag-product.is-latin-title .product-v4-purchase h1 { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: clamp(50px, 6vw, 88px); line-height: .9; text-transform: uppercase; overflow-wrap: anywhere; }
.product-v2.mag-product .product-flash-badge { align-self: flex-start; background: var(--mag-yellow); color: var(--mag-black); border: 2px solid var(--mag-black); font-weight: 800; font-size: 14px; padding: 4px 12px; }
.product-v2.mag-product .product-v2-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.product-v2.mag-product #product-price { font-family: 'Alexandria', sans-serif; font-weight: 900; font-size: 34px; line-height: 1.2; }
.product-v2.mag-product .product-v2-price del { color: var(--mag-muted); font-size: 18px; }
.product-v2.mag-product .product-v2-price b { display: inline-block; background: var(--mag-red); color: #fff; border: 2px solid var(--mag-black); box-shadow: 3px 3px 0 var(--mag-black); transform: rotate(-4deg); font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 24px; line-height: 1; padding: 4px 10px; }
.product-v2.mag-product .product-availability { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; color: #0E6B34; }
.product-v2.mag-product .product-availability > span:first-child { width: 10px; height: 10px; border-radius: 50%; background: #18A34A; flex: none; }

.product-v2.mag-product .product-discount-expiry { border: 2px solid var(--mag-ink); background: var(--mag-yellow); padding: 12px 16px; box-shadow: 5px 5px 0 var(--mag-ink); }
.product-v2.mag-product .product-discount-expiry strong { font-size: 16px; }
.product-v2.mag-product .product-discount-expiry p { margin: 6px 0 0; font-size: 14px; line-height: 1.7; }
.product-v2.mag-product .product-discount-expiry.is-urgent { background: var(--mag-red); color: #fff; }

/* Variants: a rate-card list, same inputs and names */
.product-v2.mag-product fieldset.variants { margin: 0; padding: 0; min-width: 0; border: 3px solid var(--mag-ink); background: var(--mag-card); }
.product-v2.mag-product fieldset.variants legend { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; background: var(--mag-ink); color: var(--mag-paper); font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 18px; }
.product-v2.mag-product fieldset.variants legend span { font-family: 'IBM Plex Sans Arabic', sans-serif; font-size: 13px; font-weight: 600; color: var(--mag-yellow); }
.product-v2.mag-product fieldset.variants label { position: relative; display: block; border-bottom: 1px solid var(--mag-rule); cursor: pointer; }
.product-v2.mag-product fieldset.variants label:last-child { border-bottom: 0; }
.product-v2.mag-product fieldset.variants label input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.product-v2.mag-product fieldset.variants label > span { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px; }
.product-v2.mag-product fieldset.variants label:has(input:checked) > span { background: var(--mag-yellow); }
.product-v2.mag-product fieldset.variants label:has(input:focus-visible) > span { outline: 3px solid var(--mag-red); outline-offset: -3px; }
.product-v2.mag-product .variant-check { width: 22px; height: 22px; flex: none; border: 3px solid var(--mag-ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.product-v2.mag-product fieldset.variants label:has(input:checked) .variant-check { background: var(--mag-ink); color: var(--mag-yellow); }
.product-v2.mag-product fieldset.variants b { flex: 1; min-width: 0; font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 17px; line-height: 1.4; }
.product-v2.mag-product fieldset.variants small { font-weight: 800; font-size: 18px; white-space: nowrap; }

/* Quick facts: yellow fact card like the design */
.product-v2.mag-product .product-quick-facts { display: grid; border: 2px solid var(--mag-ink); background: var(--mag-yellow); }
.product-v2.mag-product .quick-fact { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 16px; border-bottom: 1px solid rgba(20, 18, 16, .3); }
.product-v2.mag-product .quick-fact:last-child { border-bottom: 0; }
.product-v2.mag-product .quick-fact > span { font-size: 15px; font-weight: 600; }
.product-v2.mag-product .quick-fact > strong { font-size: 16px; font-weight: 700; text-align: left; }

/* Order actions */
.product-v2.mag-product .product-v2-order { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.product-v2.mag-product .order-trigger { min-height: 56px; padding: 0 34px; border: 0; background: var(--mag-red); color: #fff; font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 18px; box-shadow: 6px 6px 0 var(--mag-black); cursor: pointer; }
.product-v2.mag-product .order-trigger:hover { background: var(--mag-deep-red); }
.product-v2.mag-product .order-trigger:disabled, .product-v2.mag-product .product-v2-order > .button:disabled { background: var(--mag-muted); box-shadow: none; cursor: not-allowed; }
.product-v2.mag-product .product-share { min-height: 56px; padding: 0 22px; background: transparent; border: 2px solid var(--mag-ink); color: var(--mag-ink); font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 16px; cursor: pointer; }
.product-v2.mag-product .product-v2-order > p { flex-basis: 100%; margin: 0; font-size: 15px; line-height: 1.7; color: var(--mag-muted-2); }
.product-v2.mag-product .trust-purchase-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; border-bottom: 2px solid var(--mag-ink); }
.product-v2.mag-product [data-share-status] { flex-basis: 100%; color: var(--mag-muted-2); }

/* Lower modules: numbered sections in red */
.product-v2.mag-product .product-v3-lower { max-width: 1280px; margin: 0 auto; padding: 44px 28px 0; }
.product-v2.mag-product .product-reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.product-v2.mag-product .product-v3-module { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.product-v2.mag-product .module-wide { grid-column: 1 / -1; }
.product-v2.mag-product .module-heading { display: flex; align-items: flex-end; gap: 14px; border-bottom: 3px solid var(--mag-ink); padding-bottom: 8px; }
.product-v2.mag-product .module-heading > span { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 56px; line-height: .8; color: var(--mag-red); }
.product-v2.mag-product .module-heading h2 { margin: 0; font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 28px; line-height: 1.3; }
.product-v2.mag-product .product-v3-module > p { margin: 0; font-size: 17px; line-height: 1.9; }
.product-v2.mag-product .cp-pack-game-list { border: 2px solid var(--mag-ink); background: var(--mag-card); padding: 16px 18px; }
.product-v2.mag-product .cp-pack-game-list h3 { margin: 0 0 8px; font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 18px; }
.product-v2.mag-product .cp-pack-game-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }

.product-v2.mag-product .product-support-stack { display: grid; gap: 12px; margin-top: 40px; }
.product-v2.mag-product .product-secondary-details { border: 2px solid var(--mag-ink); background: var(--mag-card); }
.product-v2.mag-product .product-secondary-details > summary { min-height: 52px; display: flex; align-items: center; padding: 12px 18px; font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 18px; cursor: pointer; list-style-position: inside; }
.product-v2.mag-product .product-secondary-details > p { margin: 0; padding: 0 18px 16px; font-size: 16px; line-height: 1.8; }
.product-v2.mag-product .product-secondary-details dl { margin: 0; padding: 0 18px 12px; }
.product-v2.mag-product .product-secondary-details dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid rgba(20, 18, 16, .25); }
.product-v2.mag-product .product-secondary-details dt { font-weight: 600; color: var(--mag-muted-2); }
.product-v2.mag-product .product-secondary-details dd { margin: 0; font-weight: 700; text-align: left; }
.product-v2.mag-product .module-warranty .warranty-label { font-size: 18px; font-weight: 800; }

.product-v2.mag-product .product-policy-links { max-width: 1280px; margin: 28px auto 0; padding: 0 28px; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.product-v2.mag-product .product-policy-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Order dialog: coupon header bar, order slip, hard yellow shadow */
.product-v2.mag-product .order-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0 0 26px; margin: auto; border: 0; background: var(--mag-paper); color: var(--mag-ink); box-shadow: 14px 14px 0 var(--mag-yellow); overflow: auto; }
.product-v2.mag-product .order-dialog::backdrop { background: rgba(20, 18, 16, .74); }
.product-v2.mag-product .order-dialog > form { margin: 0; display: flex; justify-content: flex-end; align-items: center; min-height: 58px; padding: 7px 12px; background: var(--mag-ink); position: sticky; top: 0; }
.product-v2.mag-product .order-dialog .dialog-close { width: 44px; height: 44px; border: 2px solid var(--mag-paper); background: transparent; color: var(--mag-paper); font-size: 24px; line-height: 1; cursor: pointer; }
.product-v2.mag-product .order-dialog > :not(form) { margin-left: 26px; margin-right: 26px; }
.product-v2.mag-product .order-dialog > .eyebrow { display: block; margin-top: 22px; font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 16px; color: var(--mag-red); }
.product-v2.mag-product .order-dialog h2 { margin: 4px 0 0; font-family: 'Alexandria', sans-serif; font-weight: 900; font-size: 30px; line-height: 1.25; }
.product-v2.mag-product .order-dialog > p { margin: 10px 26px 0; font-size: 15px; line-height: 1.8; color: var(--mag-muted-2); }
.product-v2.mag-product .order-summary-preview { margin-top: 18px; border: 2px solid var(--mag-ink); background: var(--mag-card); display: grid; }
.product-v2.mag-product .order-summary-preview > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 14px; border-bottom: 1px dashed var(--mag-ink); }
.product-v2.mag-product .order-summary-preview > div:last-child { border-bottom: 0; }
.product-v2.mag-product .order-summary-preview > div > span { font-size: 14px; font-weight: 700; color: var(--mag-muted); flex: none; }
.product-v2.mag-product .order-summary-preview strong { font-size: 16px; font-weight: 800; text-align: left; overflow-wrap: anywhere; }
.product-v2.mag-product .order-summary-preview [data-order-summary-price] { font-size: 22px; font-weight: 900; }
.product-v2.mag-product .channel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.product-v2.mag-product .channel-list button { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; border: 2px solid var(--mag-ink); background: var(--mag-ink); color: var(--mag-paper); font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 16px; cursor: pointer; }
.product-v2.mag-product .channel-list button:hover { background: var(--mag-red); border-color: var(--mag-red); }
.product-v2.mag-product .copy-details { margin-top: 12px; width: 100%; min-height: 52px; border: 2px solid var(--mag-ink); background: var(--mag-yellow); color: var(--mag-ink); font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 4px 4px 0 var(--mag-ink); }
.product-v2.mag-product .copy-status { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--mag-muted-2); min-height: 1em; }
.product-v2.mag-product .copy-fallback { margin-top: 10px; }
.product-v2.mag-product .copy-fallback label { display: block; font-weight: 700; margin-bottom: 6px; }
.product-v2.mag-product .copy-fallback textarea { width: 100%; min-height: 120px; border: 2px solid var(--mag-ink); background: var(--mag-card); font-family: inherit; font-size: 14px; padding: 10px; direction: rtl; }

/* Phone sticky order bar */
.product-v2.mag-product .mobile-order-bar { background: var(--mag-paper); border-top: 3px solid var(--mag-ink); }
.product-v2.mag-product .mobile-order-bar small { font-weight: 700; color: var(--mag-muted); }
.product-v2.mag-product .mobile-order-bar [data-sticky-price] { font-family: 'Alexandria', sans-serif; font-weight: 900; font-size: 20px; }
/* Phone sticky bar: price and button share the row; the price text can no longer run under the button */
.product-v2.mag-product .mobile-order-bar > div:first-child { flex: 1 1 0; min-width: 0; }
.product-v2.mag-product .mobile-order-bar > div:first-child strong { font-size: 18px; white-space: nowrap; }
.product-v2.mag-product .mobile-order-bar .order-trigger { flex: 0 0 46%; width: 46%; min-width: 0; white-space: normal; line-height: 1.25; }

/* Tablet 760–1023 */
@media (max-width: 1023px) {
  .product-v2.mag-product .product-v4 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .product-v2.mag-product .product-v4-visual { grid-row: 2; max-width: 620px; }
  .product-v2.mag-product .product-v4-purchase { grid-row: 3; margin-top: 30px; }
  .product-v2.mag-product .product-reading-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* Phone ≤759 */
@media (max-width: 759px) {
  .product-v2.mag-product .product-v4 { padding: 18px 16px 0; }
  .product-v2.mag-product .product-v4-topmeta { margin-bottom: 20px; }
  .product-v2.mag-product .product-gallery { box-shadow: 8px 8px 0 var(--mag-ink); }
  .product-v2.mag-product.is-latin-title .product-v4-purchase h1 { font-size: clamp(44px, 14vw, 64px); }
  .product-v2.mag-product #product-price { font-size: 28px; }
  .product-v2.mag-product .order-trigger { flex: 1 1 100%; }
  .product-v2.mag-product .product-share { flex: 1 1 100%; }
  .product-v2.mag-product .product-v3-lower { padding: 30px 16px 0; }
  .product-v2.mag-product .module-heading > span { font-size: 44px; }
  .product-v2.mag-product .module-heading h2 { font-size: 24px; }
  .product-v2.mag-product .product-policy-links { padding: 0 16px; }
  .product-v2.mag-product .order-dialog { width: calc(100% - 24px); box-shadow: 8px 8px 0 var(--mag-yellow); }
  .product-v2.mag-product .order-dialog > :not(form) { margin-left: 18px; margin-right: 18px; }
  .product-v2.mag-product .order-dialog > p { margin-left: 18px; margin-right: 18px; }
  .product-v2.mag-product .channel-list { grid-template-columns: 1fr; }
  .product-v2.mag-product .order-dialog h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-v2.mag-product * { transition: none !important; animation: none !important; }
}

/* Legacy product modules use dark gradients; the magazine page uses paper and ink. */
.product-v2.mag-product { background: var(--mag-paper); color: var(--mag-ink); }
.product-v2.mag-product h1, .product-v2.mag-product h2, .product-v2.mag-product h3 { color: var(--mag-ink); }
.product-v2.mag-product .product-v3-module,
.product-v2.mag-product .product-secondary-details,
.product-v2.mag-product .cp-pack-game-list,
.product-v2.mag-product .product-core-facts { background: var(--mag-card); border: 2px solid var(--mag-ink); color: var(--mag-ink); box-shadow: none; }
.product-v2.mag-product .product-v3-module > p, .product-v2.mag-product .product-secondary-details > p, .product-v2.mag-product .product-secondary-details dd, .product-v2.mag-product .product-secondary-details dt { color: var(--mag-muted-2); }
.product-v2.mag-product .product-secondary-details dd { color: var(--mag-ink); }
.product-v2.mag-product .order-dialog { background: var(--mag-paper); color: var(--mag-ink); border: 0; }
.product-v2.mag-product .order-dialog h2 { color: var(--mag-ink); }
.product-v2.mag-product .order-dialog > p { color: var(--mag-muted-2); }
.product-v2.mag-product .order-summary-preview { background: var(--mag-card); }
.product-v2.mag-product .order-summary-preview > div > span { color: var(--mag-muted); }
.product-v2.mag-product .order-dialog::backdrop { background: rgba(20, 18, 16, .74); backdrop-filter: none; }
.product-v2.mag-product .product-quick-facts { background: var(--mag-yellow); }
.product-v2.mag-product .quick-fact > span, .product-v2.mag-product .quick-fact > strong { color: var(--mag-ink); }
.product-v2.mag-product .product-policy-links a { color: var(--mag-ink); }
.product-v2.mag-product .product-v2-order > p { color: var(--mag-muted-2); }
.product-v2.mag-product .order-summary-preview strong, .product-v2.mag-product .order-summary-preview span { color: var(--mag-ink); }
.product-v2.mag-product .order-summary-preview > div > span { color: var(--mag-muted); }
.product-v2.mag-product fieldset.variants legend { color: var(--mag-paper); background: var(--mag-ink); }
.product-v2.mag-product fieldset.variants label > span, .product-v2.mag-product fieldset.variants b, .product-v2.mag-product fieldset.variants small { color: var(--mag-ink); background: transparent; }
.product-v2.mag-product fieldset.variants label:has(input:checked) > span { background: var(--mag-yellow); }
.product-v2.mag-product .product-discount-expiry, .product-v2.mag-product .product-discount-expiry * { color: var(--mag-ink); }
.product-v2.mag-product .product-discount-expiry.is-urgent, .product-v2.mag-product .product-discount-expiry.is-urgent * { color: #fff; }

/* ===== Phase 3 review pass: legacy overrides on the product page (paper, ink, square, hard shadows) ===== */

/* Content width: one column, same edges for the purchase block, lower modules, library strip and policy links */
.product-v2.mag-product .container { width: min(calc(100% - 56px), 1280px) !important; max-width: none; margin-inline: auto !important; padding-inline: 0 !important; }
.product-v2.mag-product .product-v4 { padding: 34px 0 0 !important; }
.page-product .related-products, .page-product .contextual-faq { width: min(calc(100% - 56px), 1280px); max-width: none; margin-inline: auto !important; }

/* Square corners everywhere on the product page (the variant dot stays round) */
.product-v2.mag-product *, .page-product .contextual-faq *, .page-product .related-products * { border-radius: 0 !important; }
.product-v2.mag-product .variant-check { border-radius: 50% !important; }

/* Readable text: ink and muted ink, never light text on paper */
.product-v2.mag-product .product-v4-purchase h1 { color: #141210; }
.product-v2.mag-product #product-price { color: #141210; }
.product-v2.mag-product .product-v2-price b { color: #fff; background: var(--mag-red); }
.product-v2.mag-product .product-v2-price del { color: var(--mag-muted) !important; }
.product-v2.mag-product .product-v2-badges span, .product-v2.mag-product .breadcrumb, .product-v2.mag-product .breadcrumb a { color: var(--mag-ink); background: transparent; }
.product-v2.mag-product .product-v2-order > p, .product-v2.mag-product [data-share-status] { color: var(--mag-muted-2); }
.product-v2.mag-product .trust-purchase-link { color: var(--mag-ink) !important; min-height: 44px !important; display: inline-flex; align-items: center; border-bottom: 2px solid var(--mag-ink); }

/* Image: square frame, hard black shadow, real ratio, no letterboxing */
.product-v2.mag-product .product-gallery { background: var(--mag-card) !important; border: 0; padding: 0 !important; box-shadow: 12px 12px 0 var(--mag-ink); }
.product-v2.mag-product .product-gallery img { width: 100% !important; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; display: block; }

/* Order block: solid, no grey gradient panel */
.product-v2.mag-product .product-v4-purchase, .product-v2.mag-product .product-v2-order { background: transparent; border: 0 !important; box-shadow: none; padding: 0; }
.product-v2.mag-product .order-trigger { background: var(--mag-red); color: #fff; min-height: 58px !important; box-shadow: 6px 6px 0 var(--mag-black); }
.product-v2.mag-product .product-share { background: transparent; color: var(--mag-ink) !important; border: 2px solid var(--mag-ink); min-height: 56px !important; }

/* Plan rows: rate-card look, selected row yellow, ink markers (no orange) */
.product-v2.mag-product fieldset.variants { background: var(--mag-card); border: 3px solid var(--mag-ink); }
.product-v2.mag-product fieldset.variants legend { background: var(--mag-ink); color: var(--mag-paper); }
.product-v2.mag-product fieldset.variants label > span { background: transparent; color: var(--mag-ink); }
.product-v2.mag-product fieldset.variants label:has(input:checked) > span { background: var(--mag-yellow) !important; }
.product-v2.mag-product .variant-check { background: transparent; color: var(--mag-ink); border: 3px solid var(--mag-ink); }
.product-v2.mag-product fieldset.variants label:has(input:checked) .variant-check { background: var(--mag-ink) !important; color: var(--mag-yellow) !important; }
.product-v2.mag-product fieldset.variants small { color: var(--mag-ink); }

/* Facts */
.product-v2.mag-product .product-quick-facts { background: var(--mag-yellow); border: 2px solid var(--mag-ink); }
.product-v2.mag-product .quick-fact { background: transparent; }
.product-v2.mag-product .quick-fact > span, .product-v2.mag-product .quick-fact > strong { color: var(--mag-ink); }

/* Lower modules: red numbers, no icon tiles, paper cards with ink rules */
.product-v2.mag-product .module-heading > span { background: transparent; border: 0; width: auto; height: auto; color: var(--mag-red); font-size: 56px; }
.product-v2.mag-product .module-heading h2, .product-v2.mag-product .product-v3-module h2 { color: var(--mag-ink); }
.product-v2.mag-product .product-v3-module, .product-v2.mag-product .product-secondary-details, .product-v2.mag-product .module-warranty, .product-v2.mag-product .cp-pack-game-list { background: var(--mag-card); border: 2px solid var(--mag-ink) !important; box-shadow: none; color: var(--mag-ink); }
.product-v2.mag-product .product-v3-module > p, .product-v2.mag-product .product-secondary-details > p, .product-v2.mag-product .product-secondary-details dt { color: var(--mag-muted-2); }
.product-v2.mag-product .product-secondary-details dd, .product-v2.mag-product .warranty-label, .product-v2.mag-product .module-warranty strong { color: var(--mag-ink); }
.product-v2.mag-product .product-secondary-details > summary, .product-v2.mag-product .product-secondary-details > summary * { color: var(--mag-ink); background: transparent; }
.product-v2.mag-product .product-secondary-details > summary::after, .product-v2.mag-product .product-secondary-details > summary::before { color: var(--mag-ink) !important; }
.product-v2.mag-product .module-warranty span, .product-v2.mag-product .module-warranty p { color: var(--mag-ink) !important; }
.product-v2.mag-product .module-warranty .warranty-label, .product-v2.mag-product .module-warranty strong { color: var(--mag-ink); }

/* Library strip: service colour, same width as the content column */
.product-v2.mag-product .product-catalog-module { display: grid; grid-template-columns: auto minmax(0, 1fr) auto !important; gap: 20px 26px !important; align-items: center; padding: 26px 28px !important; margin-top: 40px; background: #141210; color: #F3EFE6; border: 0 !important; box-shadow: none; }
.product-v2.mag-product .product-catalog-module.service-game-pass { background: #0E7A3C !important; }
.product-v2.mag-product .product-catalog-module.service-ps-plus { background: #1F4FD1 !important; }
.product-v2.mag-product .product-catalog-identity { background: transparent; color: #FFD23F; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 64px !important; line-height: .9; width: auto; height: auto; border: 0; }
.product-v2.mag-product .product-catalog-copy { display: grid; gap: 6px; min-width: 0; }
.product-v2.mag-product .product-catalog-copy > span { color: #F3EFE6; font-size: 14px; font-weight: 700; }
.product-v2.mag-product .product-catalog-copy h2 { color: #F3EFE6; font-family: 'Alexandria', sans-serif; font-weight: 800; font-size: 28px; line-height: 1.3; }
.product-v2.mag-product .product-catalog-copy strong { color: #FFD23F; font-size: 15px; }
.product-v2.mag-product .product-catalog-copy p { color: #E9E2D3; margin: 0; line-height: 1.7; }
.product-v2.mag-product .product-catalog-module > a.button { background: #FFD23F; color: #141210; border: 2px solid #141210; min-height: 52px; display: inline-flex; align-items: center; padding: 0 22px; font-weight: 800; box-shadow: 5px 5px 0 #0B0A09; }

/* Policy links */
.product-v2.mag-product .product-policy-links a { color: var(--mag-ink); }

/* FAQ (product page): paper and ink, not the dark theme */
.page-product .contextual-faq { padding-top: 40px; }
.page-product .contextual-faq .section-heading span { color: var(--mag-red); background: transparent; }
.page-product .contextual-faq h2 { color: var(--mag-ink); font-family: 'Alexandria', sans-serif; font-weight: 900; font-size: 34px !important; }
.page-product .contextual-faq details { background: var(--mag-card) !important; border: 2px solid var(--mag-ink) !important; color: var(--mag-ink); }
.page-product .contextual-faq summary { color: var(--mag-ink); background: transparent; }
.page-product .contextual-faq summary span { color: var(--mag-ink); background: transparent; border: 2px solid var(--mag-ink) !important; }
.page-product .contextual-faq details div, .page-product .contextual-faq details p { color: var(--mag-muted-2); background: transparent; }

/* Order dialog: fits its box, square, coupon bar, order slip, Messenger and Instagram as the main buttons */
.product-v2.mag-product .order-dialog { box-sizing: border-box; width: min(560px, calc(100% - 32px)) !important; max-width: calc(100% - 32px) !important; padding: 0 0 26px; margin: auto; border: 0; border-radius: 0; background: var(--mag-paper); color: var(--mag-ink); box-shadow: 14px 14px 0 var(--mag-yellow); overflow: hidden !important; }
.product-v2.mag-product .order-dialog::backdrop { background: rgba(20, 18, 16, .74) !important; }
.product-v2.mag-product .order-dialog > form { box-sizing: border-box; width: 100%; margin: 0; background: var(--mag-ink); border-radius: 0; }
.product-v2.mag-product .order-dialog > :not(form) { box-sizing: border-box; width: auto; max-width: none; margin-left: 26px; margin-right: 26px; }
.product-v2.mag-product .order-dialog > .eyebrow { margin-top: 22px; color: var(--mag-red); }
.product-v2.mag-product .order-dialog h2 { margin: 4px 0 0 !important; font-size: 30px; line-height: 1.3; color: var(--mag-ink); overflow-wrap: anywhere; }
.product-v2.mag-product .order-dialog > p { margin: 10px 26px 0; color: var(--mag-muted-2); }
.product-v2.mag-product .order-summary-preview { box-sizing: border-box; width: auto; margin-top: 18px; background: var(--mag-card); border: 2px solid var(--mag-ink); }
.product-v2.mag-product .order-summary-preview > div { box-sizing: border-box; }
.product-v2.mag-product .channel-list { box-sizing: border-box; width: auto; display: grid; grid-template-columns: 1fr 1fr !important; gap: 10px !important; margin-top: 16px; }
.product-v2.mag-product .channel-list button { box-sizing: border-box; min-width: 0; background: var(--mag-ink); color: var(--mag-paper); border: 2px solid var(--mag-ink); }
.product-v2.mag-product .copy-details { box-sizing: border-box; width: auto; margin-top: 12px; background: var(--mag-yellow); color: var(--mag-ink); border: 2px solid var(--mag-ink); box-shadow: 4px 4px 0 var(--mag-ink); }
.product-v2.mag-product .copy-status, .product-v2.mag-product .copy-fallback { margin-left: 26px; margin-right: 26px; }
.product-v2.mag-product .copy-fallback[hidden] { display: none; }
.product-v2.mag-product .copy-fallback textarea { box-sizing: border-box; width: 100%; }

@media (max-width: 759px) {
  .product-v2.mag-product .container { width: min(calc(100% - 32px), 1280px) !important; }
  .product-v2.mag-product .product-v4 { padding-top: 18px !important; }
  .page-product .related-products, .page-product .contextual-faq { width: min(calc(100% - 32px), 1280px); }
  .product-v2.mag-product .order-dialog { width: calc(100% - 24px) !important; max-width: calc(100% - 24px) !important; }
  .product-v2.mag-product .order-dialog > :not(form), .product-v2.mag-product .order-dialog > p, .product-v2.mag-product .copy-status, .product-v2.mag-product .copy-fallback { margin-left: 18px !important; margin-right: 18px !important; }
  .product-v2.mag-product .channel-list { grid-template-columns: 1fr !important; }
  .product-v2.mag-product .product-catalog-module { grid-template-columns: 1fr !important; padding: 22px 18px !important; }
  .product-v2.mag-product .product-catalog-identity { font-size: 44px !important; }
}

/* ===== Phase 3 leftovers ===== */
/* Dialog heading keeps the same side inset as the rest of the content */
.product-v2.mag-product .order-dialog h2 { margin: 4px 26px 0 !important; }
/* Section number 03 is red like 01 and 02 */
.product-v2.mag-product .module-warranty .module-heading > span { color: var(--mag-red) !important; }
/* Accordion: the + is a square marker at the far end, not stuck to the label */
.product-v2.mag-product .product-secondary-details > summary { justify-content: space-between; gap: 14px; }
.product-v2.mag-product .product-secondary-details > summary::after { content: "+" !important; order: 2; flex: none; width: 32px; height: 32px; margin-inline-start: auto !important; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--mag-ink); font-weight: 800; font-size: 20px; line-height: 1; color: var(--mag-ink) !important; }
.product-v2.mag-product .product-secondary-details[open] > summary::after { content: "−" !important; }
/* Disabled order button: outlined and dimmed, not pink */
.product-v2.mag-product .order-trigger:disabled { background: transparent !important; color: rgba(20, 18, 16, .5) !important; border: 2px dashed rgba(20, 18, 16, .45); box-shadow: none !important; cursor: not-allowed; }
/* Image frame: sized to the image, no paper bars */
.product-v2.mag-product .product-gallery { width: fit-content !important; max-width: 100% !important; height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; display: block !important; }
.product-v2.mag-product .product-gallery img { width: auto !important; max-width: 100% !important; height: auto !important; max-height: none !important; min-height: 0 !important; display: block !important; }
.product-v2.mag-product .product-v4-visual { height: auto !important; max-height: none !important; }
.product-v2.mag-product .product-gallery.media-loaded { max-height: none !important; overflow: visible !important; }

/* Tablet 760-1023: the gallery fills the column. It was capped at 620px and centred, leaving a blank strip on the left of the page. */
@media (min-width: 760px) and (max-width: 1023px) {
  .product-v2.mag-product .product-v4-visual { max-width: none; width: 100%; justify-self: stretch; }
  .product-v2.mag-product .product-gallery { width: 100% !important; max-width: 100% !important; }
}

/* Tablet and small desktop: delivery facts stack one per row in the purchase column instead of a cramped two-column grid. */
@media (min-width: 760px) and (max-width: 1279px) {
  .product-v2.mag-product .product-quick-facts { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Deal product page: countdown, notice, savings */
.deal-countdown { font-weight: 700; margin: 8px 0; }
.deal-countdown .deal-end-label { color: #555; font-weight: 400; font-size: 13px; }
.deal-notice { border: 2px solid var(--mag-ink, #141210); background: #FFF8E1; padding: 10px 12px; font-weight: 700; margin: 8px 0; }
.deal-notice.is-danger { background: #FDECEC; color: #B00020; border-color: #B00020; }

/* Round 1: sticky image falls back to normal flow when it would overrun the top section; highlighted options; placeholder tiles. */
.product-v4-visual.is-static, .product-v2 .product-v4-visual.is-static { position: relative !important; top: auto !important; }
.product-v4 .variants.is-highlighted, .product-v2 .variants.is-highlighted { outline: 3px solid var(--mag-ink, #141210); outline-offset: 4px; transition: outline-color .2s; }

/* Round 2: the magazine gallery never gets a top offset; the sticky wrapper (.product-v4-visual) controls position. */
.product-v2.mag-product .product-v4 .product-gallery { position: relative; top: auto !important; }
