/* CertStash design v2 (9 Nov 2026 audit). Every rule is scoped under body.cs-v2-<fix>; the class is added by
   mu-plugins/certstash-design-preview.php for preview users, or for everyone once the fix is in CS_V2_LIVE. */

/* ===== f6: /reviews/ shows all 24 cards per page on phones and tablets (the 3/4-card limit is for the homepage strip) ===== */
.cs-v2-f6 .cs-rv-page .cs-rv-grid .cs-rv-card.cs-rv-card { display: flex; }

/* ===== f7: homepage cards and vendor tiles without underlines; code underlines on hover only ===== */
.cs-v2-f7 .cs-card, .cs-v2-f7 .cs-card *, .cs-v2-f7 .cs-vendors a, .cs-v2-f7 .cs-vendors a * { text-decoration: none !important; }
@media (hover: hover) {
  .cs-v2-f7 .cs-card:hover .cs-card__code, .cs-v2-f7 .cs-vendors a:hover > span:first-child { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px; }
}
/* the six "Popular" chips sit on one line on laptops */
@media (min-width: 981px) {
  .cs-v2-f7 .cs-hero .cs-chips { flex-wrap: nowrap; gap: 6px; }
  .cs-v2-f7 .cs-hero .cs-chips a { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
}

/* ===== f3: Buy now as tall and bold as the PayPal button and the sticky bar; one-line offer bar on phones ===== */
.cs-v2-f3.single-product .summary .single_add_to_cart_button { min-height: 52px !important; height: 52px !important; font-size: 17px !important; font-weight: 700 !important; }
.cs-v2-f3 .cs-mp-short { display: none; }
@media (max-width: 600px) {
  .cs-v2-f3 .cs-mp-long { display: none; }
  .cs-v2-f3 .cs-mp-short { display: inline; white-space: nowrap; }
  .cs-v2-f3 .cs-mp-bar { padding: 6px 8px; }
  .cs-v2-f3 .cs-mp-bar__text { font-size: 12.5px; line-height: 1.9; }
}

/* ===== f1: 768 to 999 px product page in two columns (cover left, buy box right); 690 to 767 a capped centred cover ===== */
@media (min-width: 768px) and (max-width: 999.98px) {
  .cs-v2-f1.single-product .product-entry-wrapper { display: flex !important; align-items: flex-start; gap: 36px; }
  .cs-v2-f1.single-product .product-entry-wrapper > .woocommerce-product-gallery { flex: 0 0 min(40%, 340px); width: min(40%, 340px) !important; max-width: 340px !important; margin: 0 !important; }
  .cs-v2-f1.single-product .product-entry-wrapper > .summary { flex: 1 1 0; min-width: 0; width: auto !important; margin-top: 0 !important; }
  .cs-v2-f1.single-product .summary .product_title { font-size: 32px !important; }
}
@media (min-width: 690px) and (max-width: 767.98px) {
  .cs-v2-f1.single-product .woocommerce-product-gallery { width: 300px !important; max-width: 300px !important; margin: 0 auto 24px !important; }
}

/* ===== f2: review quote + guarantee box sit under the cover (copies made by cs-v2.js), so both columns end level ===== */
.cs-v2-under { display: none; }
.cs-v2-under .cs-guarantee-box { margin-top: 24px; }
.cs-v2-under .cs-rv-buy { margin: 16px 0 0; }
@media (min-width: 1000px) {
  .cs-v2-f2 .cs-v2-under { display: block; }
  .cs-v2-f2.single-product .summary .cs-guarantee-box, .cs-v2-f2.single-product .summary .cs-rv-buy { display: none !important; }
}
@media (min-width: 768px) and (max-width: 999.98px) {
  .cs-v2-f1.cs-v2-f2 .cs-v2-under { display: block; }
  .cs-v2-f1.cs-v2-f2.single-product .summary .cs-guarantee-box, .cs-v2-f1.cs-v2-f2.single-product .summary .cs-rv-buy { display: none !important; }
  .cs-v2-f1.cs-v2-f2 .cs-v2-under .cs-guarantee-box { flex-direction: column; align-items: flex-start; }
}

/* ===== f5: shop: slim title band, search + vendor chips, cards lead with the code ===== */
.cs-v2-f5.woocommerce-shop .hero-section [class*="ct-container"] { min-height: 0 !important; padding-block: 30px !important; }
.cs-v2-f5.woocommerce-shop .hero-section { min-height: 0 !important; }
.cs-v2-f5.woocommerce-shop .site-main > .ct-container[data-vertical-spacing] { padding-top: 28px !important; }
.cs-v2-shoptools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0 0 26px; }
.cs-v2-shoptools .cs-search { flex: 1 1 420px; max-width: 560px; }
.cs-v2-shoptools .cs-chips a { font-family: var(--cs-body); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; text-decoration: none; }
.cs-v2-f5 [data-products] .product .entry-meta { display: none !important; }
.cs-v2-f5 [data-products] .woocommerce-loop-product__title { font-family: var(--cs-mono) !important; font-weight: 600 !important; letter-spacing: -.2px; }
.cs-v2-cardname { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: -2px 0 8px; font-size: 14px; line-height: 1.4; color: var(--cs-prose); }
@media (max-width: 560px) {
  .cs-v2-shoptools { gap: 12px; }
  .cs-v2-shoptools .cs-search { flex-basis: 100%; }
  .cs-v2-shoptools .cs-chips { gap: 6px; }
  .cs-v2-shoptools .cs-chips a { font-size: 13px; padding: 7px 10px; }
  .cs-v2-cardname { font-size: 13px; }
}

