/* OAKONE customer reviews: PS5 Pro page only (midnight theme). Loaded only by /ps5-pro/. */

/* review colors: dark (PS5 Pro, midnight page) by default; .rv--light / .rv-sum--light for the light product pages (AirPods Pro 3) */
.rv, .rv-sum {
  --rv-ink: #F4F6F8; --rv-ink-strong: #FFFFFF; --rv-ink-2: #E6E8EA; --rv-text: var(--mx-text); --rv-soft: var(--mx-soft);
  --rv-line: var(--mx-line); --rv-line-strong: var(--mx-line-strong); --rv-bg: var(--mx-bg-2);
  --rv-off: rgba(230, 232, 234, 0.24); --rv-track: rgba(230, 232, 234, 0.12); --rv-dash: rgba(230, 232, 234, 0.4);
  --rv-panel: rgba(255, 255, 255, 0.025); --rv-field: rgba(11, 16, 25, 0.55); --rv-ph: rgba(195, 201, 210, 0.5); --rv-photo-bg: #0E1420;
  --rv-focus: var(--silver); --rv-err-soft: #F5A9A9; --rv-err-line: #E58A8A; --rv-err-border: rgba(229, 138, 138, 0.45); --rv-err-bg: rgba(229, 138, 138, 0.08); --rv-err-fg: #F7C1C1;
}
.rv--light, .rv-sum--light {
  --rv-ink: var(--black); --rv-ink-strong: var(--black); --rv-ink-2: var(--graphite); --rv-text: var(--graphite); --rv-soft: var(--muted);
  --rv-line: var(--line); --rv-line-strong: var(--line-strong); --rv-bg: var(--white);
  --rv-off: rgba(37, 40, 43, 0.18); --rv-track: rgba(37, 40, 43, 0.1); --rv-dash: rgba(37, 40, 43, 0.35);
  --rv-panel: #F7F7F8; --rv-field: #FFFFFF; --rv-ph: rgba(94, 99, 106, 0.6); --rv-photo-bg: var(--silver);
  --rv-focus: var(--black); --rv-err-soft: #B3261E; --rv-err-line: #C4312A; --rv-err-border: rgba(196, 49, 42, 0.35); --rv-err-bg: #FDF0EF; --rv-err-fg: #8C1D18;
}
.buy .rv-sum { margin: 0 0 12px; }

/* stars: an outline row with a filled row clipped to the rating on top */
.rv-stars { position: relative; display: inline-flex; flex: none; line-height: 0; vertical-align: middle; }
.rv-stars__bg, .rv-stars__fg { display: inline-flex; gap: 2px; }
.rv-stars__bg { color: var(--rv-off); }
.rv-stars__fg { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; color: var(--rv-ink); width: calc(var(--rv, 0) / 5 * 100%); }
.rv-stars svg { width: var(--rv-s, 15px); height: var(--rv-s, 15px); fill: currentColor; flex: none; }

/* rating line under the product name */
main a.rv-sum, .page-midnight main a.rv-sum { display: inline-flex; align-items: center; gap: 9px; margin: 10px 0 0; min-height: 24px; font-size: 14px; color: var(--rv-text); text-decoration: none; }
.rv-sum:not(.is-ready) { visibility: hidden; }
.rv-sum b { font-weight: 600; color: var(--rv-ink); font-variant-numeric: tabular-nums; }
.rv-sum__t { text-decoration: underline; text-decoration-color: var(--rv-line-strong); text-underline-offset: 0.3em; transition: text-decoration-color 200ms; }
.rv-sum:hover .rv-sum__t { text-decoration-color: var(--rv-soft); }
@media (max-width: 860px) { .page-ps5 .ps-hero .rv-sum { order: 2; align-self: flex-start; margin-top: 8px; } }

/* section */
.rv { background: var(--rv-bg); border-top: 1px solid var(--rv-line); border-bottom: 1px solid var(--rv-line); scroll-margin-top: var(--hdr); }
.rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(36px, 4vw, 64px); }
.rv-head .d-l { margin: 0; }
.rv-head .btn { flex: none; }
.rv-grid { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(40px, 6vw, 104px); align-items: start; }

