/* ---------------------------------------------------------------------
   Public store page (views/store.ejs) — what visitors see at
   handle.pagezaper.com. Standalone: doesn't load dashboard.css, since
   visitors never need the app's utility classes. --store-accent is set
   per merchant on <body> from their Design tab choice.
   --------------------------------------------------------------------- */

:root {
  --bg: #f5f6f4;
  --card: #ffffff;
  --fg: #12181f;
  --muted: #6b7580;
  --border: #e3e6e1;
  --radius: 12px;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.store { max-width: 520px; margin: 0 auto; padding: 48px 16px 32px; min-height: 100vh; display: flex; flex-direction: column; }

.store-header { text-align: center; margin-bottom: 28px; }
.store-avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--store-accent, #ff6b4a); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 30px;
}
.store-name { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.2; }
.store-bio { color: var(--muted); font-size: 15px; margin: 8px auto 0; max-width: 380px; }

.store-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 32px 0; }

.store-blocks { display: flex; flex-direction: column; gap: 12px; }

.store-block {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; color: inherit; text-decoration: none;
}
.store-block-link { transition: border-color .15s ease, transform .15s ease; }
.store-block-link:hover { border-color: var(--store-accent, #ff6b4a); transform: translateY(-1px); }
.store-block-link:focus-visible { outline: 2px solid var(--store-accent, #ff6b4a); outline-offset: 2px; }
.store-block-body { display: flex; flex-direction: column; min-width: 0; }
.store-block-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--store-accent, #ff6b4a); margin-bottom: 2px;
}
.store-block-title { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.store-block-sub { color: var(--muted); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.store-block-price { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.store-block-arrow { flex: none; color: var(--muted); }

.store-text { padding: 8px 4px; }
.store-text h2 { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.store-text p { color: var(--muted); font-size: 14px; margin-top: 4px; white-space: pre-line; }

/* Testimonials slider: one card per slide, scroll-snapped so swiping
   works without the script; arrows and dots come from the page script. */
.store-reviews { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.store-reviews-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; padding: 4px 4px 0; }
.store-reviews-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; border-radius: var(--radius); outline: none;
}
.store-reviews-track::-webkit-scrollbar { display: none; }
.store-reviews-track:focus-visible { box-shadow: 0 0 0 2px var(--store-accent, #ff6b4a); }
.store-review {
  flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 20px 18px;
}
.store-review-mark { color: var(--store-accent, #ff6b4a); opacity: .9; }
.store-review blockquote { font-size: 15.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.store-review figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.store-review figcaption span:last-child { display: flex; flex-direction: column; min-width: 0; }
.store-review figcaption strong { font-size: 14px; font-weight: 600; }
.store-review figcaption small { font-size: 12.5px; color: var(--muted); }
.store-review-avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: var(--store-accent, #ff6b4a);
  background: color-mix(in oklab, var(--store-accent, #ff6b4a) 14%, transparent);
}
.store-reviews-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.store-reviews-arrow {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
}
.store-reviews-arrow:hover { border-color: var(--store-accent, #ff6b4a); color: var(--store-accent, #ff6b4a); }
.store-reviews-arrow:focus-visible { outline: 2px solid var(--store-accent, #ff6b4a); outline-offset: 2px; }
.store-reviews-dots { display: flex; gap: 6px; }
.store-reviews-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; cursor: pointer;
  background: var(--border); transition: width .2s ease, background-color .2s ease;
}
.store-reviews-dots button[aria-current="true"] { width: 20px; background: var(--store-accent, #ff6b4a); }
.store-reviews-dots button:focus-visible { outline: 2px solid var(--store-accent, #ff6b4a); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .store-reviews-track { scroll-behavior: auto; }
  .store-reviews-dots button { transition: none; }
}

.store-badge { margin-top: auto; padding-top: 40px; text-align: center; font-size: 12px; }
.store-badge a { color: var(--muted); text-decoration: none; }
.store-badge a:hover { color: var(--fg); }
.store-badge strong { color: var(--fg); font-weight: 600; }

/* Social icons under the bio (lib/socials.js). */
.store-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.store-social {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border); color: var(--fg);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.store-social:hover { color: var(--store-accent, #ff6b4a); border-color: var(--store-accent, #ff6b4a); transform: translateY(-1px); }
.store-social:focus-visible { outline: 2px solid var(--store-accent, #ff6b4a); outline-offset: 2px; }

.store-newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.store-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--fg);
  font: inherit; font-size: 14px;
}
.store-input:focus { outline: none; border-color: var(--store-accent, #ff6b4a); box-shadow: 0 0 0 3px color-mix(in oklab, var(--store-accent, #ff6b4a) 20%, transparent); }
.store-input[aria-invalid="true"] { border-color: #c4321c; }
.store-button {
  flex: none; height: 42px; padding: 0 16px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--store-accent, #ff6b4a); color: #fff; font: inherit; font-weight: 600; font-size: 14px;
}
.store-button:hover { filter: brightness(.94); }
.store-button:focus-visible { outline: 2px solid var(--store-accent, #ff6b4a); outline-offset: 2px; }
.store-newsletter-error { color: #c4321c; font-size: 13px; margin-top: 8px; }
.store-newsletter-done {
  margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500;
  background: color-mix(in oklab, var(--store-accent, #ff6b4a) 10%, transparent);
}
@media (max-width: 380px) { .store-newsletter-form { flex-direction: column; } }
.store-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Newsletter block on the list: a card that opens its signup popup. */
.store-nl-trigger { justify-content: flex-start; }
.store-nl-icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  color: var(--store-accent, #ff6b4a);
  background: color-mix(in oklab, var(--store-accent, #ff6b4a) 12%, transparent);
}
.store-nl-trigger .store-block-body { flex: 1; }
.store-nl-cta {
  flex: none; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  background: var(--store-accent, #ff6b4a); color: #fff;
}

/* Popups. Open with .is-open (the page script) or, without the script,
   whenever the URL points at one (#subscribe-12 → :target). */
.store-popup {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center; padding: 16px;
}
.store-popup.is-open, html:not(.js) .store-popup:target { display: flex; }
.store-popup-backdrop {
  position: absolute; inset: 0; background: rgba(18, 24, 31, .5);
  backdrop-filter: blur(2px); animation: store-fade .18s ease-out both; cursor: default;
}
.store-popup-card {
  position: relative; width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--card); border-radius: 18px; padding: 28px 24px 22px; text-align: center;
  box-shadow: 0 24px 60px rgba(18, 24, 31, .3);
  animation: store-pop .22s cubic-bezier(.2, .9, .3, 1.2) both;
}
.store-popup-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted); text-decoration: none;
}
.store-popup-close:hover { background: var(--bg); color: var(--fg); }
.store-popup-close:focus-visible { outline: 2px solid var(--store-accent, #ff6b4a); }
.store-popup-icon {
  width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center;
  color: var(--store-accent, #ff6b4a);
  background: color-mix(in oklab, var(--store-accent, #ff6b4a) 12%, transparent);
}
.store-popup-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.25; }
.store-popup-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.store-popup .store-newsletter-form { margin-top: 18px; text-align: left; }
.store-popup .store-newsletter-error { text-align: left; }
.store-popup .store-newsletter-done { margin-top: 18px; }
.store-popup-done-btn { display: inline-flex; align-items: center; margin-top: 14px; text-decoration: none; }
body.store-popup-open { overflow: hidden; }
@keyframes store-fade { from { opacity: 0; } }
@keyframes store-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (prefers-reduced-motion: reduce) {
  .store-popup-backdrop, .store-popup-card { animation: none; }
}

/* --- Store settings (builder → Design / Profile, lib/storeSettings.js) --- */

/* Background themes. */
body.theme-tinted { --bg: color-mix(in oklab, var(--store-accent, #ff6b4a) 9%, #f7f7f5); --border: color-mix(in oklab, var(--store-accent, #ff6b4a) 14%, #e3e6e1); }
body.theme-dark { --bg: #0f1419; --card: #182029; --fg: #eef1f4; --muted: #9aa4ae; --border: #26303a; }
body.theme-dark .store-popup-close:hover { background: #222c36; }

/* Fonts: headings in Fraunces (serif), all Plex (sans), or all Nunito (rounded). */
body.font-sans { --font-display: var(--font-sans); }
body.font-sans .store-name { letter-spacing: -.01em; font-weight: 700; }
body.font-rounded { --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --font-display: var(--font-sans); }
body.font-rounded .store-name { font-weight: 700; }

/* Button and card shapes. */
body { --btn-radius: 10px; }
body.buttons-pill { --btn-radius: 999px; --radius: 18px; }
body.buttons-square { --btn-radius: 4px; --radius: 4px; }
.store-button, .store-input, .store-contact { border-radius: var(--btn-radius); }
.store-nl-cta { border-radius: var(--btn-radius); }
body.buttons-square .store-nl-icon, body.buttons-square .store-popup-card { border-radius: 4px; }

/* Announcement bar. */
.store-announce {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 600; text-align: center;
  background: var(--store-accent, #ff6b4a); color: #fff; text-decoration: none;
}
a.store-announce:hover span { text-decoration: underline; text-underline-offset: 3px; }
.store-announce svg { flex: none; }

/* Cover banner, with the avatar overlapping its bottom edge. */
.store.has-cover { padding-top: 16px; }
.store-cover { height: 168px; border-radius: var(--radius); overflow: hidden; background: var(--border); }
.store-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store.has-cover .store-avatar { margin-top: -48px; position: relative; box-shadow: 0 0 0 4px var(--bg); }
.store-avatar-img { object-fit: cover; display: block; background: var(--card); }

.store-tagline { font-size: 15px; font-weight: 500; margin-top: 4px; }
.store-location {
  display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 6px;
  color: var(--muted); font-size: 13px;
}
.store-tagline + .store-bio, .store-location + .store-bio { margin-top: 10px; }

/* Contact button under the socials. */
.store-contact {
  display: flex; width: fit-content; margin: 18px auto 0; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; font-weight: 600; font-size: 14.5px; text-decoration: none;
  background: var(--store-accent, #ff6b4a); color: #fff;
  transition: filter .15s ease, transform .15s ease;
}
.store-contact:hover { filter: brightness(.94); transform: translateY(-1px); }
.store-contact:focus-visible { outline: 2px solid var(--store-accent, #ff6b4a); outline-offset: 2px; }

/* Button module (lib/blocks.js "button"): a full-width accent button in the list. */
.store-button-block {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 10px 20px;
  border-radius: var(--btn-radius, 10px); background: var(--store-accent, #ff6b4a); color: #fff;
  font-weight: 600; font-size: 15px; text-align: center; text-decoration: none; overflow-wrap: anywhere;
  transition: filter .15s ease, transform .15s ease;
}
a.store-button-block:hover { filter: brightness(.94); transform: translateY(-1px); }
.store-button-block:focus-visible { outline: 2px solid var(--store-accent, #ff6b4a); outline-offset: 2px; }
.store-button-block.is-inert { opacity: .85; }
@media (prefers-reduced-motion: reduce) { .store-button-block { transition: none; } }

/* --- Popups everywhere: share buttons, video and form popups ----------- */

/* A card with a share button on its right (the button sits beside the
   link, not inside it). Without the script there's nothing to open, so
   share buttons are hidden. */
.store-item { position: relative; }
.store-item > .store-block { padding-right: 52px; }
.store-share-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--muted);
}
.store-share-btn:hover { background: var(--bg); color: var(--fg); }
.store-share-btn:focus-visible { outline: 2px solid var(--store-accent, #ff6b4a); outline-offset: 1px; }
html:not(.js) .store-share-btn { display: none; }
html:not(.js) .store-item > .store-block { padding-right: 18px; }

/* The profile's share button, top right of the page. */
.store { position: relative; }
.store-profile-share {
  top: 14px; right: 16px; transform: none; z-index: 2; width: 38px; height: 38px;
  background: var(--card); border: 1px solid var(--border); color: var(--fg);
}
.store.has-cover .store-profile-share { top: 26px; right: 26px; }

/* Video card: thumbnail with a play button. */
.store-video { justify-content: flex-start; }
.store-video-thumb {
  flex: none; position: relative; width: 88px; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) - 4px);
  background: center / cover no-repeat var(--bg); display: grid; place-items: center; overflow: hidden;
}
.store-video-play {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; padding-left: 2px;
  background: rgba(0, 0, 0, .62); color: #fff;
}
.store-video:hover .store-video-play { background: var(--store-accent, #ff6b4a); }

/* Video popup: wide, the player at 16:9. */
.store-popup-video .store-popup-card { max-width: 760px; padding: 16px; text-align: left; }
.store-popup-video-title { font-size: 16px; padding: 4px 44px 12px 4px; }
.store-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) - 4px); overflow: hidden; background: #000; }
.store-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Form popup: the merchant's fields, stacked. */
.store-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; text-align: left; }
.store-field { display: flex; flex-direction: column; gap: 6px; }
.store-field > span { font-size: 13px; font-weight: 600; }
.store-field em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 2px; }
.store-field .store-input { width: 100%; flex: none; }
.store-textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.store-form .store-newsletter-error { margin-top: 0; }
.store-form-submit { width: 100%; height: 44px; margin-top: 4px; }
.store-form-fine { color: var(--muted); font-size: 12px; text-align: center; }

/* Share sheet. */
.store-share .store-popup-sub { overflow-wrap: anywhere; }
.store-share-link {
  display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 6px 6px 12px;
  border: 1px solid var(--border); border-radius: var(--btn-radius, 10px); background: var(--bg); text-align: left;
}
.store-share-link span { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-share-link .store-button { height: 34px; padding: 0 14px; font-size: 13px; }
.store-share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.store-share-grid a, .store-share-grid button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px;
  border: none; border-radius: var(--radius); background: none; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 500; color: var(--fg); text-decoration: none;
}
.store-share-grid a:hover, .store-share-grid button:hover { background: var(--bg); }
.store-share-grid a:focus-visible, .store-share-grid button:focus-visible { outline: 2px solid var(--store-accent, #ff6b4a); }
.store-share-grid [hidden] { display: none; }
.store-share-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--border);
}

/* On phones, popups rise from the bottom like a sheet. */
@media (max-width: 520px) {
  .store-popup { align-items: flex-end; padding: 0; }
  .store-popup .store-popup-card { max-width: none; border-radius: 20px 20px 0 0; max-height: 88vh; padding-bottom: 28px; }
  .store-popup-video { align-items: center; padding: 12px; }
  .store-popup-video .store-popup-card { border-radius: 16px; padding-bottom: 16px; }
  @keyframes store-pop { from { opacity: 0; transform: translateY(40px); } }
}

/* Social links module: the icon row, wherever it sits in the list. */
.store-social-block { padding: 4px 0; text-align: center; }
.store-social-heading { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 2px; }
.store-social-block .store-socials { margin-top: 10px; gap: 10px; }
.store-social-block .store-social { width: 44px; height: 44px; }

/* --- The store as a card on a backdrop -----------------------------------
   Wide screens: the page is a rounded card floating on a soft backdrop (a
   blur of the cover, or a glow of the accent); the cover and announcement
   bar run edge to edge across the card's top. Phones: the card is the
   whole screen. */
body { --page: color-mix(in oklab, var(--store-accent, #ff6b4a) 10%, #e4e7e2); --card-pad: 28px; background: var(--page); }
body.theme-tinted { --page: color-mix(in oklab, var(--store-accent, #ff6b4a) 22%, #e9ebe7); }
body.theme-dark { --page: #070a0d; }

.store-backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, color-mix(in oklab, var(--store-accent, #ff6b4a) 30%, transparent), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, color-mix(in oklab, var(--store-accent, #ff6b4a) 22%, transparent), transparent 70%);
}
.store-backdrop.has-image {
  background-position: center; background-size: cover;
  filter: blur(56px) saturate(1.25); transform: scale(1.25); opacity: .55;
}
body.theme-dark .store-backdrop.has-image { opacity: .35; }

.store {
  max-width: 580px; margin: 40px auto; padding: 44px var(--card-pad) 28px;
  min-height: calc(100vh - 80px);
  background: var(--bg); border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(18, 24, 31, .28), 0 0 0 1px rgba(18, 24, 31, .05);
}
body.theme-dark .store { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
body.buttons-square .store { border-radius: 6px; }

/* Edge to edge across the top of the card. */
.store.has-cover { padding-top: 0; }
.store.has-cover .store-cover { margin: 0 calc(-1 * var(--card-pad)); height: 200px; border-radius: 0; }
.store.has-cover .store-avatar { margin-top: -52px; width: 104px; height: 104px; }

.store-profile-share { top: 16px; right: 16px; }
.store.has-cover .store-profile-share { top: 16px; right: 16px; background: rgba(255, 255, 255, .92); border-color: transparent; color: #12181f; }

@media (max-width: 640px) {
  body { --card-pad: 16px; background: var(--bg); }
  .store-backdrop { display: none; }
  .store { margin: 0; min-height: 100vh; padding-top: 36px; border-radius: 0; box-shadow: none; }
  .store.has-cover .store-cover { height: 168px; }
}

/* Announcement bar: full width across the top of the page, above the card. */
.store-announce { position: relative; z-index: 1; }
.store-announce + .store { margin-top: 28px; }
@media (max-width: 640px) {
  .store-announce + .store { margin-top: 0; }
}

/* --- Popups are bottom sheets, on every screen ---------------------------
   They rise from the bottom with rounded top corners, as wide as the store
   card (full width on phones), with a grab bar on top. A video stays a
   centered player so it isn't squeezed. */
.store-popup { align-items: flex-end; justify-content: center; padding: 0; }
.store-popup .store-popup-card {
  width: 100%; max-width: 580px; max-height: 88vh;
  border-radius: 24px 24px 0 0; padding: 30px 24px 28px;
  animation: store-sheet-up .26s cubic-bezier(.2, .8, .2, 1) both;
}
.store-popup .store-popup-card::before {
  content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4px; border-radius: 999px; background: var(--border);
}
.store-popup .store-popup-close { top: 14px; right: 14px; }
@keyframes store-sheet-up { from { transform: translateY(100%); } }
body.buttons-square .store-popup .store-popup-card { border-radius: 6px 6px 0 0; }

.store-popup.store-popup-video { align-items: center; padding: 16px; }
.store-popup.store-popup-video .store-popup-card {
  max-width: 760px; border-radius: 16px; padding: 16px;
  animation: store-pop .22s cubic-bezier(.2, .9, .3, 1.2) both;
}
.store-popup.store-popup-video .store-popup-card::before { display: none; }
@media (prefers-reduced-motion: reduce) { .store-popup .store-popup-card { animation: none; } }

.store-reviews-faces { display: flex; flex: none; }
.store-reviews-faces span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: var(--store-accent, #ff6b4a);
  background: color-mix(in oklab, var(--store-accent, #ff6b4a) 14%, var(--card));
  box-shadow: 0 0 0 2px var(--card);
}
.store-reviews-faces span + span { margin-left: -10px; }


/* --- Testimonials -----------------------------------------------------------
   On the page: a featured-quote card (heading + count, the first quote,
   then who said it and "Read all"). In the popup: a counter by the title,
   roomy slides with the next one peeking in, arrows and dots below. */
.store-reviews-card {
  flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 18px;
  background:
    linear-gradient(160deg, color-mix(in oklab, var(--store-accent, #ff6b4a) 7%, var(--card)), var(--card) 55%);
}
.store-item > .store-reviews-card { padding-right: 18px; }
.store-reviews-card-head { display: flex; align-items: baseline; gap: 8px; padding-right: 34px; }
.store-reviews-card-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.3; }
.store-reviews-card-count {
  margin-left: auto; flex: none; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  color: var(--store-accent, #ff6b4a); background: color-mix(in oklab, var(--store-accent, #ff6b4a) 12%, transparent);
}
.store-reviews-card-quote { display: flex; gap: 8px; align-items: flex-start; }
.store-reviews-card-quote svg { flex: none; color: var(--store-accent, #ff6b4a); margin-top: 1px; }
.store-reviews-card-quote span {
  font-size: 15px; line-height: 1.5; color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.store-reviews-card-foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.store-reviews-card-foot .store-reviews-faces span { width: 28px; height: 28px; font-size: 11px; }
.store-reviews-card-who { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-reviews-card-who strong { color: var(--fg); font-weight: 600; }
.store-reviews-card-cta {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; color: var(--store-accent, #ff6b4a);
}
.store-reviews-card:hover .store-reviews-card-cta svg { transform: translateX(2px); }
.store-reviews-card-cta svg { transition: transform .15s ease; }
/* Its share button sits by the title, not halfway down. */
.store-item-top > .store-share-btn { top: 12px; transform: none; }

/* Popup. */
.store-popup-reviews-head { display: flex; align-items: center; gap: 10px; padding-right: 40px; margin-bottom: 16px; text-align: left; }
.store-popup-reviews-title { flex: 1; min-width: 0; }
.store-reviews-counter { flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.store-popup .store-reviews { text-align: left; gap: 14px; }
.store-reviews.is-many .store-reviews-track { gap: 12px; }
.store-reviews.is-many .store-review { flex-basis: 86%; }
.store-popup .store-review {
  position: relative; gap: 16px; padding: 22px 22px 18px; background: var(--bg); border-color: transparent;
}
.store-popup .store-review-mark { opacity: .25; margin-bottom: -6px; }
.store-popup .store-review blockquote {
  font-family: var(--font-display); font-size: 18px; line-height: 1.5; font-weight: 500;
}
body.font-serif .store-popup .store-review blockquote { font-weight: 600; font-size: 17.5px; }
.store-popup .store-review figcaption { padding-top: 14px; border-top: 1px solid var(--border); }
.store-popup .store-review-avatar { width: 40px; height: 40px; font-size: 14px; }
.store-popup .store-reviews-nav { justify-content: space-between; }
.store-popup .store-reviews-dots { flex: 1; justify-content: center; }
.store-popup .store-reviews-arrow { width: 38px; height: 38px; }
.store-reviews-card-foot .store-reviews-faces span + span { margin-left: -5px; }