/* ===== f8: product page: one reviews heading, no grey Woo notice, the two sample buttons as a matched pair ===== */
.cs-v2-f8 .cs-reviews-sec > .cs-eyebrow { display: none; }
.cs-v2-f8 .cs-reviews-sec .woocommerce-verification-required { display: none; }
.cs-v2-f8 .cs-try__more { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; gap: 12px; }
.cs-v2-f8 .cs-try__more .cs-btn { width: 100%; min-height: 52px; }
@media (max-width: 700px) {
  .cs-v2-f8 .cs-try__more { grid-template-columns: minmax(0, 1fr); }
  .cs-v2-f8 .cs-try__toggle { min-height: 52px; }
}

/* ===== s2faq: short "Is CertStash legit?" block under the /reviews/ grid ===== */
.cs-v2-legit { max-width: 760px; margin: 48px auto 0; padding-top: 32px; border-top: 1px solid var(--cs-rule); font-size: 16px; line-height: 1.6; color: var(--cs-prose); }
.cs-v2-legit h2 { font-family: var(--cs-display); font-size: 26px !important; margin: 0 0 12px; color: var(--cs-ink); }
.cs-v2-legit > p { margin: 0 0 16px; }
.cs-v2-legit .cs-faq__item p { margin: 8px 0 4px; }