/* overview */
.rv-over { border-top: 1px solid var(--rv-line-strong); padding-top: 28px; }
.rv-avg { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.rv-avg b { font-family: var(--display); font-weight: 200; font-size: clamp(56px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; color: var(--rv-ink-strong); font-variant-numeric: tabular-nums; }
.rv-avg span { font-size: 14px; color: var(--rv-soft); }
.rv-over .rv-stars { --rv-s: 20px; }
.rv-count { margin: 12px 0 0; font-size: 15px; color: var(--rv-text); }
.rv-dist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.rv-dist li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 30px; align-items: center; gap: 12px; font-size: 13px; color: var(--rv-soft); font-variant-numeric: tabular-nums; }
.rv-bar { height: 4px; border-radius: 4px; background: var(--rv-track); overflow: hidden; }
.rv-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--rv-ink-2); transition: width 700ms var(--ease); }
.rv-dist .rv-n { text-align: right; }
.rv--empty .rv-avg, .rv--empty .rv-dist { display: none; }
.rv-policy { margin: 26px 0 0; max-width: 30em; }

/* list */
.rv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rv-line-strong); }
.rv-list:empty { display: none; }
.rv-item { padding: 28px 0 30px; border-bottom: 1px solid var(--rv-line); }
.rv-item__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.rv-date { font-size: 13px; color: var(--rv-soft); }
.rv-item__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--rv-ink); }
.rv-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1px solid var(--rv-line-strong); border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0.01em; color: var(--rv-ink-2); }
.rv-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rv-text { margin: 10px 0 0; max-width: 46em; font-size: 16px; line-height: 1.6; color: var(--rv-text); white-space: pre-line; overflow-wrap: anywhere; }
.rv-ph { display: block; width: 112px; height: 112px; margin-top: 18px; padding: 0; overflow: hidden; border: 1px solid var(--rv-line-strong); border-radius: 10px; background: var(--rv-photo-bg); cursor: zoom-in; }
.rv-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-ph.is-open { width: auto; max-width: min(100%, 560px); height: auto; cursor: zoom-out; }
.rv-ph.is-open img { height: auto; max-height: 80vh; object-fit: contain; }
.rv-ph:focus-visible { outline: 2px solid var(--rv-focus); outline-offset: 2px; }
.rv-empty { margin: 0; padding: 28px 0 0; border-top: 1px solid var(--rv-line-strong); font-size: 17px; line-height: 1.55; color: var(--rv-text); }
.rv-more { margin-top: 28px; }