/* ===== f4: deeper brand green for buttons and green text (#137F54: 5.01:1 on white, 4.59:1 on cream/mint); art and bars keep #1E9E6A ===== */
/* set on :root, because the theme palette (--theme-palette-color-1/2) is declared there from --cs-green */
:root:has(> body.cs-v2-f4) { --cs-green: #137f54; --cs-green-dark: #0e6643; }
.cs-v2-f4 .cs-hero__freetag { background: #137f54 !important; }
.cs-v2-f4 .cs-hero__freearrow, .cs-v2-f4 .cs-half__steps b, .cs-v2-f4 .cs-half__steps a, .cs-v2-f4 .cs-qbar a { color: #137f54 !important; }
.cs-v2-f4 .cs-facts__bar i, .cs-v2-f4 .cs-hero__badge, .cs-v2-f4 .cs-stats > div::after { background: #1e9e6a; }
/* the dark Exams dropdown: the current vendor and hover stay in the light green there (#6abc99 on navy is 6:1) */
.cs-v2-f4 #header .sub-menu :is(.current-menu-item, .current-menu-parent, .current-menu-ancestor) > a,
.cs-v2-f4 #header .sub-menu a:hover, .cs-v2-f4 #header .sub-menu a:focus-visible { color: #6abc99 !important; }

/* ===== c1: free video card on product pages (lite embed) ===== */
.cs-v2-video { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 40px; padding: 20px; border: 1px solid var(--cs-rule); border-radius: 16px; background: var(--cs-surface); }
.cs-v2-video__play, .cs-v2-video__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.cs-v2-video__play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--cs-ease, ease); }
.cs-v2-video__play:hover img { transform: scale(1.03); }
.cs-v2-video__btn { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(22, 33, 58, .88); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.cs-v2-video__play:hover .cs-v2-video__btn, .cs-v2-video__play:focus-visible .cs-v2-video__btn { background: #c4302b; }
.cs-v2-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-v2-video__txt h2 { font-family: var(--cs-display); font-size: 24px !important; line-height: 1.25; margin: 0 0 8px; color: var(--cs-ink); }
.cs-v2-video__txt p { margin: 0; font-size: 15px; color: var(--cs-muted); }
.cs-v2-video__txt a { color: var(--cs-green); }
@media (max-width: 760px) { .cs-v2-video { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; } .cs-v2-video__txt h2 { font-size: 20px !important; } }

/* ===== c3: one pack or a pair, above Buy now ===== */
.cs-v2-pair { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; border: 0; }
.cs-v2-pair__opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--cs-rule); border-radius: 12px; background: var(--cs-surface); cursor: pointer; transition: border-color .2s, background-color .2s; }
.cs-v2-pair__opt:has(input:checked) { border-color: var(--cs-green); background: var(--cs-tint); }
.cs-v2-pair__opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--cs-green); }
.cs-v2-pair__opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-v2-pair__opt b { font-size: 15px; color: var(--cs-ink); font-weight: 600; }
.cs-v2-pair__opt small { font-size: 13px; color: var(--cs-muted); }
.cs-v2-pair__opt strong { font-size: 16px; color: var(--cs-ink); white-space: nowrap; }
.cs-v2-pair__opt del { color: var(--cs-muted); font-weight: 400; margin-right: 4px; }
.cs-v2-pairing .cs-paypal-slot { display: none !important; }
.cs-v2-pair__opt strong, .cs-v2-pair__opt strong * { white-space: nowrap; }
.cs-v2-pair__opt strong { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.cs-v2-pair__opt del { margin: 0; font-size: 13px; }
.cs-v2-pair__opt .amount, .cs-v2-pair__opt bdi, .cs-v2-pair__opt .woocommerce-Price-currencySymbol { display: inline !important; }

/* ===== c4: a plain page from the free sample, beside the buy box notes ===== */
.cs-v2-pdfprev { display: flex; align-items: center; gap: 16px; margin: 6px 0 18px; }
.cs-v2-pdfprev a { flex: none; display: block; line-height: 0; border: 1px solid var(--cs-rule); border-radius: 6px; overflow: hidden; background: #fff; transition: border-color .2s; }
.cs-v2-pdfprev a:hover { border-color: var(--cs-green); }
.cs-v2-pdfprev img { width: 160px; height: auto; display: block; }
.cs-v2-pdfprev figcaption { font-size: 14px; color: var(--cs-muted); }
@media (max-width: 600px) { .cs-v2-pdfprev img { width: 132px; } }
.cs-v2-under .cs-v2-pdfprev { margin: 20px 0 0; }
/* ===== r1: a fallback quote (a review of another pack) says which pack, in the card's top corner ===== */
.cs-v2-r1 .cs-rv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.cs-v2-r1 .cs-rv-from { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: rgba(22, 33, 58, .06); font-size: 12px; line-height: 1.5; color: var(--cs-muted, #5b6272) !important; text-decoration: none !important; text-align: right; }
.cs-v2-r1 .cs-rv-from:hover { text-decoration: underline !important; }