/* write a review */
.rv-form, .rv-done { margin: 0 0 40px; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--rv-line-strong); border-radius: 16px; background: var(--rv-panel); scroll-margin-top: calc(var(--hdr) + 16px); }
.rv-form[hidden], .rv-done[hidden] { display: none; }
.rv-form__h, .rv-done__h { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.02em; color: var(--rv-ink); outline: none; }
.rv-form__sub, .rv-done p { margin: 8px 0 0; font-size: 14.5px; color: var(--rv-soft); }
.rv-done p { font-size: 16px; color: var(--rv-text); max-width: 36em; }
.rv-done:focus { outline: none; }
.rv-form fieldset { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.rv-form legend, .rv-lbl, .rv-field > label { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; padding: 0; font-size: 14px; font-weight: 500; color: var(--rv-ink); }
.rv-opt { font-weight: 400; font-size: 13px; color: var(--rv-soft); }
.rv-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.rv-rate__stars { display: inline-flex; gap: 2px; margin-left: -6px; }
.rv-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rv-rate__stars label { display: block; padding: 6px; line-height: 0; border-radius: 8px; color: var(--rv-off); cursor: pointer; transition: color 140ms, transform 140ms var(--ease); }
.rv-rate__stars svg { width: 32px; height: 32px; fill: currentColor; }
.rv-rate__stars[data-v="1"] label:nth-of-type(-n+1), .rv-rate__stars[data-v="2"] label:nth-of-type(-n+2), .rv-rate__stars[data-v="3"] label:nth-of-type(-n+3),
.rv-rate__stars[data-v="4"] label:nth-of-type(-n+4), .rv-rate__stars[data-v="5"] label:nth-of-type(-n+5) { color: var(--rv-ink); }
@media (hover: hover) {
  .rv-rate__stars:hover label { color: var(--rv-ink); }
  .rv-rate__stars label:hover ~ label { color: var(--rv-off); }
  .rv-rate__stars label:hover { transform: scale(1.08); }
}
.rv-rate__stars input:focus-visible + label { outline: 2px solid var(--rv-focus); outline-offset: 0; }
.rv-rate__txt { font-size: 14px; color: var(--rv-soft); }
.rv-rate[aria-invalid="true"] .rv-rate__txt { color: var(--rv-err-soft); }
.rv-field { margin-top: 24px; }
.rv-field input[type="text"], .rv-field input[type="email"], .rv-field textarea {
  display: block; width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--rv-line-strong); border-radius: 10px;
  background: var(--rv-field); color: var(--rv-ink); font: inherit; font-size: 16px; line-height: 1.5; transition: border-color 200ms, box-shadow 200ms;
}
.rv-field textarea { min-height: 150px; resize: vertical; }
.rv-field ::placeholder { color: var(--rv-ph); }
.rv-field input:focus, .rv-field textarea:focus { outline: none; border-color: var(--rv-ink-2); box-shadow: 0 0 0 1px var(--rv-ink-2); }
.rv-field [aria-invalid="true"] { border-color: var(--rv-err-line); }
.rv-hint { display: flex; justify-content: space-between; gap: 16px; margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--rv-soft); }
.rv-hint span:last-child { flex: none; font-variant-numeric: tabular-nums; }
.rv-file { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px dashed var(--rv-dash); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--rv-ink); cursor: pointer; transition: border-color 200ms; }
.rv-file:hover { border-color: var(--rv-ink-2); }
.rv-file:focus-within { outline: 2px solid var(--rv-focus); outline-offset: 2px; }
.rv-file input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rv-file svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rv-file[hidden], .rv-prev[hidden] { display: none; }
.rv-prev { display: flex; align-items: center; gap: 16px; }
.rv-prev img { width: 88px; height: 88px; object-fit: cover; border: 1px solid var(--rv-line-strong); border-radius: 10px; }
.rv-x { padding: 8px 0; border: 0; background: none; font-size: 14px; color: var(--rv-ink-2); text-decoration: underline; text-underline-offset: 0.3em; cursor: pointer; }
.rv-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rv-err { margin: 22px 0 0; padding: 12px 16px; border: 1px solid var(--rv-err-border); border-radius: 10px; background: var(--rv-err-bg); font-size: 14.5px; color: var(--rv-err-fg); }
.rv-err:empty { display: none; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rv-form .fine { margin: 16px 0 0; }

@media (max-width: 860px) {
  .rv-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .rv-over { max-width: 460px; }
}
@media (max-width: 600px) {
  .rv-head .btn { width: 100%; }
  .rv-actions .btn { flex: 1 1 100%; }
  .rv-rate__stars svg { width: 36px; height: 36px; }
  .rv-item { padding: 24px 0 26px; }
}

/* stock line under the price (PS5 Pro page) */
.ps-stock { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; min-height: 22px; font-size: 15px; font-weight: 500; color: #F4F6F8; }
.ps-stock:not(.is-ready) { visibility: hidden; }
.ps-stock__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #F5B14C; box-shadow: 0 0 0 4px rgba(245, 177, 76, 0.18); }
.ps-stock.is-out { color: var(--mx-soft); }
.ps-stock.is-out .ps-stock__dot { background: var(--mx-soft); box-shadow: none; }
.ps-stock.is-in .ps-stock__dot { background: #5BD38A; box-shadow: 0 0 0 4px rgba(91, 211, 138, 0.18); }
/* Sold out: "Email me when it's back" */
.ps-wait { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; max-width: 460px; }
.ps-wait[hidden] { display: none; }
.ps-wait__l { flex: 1 0 100%; margin: 0; font-size: 14px; color: var(--mx-text, #C9D3E8); }
.ps-wait input[type=email] { flex: 1 1 220px; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #F4F6F8; font: inherit; font-size: 15px; }
.ps-wait button { height: 42px; padding: 0 16px; border-radius: 10px; border: 0; background: #F4F6F8; color: #0B0D12; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ps-wait .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ps-wait__ok { flex: 1 0 100%; margin: 0; font-size: 14px; color: #5BD38A; }
.page-midnight [data-buy][aria-disabled="true"], .page-midnight [data-add]:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 860px) { .page-ps5 .ps-hero .ps-stock { order: 5; margin-top: 10px; } }

/* edition picker (PS5 Pro page): Digital Edition or the recommended Disc + Dual Controller Bundle.
   Both editions' wording sits in the page; only the selected one shows. */
html:not([data-edition="digital"]) .ed-d, html[data-edition="digital"] .ed-b { display: none !important; }
.page-midnight .packs.ps-ed { margin-top: 22px; gap: 18px; }
.ps-ed .pack { grid-template-columns: 22px minmax(0, 1fr) auto; align-items: start; row-gap: 6px; padding: 18px 20px 16px; }
.ps-ed .pack__radio { margin-top: 1px; }
.ps-ed .pack__t { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.ps-ed .pack__p { font-size: 20px; line-height: 1.1; }
.ps-ed__f { grid-column: 2 / -1; display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.5; color: var(--mx-text); }
.ps-ed__f li:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--mx-soft); }
.page-midnight .pack.ps-ed__card--rec { border-color: rgba(120, 160, 255, 0.6); background: linear-gradient(100deg, rgba(47, 111, 255, 0.18), rgba(47, 111, 255, 0.05)); }
.page-midnight .pack.ps-ed__card--rec:hover { border-color: rgba(150, 180, 255, 0.85); }
.page-midnight .pack.ps-ed__card--rec:has(input:checked) { border-color: #9DB8FF; box-shadow: 0 0 0 1px #9DB8FF, 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 32px rgba(47, 111, 255, 0.22); }
.ps-ed__badge { position: absolute; top: 0; left: 18px; transform: translateY(-50%); padding: 4px 10px 3px; border-radius: 999px; background: #2F6FFF; color: #FFFFFF; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; line-height: 1.2; text-transform: uppercase; box-shadow: 0 0 16px rgba(47, 111, 255, 0.55); }
.ps-ed .pack:has(input:focus-visible) { outline: 2px solid var(--silver); outline-offset: 3px; }
@media (max-width: 860px) { .page-ps5 .ps-hero .ps-ed { order: 4; margin-top: 18px; } }
@media (max-width: 480px) {
  .ps-ed .pack { padding: 16px 16px 14px; column-gap: 12px; }
  .ps-ed .pack__t { font-size: 15px; }
  .ps-ed .pack__p { font-size: 18px; }
  .ps-ed__f { flex-direction: column; font-size: 13px; }
  .ps-ed__f li:not(:last-child)::after { content: none; }
}
/* desktop: the edition cards make the buy column taller, so the photo sits at the top beside the headline instead of drifting down */
@media (min-width: 861px) { .page-ps5 .ps-hero .mx-hero__visual { align-self: start; } }

/* PS5 Pro buy box: payment, ship-or-refund promise, who the seller is */
.ps-trust { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.ps-trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--mx-text, #C9D3E8); }
.ps-trust svg { width: 20px; height: 20px; flex: none; margin-top: 1px; stroke: #DDE6FF; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ps-trust b { color: #FFFFFF; font-weight: 600; }
.ps-trust a { color: #FFFFFF; text-underline-offset: 3px; }
@media (max-width: 860px) { .page-ps5 .ps-hero .ps-trust { order: 8; margin-top: 18px; } }
