/* Beauty Routine Product Template v0.1
   Scoped visual layer. No commerce logic lives here. */

body.store-product-template-beauty {
  --store-product-ink: var(--store-ink, #20201f);
  --store-product-muted: var(--store-muted, #6b6b67);
  --store-product-bg: var(--store-bg, #f7f7f5);
  --store-product-surface-soft: var(--store-surface-soft, #eeeeeb);
  --store-product-line: var(--store-line, rgba(34, 29, 27, .14));
  --store-product-accent: var(--store-accent, #555b66);
  --store-product-accent-soft: var(--store-accent-soft, #e4e5e7);
  --store-product-card-radius: var(--store-card-radius, 10px);
  background: var(--store-product-bg);
  color: var(--store-product-ink);
}

body.store-product-template-beauty .product-page {
  max-width: 1380px;
}

body.store-product-template-beauty .product-detail--beauty {
  --pp339-product-accent: var(--store-product-accent);
  --pp339-product-accent-2: color-mix(in srgb,var(--store-product-accent) 54%,var(--store-product-surface-soft));
}

body.store-product-template-beauty .product-detail--beauty .product-detail__main,
body.store-product-template-beauty .product-detail--beauty .product-detail-grid {
  align-items: start;
}

body.store-product-template-beauty .product-detail--beauty .product-gallery,
body.store-product-template-beauty .product-detail--beauty .product-info,
body.store-product-template-beauty .product-detail--beauty .purchase-box,
body.store-product-template-beauty .product-detail--beauty .pp328-purchase-card,
body.store-product-template-beauty .product-detail--beauty .pp327-qty-card,
body.store-product-template-beauty .product-detail--beauty .pp330-selection-preview {
  border-radius: var(--store-product-card-radius) !important;
  box-shadow: none !important;
}

body.store-product-template-beauty .product-detail--beauty .product-gallery {
  background: var(--store-product-surface-soft);
  border: 1px solid var(--store-product-line);
}

body.store-product-template-beauty .product-detail--beauty .main-product-image {
  background: var(--store-product-surface-soft);
}

body.store-product-template-beauty .product-detail--beauty .main-product-image img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

body.store-product-template-beauty .product-detail--beauty .thumbnail {
  border-radius: 4px !important;
  background: var(--store-product-surface-soft);
  border-color: transparent;
}

body.store-product-template-beauty .product-detail--beauty .thumbnail.is-active {
  border-color: var(--store-product-ink);
}

body.store-product-template-beauty .product-detail--beauty .product-info h1 {
  font-family: var(--store-display-font, Georgia, "Times New Roman", serif);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.02;
  color: var(--store-product-ink);
}

body.store-product-template-beauty .product-detail--beauty .eyebrow,
body.store-product-template-beauty .product-detail--beauty .rb267-kicker,
body.store-product-template-beauty .product-detail--beauty .pp337-option__eyebrow small {
  letter-spacing: .13em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--store-product-muted);
}

body.store-product-template-beauty .product-detail--beauty .product-pilot-promise {
  max-width: 48ch;
  color: var(--store-product-muted);
  font-size: 1rem;
  line-height: 1.65;
}

body.store-product-template-beauty .product-detail--beauty .rb-video-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 18px 0 6px;
  padding: 0;
  border-top: 1px solid var(--store-product-line);
}

body.store-product-template-beauty .product-detail--beauty .rb-video-benefits li {
  min-height: auto;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--store-product-line);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

body.store-product-template-beauty .product-detail--beauty .rb-video-benefits__emoji {
  width: 24px;
  font-size: .9rem;
  color: var(--store-product-accent);
}

body.store-product-template-beauty .product-detail--beauty .product-detail-price--video {
  color: var(--store-product-ink);
}

body.store-product-template-beauty .product-detail--beauty .rb-video-divider,
body.store-product-template-beauty .product-detail--beauty .rb-inline-countdown,
body.store-product-template-beauty #productPromoMount:empty {
  display: none !important;
}

body.store-product-template-beauty .product-detail--beauty .purchase-box {
  padding: 0;
  background: transparent;
  border: 0;
}

body.store-product-template-beauty .product-detail--beauty .pp328-purchase-card {
  border: 1px solid var(--store-product-line) !important;
  background: var(--store-surface, #fff) !important;
  overflow: hidden;
}

body.store-product-template-beauty .product-detail--beauty .pp328-purchase-card__head {
  background: var(--store-surface, #fff);
  border-bottom: 1px solid var(--store-product-line);
}

body.store-product-template-beauty .product-detail--beauty .pp327-qty-card {
  border: 0 !important;
  border-bottom: 1px solid var(--store-product-line) !important;
  background: var(--store-surface, #fff) !important;
}

body.store-product-template-beauty .product-detail--beauty .pp327-qty-card:last-child {
  border-bottom: 0 !important;
}

body.store-product-template-beauty .product-detail--beauty .pp327-qty-card.is-selected {
  background: var(--store-product-bg) !important;
  outline: 1px solid var(--store-product-ink);
  outline-offset: -1px;
}

body.store-product-template-beauty .product-detail--beauty .pp323-choice__surface,
body.store-product-template-beauty .product-detail--beauty .pp323-select {
  border-radius: 6px !important;
  box-shadow: none !important;
}

body.store-product-template-beauty .product-detail--beauty .pp323-choice input:checked + .pp323-choice__surface {
  border-color: var(--store-product-ink) !important;
  background: var(--store-surface, #fff) !important;
}

/* Beauty uses one clear cart action. Direct checkout remains in the DOM for legacy controller compatibility. */
body.store-product-template-beauty .product-detail--beauty #buyNow,
body.store-product-template-beauty .product-detail--beauty #buyNowSelectionSummary,
body.store-product-template-beauty .product-detail--beauty #buyNowOfferNote {
  display: none !important;
}

body.store-product-template-beauty .product-detail--beauty .rb-add-to-cart-secondary {
  display: inline-flex !important;
  width: 100%;
  min-height: 52px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--store-product-ink) !important;
  border-radius: 4px !important;
  background: var(--store-product-ink) !important;
  color: var(--store-on-contrast,#fff) !important;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: none !important;
}

body.store-product-template-beauty .product-detail--beauty .rb-add-to-cart-secondary:hover {
  transform: none !important;
  background: var(--store-product-ink) !important;
}

body.store-product-template-beauty .product-detail--beauty .purchase-stock-note,
body.store-product-template-beauty .product-detail--beauty .purchase-assurance-card,
body.store-product-template-beauty .product-detail--beauty .shipping-motivation {
  box-shadow: none !important;
}

body.store-product-template-beauty .product-detail--beauty .purchase-stock-note {
  color: var(--store-product-muted);
}

/* Editorial lower page: image-led, flat, restrained. */
body.store-product-template-beauty .product-detail--beauty .rb267-page {
  margin-top: 74px;
  color: var(--store-product-ink);
}

body.store-product-template-beauty .product-detail--beauty .rb267-page h2 {
  font-family: var(--store-display-font, Georgia, "Times New Roman", serif);
  font-weight: 500;
  letter-spacing: -.025em;
}

body.store-product-template-beauty .product-detail--beauty .rb267-story-hero,
body.store-product-template-beauty .product-detail--beauty .rb267-touch,
body.store-product-template-beauty .product-detail--beauty .rb268-product-facts,
body.store-product-template-beauty .product-detail--beauty .rb267-final {
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

body.store-product-template-beauty .product-detail--beauty .rb267-story-hero,
body.store-product-template-beauty .product-detail--beauty .rb268-product-facts {
  background: var(--store-product-surface-soft) !important;
}

body.store-product-template-beauty .product-detail--beauty .rb267-touch,
body.store-product-template-beauty .product-detail--beauty .rb267-final {
  background: var(--store-contrast,var(--store-product-ink)) !important;
  color: var(--store-on-contrast,#fff);
}

body.store-product-template-beauty .product-detail--beauty .rb267-touch h2,
body.store-product-template-beauty .product-detail--beauty .rb267-touch p,
body.store-product-template-beauty .product-detail--beauty .rb267-final h2,
body.store-product-template-beauty .product-detail--beauty .rb267-final p,
body.store-product-template-beauty .product-detail--beauty .rb267-touch .rb267-kicker,
body.store-product-template-beauty .product-detail--beauty .rb267-final .rb267-kicker {
  color: inherit !important;
}

body.store-product-template-beauty .product-detail--beauty .rb267-visual-card,
body.store-product-template-beauty .product-detail--beauty .rb267-surface-grid figure,
body.store-product-template-beauty .product-detail--beauty .rb267-step-grid li,
body.store-product-template-beauty .product-detail--beauty .rb269-fact-grid article {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.store-product-template-beauty .product-detail--beauty .rb267-visual-card img,
body.store-product-template-beauty .product-detail--beauty .rb267-surface-grid img,
body.store-product-template-beauty .product-detail--beauty .rb267-step-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

body.store-product-template-beauty .product-detail--beauty .rb267-faq details {
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body.store-product-template-beauty .product-detail--beauty .rb267-final__button {
  display: none !important;
}

body.store-product-template-beauty .product-detail--beauty .rb269-final-cart {
  width: 100%;
  min-height: 50px;
  border-radius: 4px !important;
  background: var(--store-surface, #fff) !important;
  color: var(--store-product-ink) !important;
  border: 1px solid var(--store-surface, #fff) !important;
}

body.store-product-template-beauty .related-section .section-heading h2 {
  font-family: var(--store-display-font, Georgia, "Times New Roman", serif);
  font-weight: 500;
}

@media (min-width: 900px) {
  body.store-product-template-beauty .product-detail--beauty .product-info {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 700px) {
  body.store-product-template-beauty .product-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.store-product-template-beauty .product-detail--beauty .product-info h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  body.store-product-template-beauty .product-detail--beauty .rb267-page {
    margin-top: 48px;
  }

  body.store-product-template-beauty .product-detail--beauty .rb267-story-hero,
  body.store-product-template-beauty .product-detail--beauty .rb267-touch,
  body.store-product-template-beauty .product-detail--beauty .rb268-product-facts,
  body.store-product-template-beauty .product-detail--beauty .rb267-final {
    margin-left: -14px;
    margin-right: -14px;
  }
}

/* v0.5 hard override: the Beauty plugin is loaded after the neutral/legacy Store Core.
   Equal-or-higher specificity is intentional here so PepPaws visual compatibility classes
   can remain in the Core without leaking into this storefront. */
body.store-product-template-beauty[data-page="product"] #productPromoMount {
  display: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .product-detail__top,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-detail__top {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .85fr) !important;
  gap: clamp(34px, 5vw, 76px) !important;
  align-items: start !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  isolation: auto !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-detail__top::before {
  display: none !important;
  content: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-gallery {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .main-image,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .main-image {
  aspect-ratio: 1 / 1.08 !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--store-product-surface-soft) !important;
  box-shadow: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .main-image img,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .main-image img {
  object-fit: contain !important;
  padding: clamp(14px, 2vw, 28px) !important;
  mix-blend-mode: multiply;
  transform: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .thumbnail {
  border: 1px solid transparent !important;
  border-radius: 2px !important;
  background: var(--store-product-surface-soft) !important;
  box-shadow: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .thumbnail.is-active,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .thumbnail[aria-current="true"] {
  border-color: var(--store-product-ink) !important;
  box-shadow: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .product-info,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-info {
  gap: 13px !important;
  padding-top: 6px;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .product-kicker-row .eyebrow,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-kicker-row .eyebrow {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--store-product-accent) !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .product-info h1,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-info h1 {
  max-width: 14ch !important;
  margin: 2px 0 0 !important;
  color: var(--store-product-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.65rem, 4.1vw, 4.9rem) !important;
  font-weight: 500 !important;
  line-height: .94 !important;
  letter-spacing: -.045em !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .product-pilot-promise,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-pilot-promise {
  max-width: 48ch !important;
  color: var(--store-product-muted) !important;
  font-size: .98rem !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-quick-benefits--pilot {
  gap: 0 !important;
  border-top: 1px solid var(--store-product-line);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-quick-benefits--pilot .product-quick-benefit {
  min-height: 44px !important;
  padding: 10px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--store-product-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-quick-benefits--pilot .product-quick-benefit__icon {
  width: 26px !important;
  height: 26px !important;
  flex-basis: 26px !important;
  border-radius: 50% !important;
  background: var(--store-product-accent-soft) !important;
  color: var(--store-product-accent) !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-detail-price strong,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-detail-price--video strong {
  color: var(--store-product-ink) !important;
  font-size: clamp(1.9rem, 2.7vw, 2.5rem) !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card {
  gap: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--store-product-line) !important;
  border-radius: 4px !important;
  background: var(--store-surface, #fff) !important;
  box-shadow: none !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card__head {
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--store-product-line) !important;
  background: var(--store-surface, #fff) !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card__title small {
  color: var(--store-product-accent) !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card__title strong {
  color: var(--store-product-ink) !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card__secure {
  border: 0 !important;
  background: transparent !important;
  color: var(--store-product-muted) !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card .pp327-qty-card {
  min-height: 72px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--store-product-line) !important;
  border-radius: 0 !important;
  background: var(--store-surface, #fff) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card .pp327-qty-card:last-child {
  border-bottom: 0 !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card .pp327-qty-card::before {
  display: none !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card .pp327-qty-card:hover,
body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card .pp327-qty-card.is-selected {
  border-color: var(--store-product-line) !important;
  background: color-mix(in srgb,var(--store-product-surface-soft) 58%,var(--store-surface,#fff)) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card .pp327-qty-card__radio,
body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card .pp327-qty-card.is-selected .pp327-qty-card__radio {
  border-color: var(--store-product-ink) !important;
  background: var(--store-surface, #fff) !important;
  box-shadow: inset 0 0 0 4px var(--store-surface,#fff) !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp328-purchase-card .pp327-qty-card.is-selected .pp327-qty-card__radio {
  background: var(--store-product-ink) !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp330-selection-preview {
  border: 0 !important;
  border-radius: 0 !important;
  background: color-mix(in srgb,var(--store-product-surface-soft) 58%,var(--store-surface,#fff)) !important;
  box-shadow: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb-buy-selection-summary,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb-buy-offer-note {
  color: var(--store-product-muted) !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .shipping-motivation,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .purchase-stock-note,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .purchase-assurance-card {
  border-color: var(--store-product-line) !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb319-reviews-first:has(.rb269-review-summary--empty-v304),
body.store-product-template-beauty[data-page="product"] .product-detail--beauty #productReviews:has(.rb269-review-summary--empty-v304) {
  display: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty #buyNow,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty #buyNowSelectionSummary,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty #buyNowOfferNote {
  display: none !important;
}

@media (max-width: 900px) {
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .product-detail__top,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-detail__top {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-gallery,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-info {
    position: relative !important;
    top: auto !important;
  }
}

@media (max-width: 620px) {
  body.store-product-template-beauty[data-page="product"] .product-page {
    width: min(100%, calc(100% - 28px)) !important;
    padding-inline: 0 !important;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .product-detail__top,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-detail__top {
    gap: 18px !important;
    padding: 0 !important;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .main-image,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .main-image {
    aspect-ratio: 1 / 1 !important;
    max-height: none !important;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .product-info h1,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-info h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem) !important;
  }
}

/* Keep merchandising accents brand-led instead of inheriting PepPaws purple or variant color. */
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp328-purchase-card,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp327-qty-card,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-option,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp330-selection-preview {
  --pp339-product-accent: var(--store-product-accent) !important;
  --pp339-product-accent-2: color-mix(in srgb,var(--store-product-accent) 54%,var(--store-product-surface-soft)) !important;
}

body.store-product-template-beauty[data-page="product"].product-purchase-ux-v326 .product-detail--beauty .pp329-qty-card.is-selected .pp327-qty-card__copy::after {
  content: none !important;
  display: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-option,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-choice__surface,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp326-compound-choice__surface {
  box-shadow: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-option__eyebrow,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-option__selected,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-option legend,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-option label {
  color: var(--store-product-ink) !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-choice input:checked + .pp323-choice__surface,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp326-compound-choice input:checked + .pp326-compound-choice__surface {
  border-color: var(--store-product-ink) !important;
  background: color-mix(in srgb,var(--store-product-surface-soft) 58%,var(--store-surface,#fff)) !important;
  box-shadow: none !important;
}

/* v0.5 — compact purchase controls for templates without a verified multi-pack offer. */
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-purchase {
  display: grid;
  gap: 16px;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-purchase .pp323-variants {
  display: grid;
  gap: 14px;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 2px;
  border-top: 1px solid var(--store-product-line);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity__copy {
  display: grid;
  gap: 2px;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity__copy small {
  color: var(--store-product-accent);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity__copy strong {
  color: var(--store-product-ink);
  font-size: .94rem;
  font-weight: 650;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity__control {
  display: grid !important;
  grid-template-columns: 38px 44px 38px;
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--store-product-line) !important;
  border-radius: 3px !important;
  background: var(--store-surface, #fff) !important;
  box-shadow: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity__control button,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity__control input {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--store-product-ink) !important;
  box-shadow: none !important;
  text-align: center !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity__control input {
  border-inline: 1px solid var(--store-product-line) !important;
  appearance: textfield;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity__control input::-webkit-inner-spin-button,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity__control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 620px) {
  /* Override historical mobile ordering. Unordered legacy helpers must not jump above the product identity. */
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-info > * {
    order: 20 !important;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-social-proof { order: 1 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-info > h1 { order: 2 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-kicker-row { order: 3 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-detail-price { order: 4 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-pilot-promise { order: 5 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-quick-benefits { order: 6 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .purchase-box { order: 7 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-hero-trust { order: 8 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .mobile-purchase-bar { order: 9 !important; }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-kicker-row--video,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb-video-divider {
    display: none !important;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity {
    padding-top: 13px;
  }
}


/* v0.5 — Beauty template owns option-selection accents; no inherited PepPaws violet. */
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-option,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-option__head,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-option__choices {
  --pp323-accent: var(--store-product-accent) !important;
  --pp326-accent: var(--store-product-accent) !important;
  --pp337-brand: var(--store-product-accent) !important;
  --pp338-violet: var(--store-product-accent) !important;
  --pp338-line-violet: var(--store-product-line) !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-option,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-choice__surface,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp330-selection-preview,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp337-selection-preview__ready {
  border-color: var(--store-product-line) !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-option__eyebrow,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp337-option__eyebrow,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp330-selection-preview__label {
  color: var(--store-product-accent) !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-choice input:checked + .pp323-choice__surface::before,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-choice input:checked + .pp323-choice__surface::after,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp330-selection-preview::before,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp330-selection-preview::after {
  background: var(--store-product-accent) !important;
  border-color: var(--store-product-accent) !important;
}

@media (max-width: 620px) {
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb-video-benefits { order: 6 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .purchase-box { order: 7 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb-payment-methods { order: 8 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-hero-trust { order: 9 !important; }
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .mobile-purchase-bar { order: 10 !important; }
}


/* v0.5 polish — close the last customer-facing PepPaws visual leaks. */
body.store-product-template-beauty[data-page="product"] #mobileAddToCart,
body.store-product-template-beauty[data-page="product"] .mobile-purchase-bar #mobileAddToCart {
  min-height: 52px !important;
  border: 1px solid var(--store-product-ink) !important;
  border-radius: 4px !important;
  background: var(--store-product-ink) !important;
  color: var(--store-on-contrast,#fff) !important;
  box-shadow: none !important;
  font-weight: 750 !important;
  letter-spacing: .02em !important;
}

body.store-product-template-beauty[data-page="product"] #mobileAddToCart:hover:not(:disabled),
body.store-product-template-beauty[data-page="product"] #mobileAddToCart:active:not(:disabled) {
  background: var(--store-product-ink) !important;
  transform: none !important;
  box-shadow: none !important;
}

body.store-product-template-beauty[data-page="product"] #mobileAddToCart:focus-visible {
  outline: 2px solid var(--store-product-bg) !important;
  outline-offset: -4px !important;
  box-shadow: 0 0 0 2px var(--store-product-ink) !important;
}

body.store-product-template-beauty[data-page="product"] .mobile-purchase-bar {
  border-top: 1px solid var(--store-product-line) !important;
  background: color-mix(in srgb,var(--store-product-bg) 96%,transparent) !important;
  box-shadow: 0 -12px 34px color-mix(in srgb,var(--store-product-ink) 8%,transparent) !important;
  backdrop-filter: blur(14px);
}

body.store-product-template-beauty[data-page="product"] .mobile-purchase-bar strong,
body.store-product-template-beauty[data-page="product"] .mobile-purchase-bar b {
  color: var(--store-product-ink) !important;
}

body.store-product-template-beauty[data-page="product"] .mobile-purchase-bar .mobile-purchase-price,
body.store-product-template-beauty[data-page="product"] .mobile-purchase-bar [data-mobile-price] {
  color: var(--store-product-accent) !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-choice__check,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-choice input:checked + .pp323-choice__surface .pp323-choice__check {
  border-color: var(--store-product-accent) !important;
  background: var(--store-product-accent) !important;
  color: var(--store-on-contrast,#fff) !important;
  box-shadow: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .pp323-choice input:focus-visible + .pp323-choice__surface,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity__control button:focus-visible,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .template-compact-quantity__control input:focus-visible {
  outline: 2px solid var(--store-product-accent) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

@media (max-width: 620px) {
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty.product-detail--rolling-ball-phase1 .product-info h1,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .product-info h1 {
    max-width: 10ch;
    font-size: clamp(2.15rem, 10.8vw, 2.85rem) !important;
    line-height: .98 !important;
    letter-spacing: -.035em !important;
  }

  body.store-product-template-beauty[data-page="product"] .mobile-purchase-bar {
    padding-top: 9px !important;
    padding-bottom: calc(9px + env(safe-area-inset-bottom)) !important;
  }
}

/* v0.5 editorial structure — Beauty owns its lower-page layout instead of relying on
   historical product-rolling-ball-v267 body classes. */
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: clip;
  background: var(--store-product-bg);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-page *,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-page *::before,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-page *::after {
  box-sizing: border-box;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-section,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-faq {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(64px, 7vw, 96px) 0;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-heading {
  max-width: 660px;
  margin: 0 0 30px;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-heading--center {
  margin-inline: auto;
  text-align: center;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-kicker {
  color: var(--store-product-accent) !important;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty :is(.rb267-heading, .rb267-story-hero__copy, .rb267-touch__copy, .rb268-product-facts__copy, .rb267-final__copy) h2 {
  margin: 9px 0 0;
  font-family: var(--store-display-font, Georgia, "Times New Roman", serif);
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-story-hero,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-touch,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb268-product-facts,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-final {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto 30px;
  min-height: 0;
  overflow: hidden;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty :is(.rb267-story-hero__media, .rb267-touch__media, .rb268-product-facts__media, .rb267-final__media) {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100%;
  min-height: 0;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty :is(.rb267-story-hero__media, .rb267-touch__media, .rb268-product-facts__media, .rb267-final__media) img {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-story-hero::after,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-final::after {
  display: none !important;
  content: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty :is(.rb267-story-hero__copy, .rb267-touch__copy, .rb268-product-facts__copy, .rb267-final__copy) {
  position: relative !important;
  inset: auto !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto !important;
  padding: clamp(36px, 5vw, 72px);
  transform: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty :is(.rb267-story-hero__copy, .rb267-touch__copy, .rb268-product-facts__copy, .rb267-final__copy) > p {
  max-width: 48ch;
  margin: 18px 0 0;
  color: inherit;
  font-size: .98rem;
  line-height: 1.65;
  opacity: .82;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-link-cta {
  align-self: flex-start;
  min-height: 44px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  color: var(--store-product-accent);
  background: transparent;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-mode-grid,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-surface-grid,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-visual-card,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-surface-grid figure,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid li {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--store-product-line);
  background: var(--store-surface, #fff);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty :is(.rb267-visual-card, .rb267-surface-grid figure, .rb267-step-grid figure) img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-visual-card figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb,var(--store-on-contrast,#fff) 62%,transparent);
  background: color-mix(in srgb,var(--store-product-bg) 90%,transparent);
  backdrop-filter: blur(10px);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-visual-card figcaption > i {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--store-surface, #fff);
  background: var(--store-product-accent);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-visual-card figcaption span,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid li > div {
  display: grid;
  gap: 3px;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-visual-card figcaption small,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid small {
  color: var(--store-product-muted);
  font-size: .78rem;
  line-height: 1.4;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-surface-grid figure {
  position: relative;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-surface-grid figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 8px 12px;
  background: color-mix(in srgb,var(--store-product-bg) 92%,transparent);
  color: var(--store-product-ink);
  font-size: .8rem;
  font-weight: 750;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-surface-note {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--store-product-muted);
  font-size: .8rem;
  line-height: 1.5;
  text-align: center;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-steps {
  width: min(1220px, calc(100% - 48px));
  padding-inline: 28px;
  background: var(--store-product-surface-soft) !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid figure {
  position: relative;
  margin: 0;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid figure span {
  position: absolute;
  bottom: -18px;
  left: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--store-on-contrast,#fff);
  border-radius: 50%;
  color: var(--store-surface, #fff);
  background: var(--store-product-accent);
  font-weight: 800;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid li > div {
  padding: 30px 18px 20px;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid strong {
  font-size: 1rem;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-mini-facts,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb268-product-facts__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-mini-facts span,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb268-product-facts__items span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb,var(--store-on-contrast,#fff) 18%,transparent);
  color: inherit;
  background: color-mix(in srgb,var(--store-on-contrast,#fff) 8%,transparent);
  font-size: .78rem;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb268-product-facts__items span {
  border-color: var(--store-product-line);
  background: color-mix(in srgb,var(--store-on-contrast,#fff) 44%,transparent);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-faq {
  display: grid;
  grid-template-columns: minmax(260px,.8fr) minmax(420px,1.2fr);
  gap: clamp(40px,6vw,90px);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-faq__heading {
  align-self: start;
  position: sticky;
  top: 100px;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-faq__list {
  border-top: 1px solid var(--store-product-line);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-faq__list details {
  border-bottom: 1px solid var(--store-product-line);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px 2px;
  color: var(--store-product-ink);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-faq__list summary::-webkit-details-marker {
  display: none;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-faq__list p {
  margin: 0 0 18px;
  color: var(--store-product-muted);
  font-size: .88rem;
  line-height: 1.65;
}

/* Empty review state should be trustworthy but quiet, not a fake-content wall. */
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb269-trust:has(.rb269-review-summary--empty-v304) {
  display: grid !important;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0;
  border-top: 1px solid var(--store-product-line);
  border-bottom: 1px solid var(--store-product-line);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb269-trust:has(.rb269-review-summary--empty-v304) .rb269-review-list {
  display: none !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb269-trust:has(.rb269-review-summary--empty-v304) .rb269-review-summary {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-final__price,
body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-final__selection {
  margin-top: 16px;
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-final__selection {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 430px;
  min-height: 62px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb,var(--store-on-contrast,#fff) 20%,transparent);
  background: color-mix(in srgb,var(--store-on-contrast,#fff) 8%,transparent);
}

body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-final__selection img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

@media (max-width: 700px) {
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-page {
    margin-top: 38px;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-section,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-faq {
    width: 100%;
    padding: 46px 0;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-heading,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-heading--center {
    max-width: none;
    margin: 0 0 20px;
    padding-inline: 14px;
    text-align: left;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty :is(.rb267-heading, .rb267-story-hero__copy, .rb267-touch__copy, .rb268-product-facts__copy, .rb267-final__copy) h2 {
    font-size: clamp(1.9rem, 8.8vw, 2.55rem);
    line-height: 1;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-story-hero,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-touch,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb268-product-facts,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-final {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 0 18px;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty :is(.rb267-story-hero__media, .rb267-touch__media, .rb268-product-facts__media, .rb267-final__media) img {
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty :is(.rb267-story-hero__copy, .rb267-touch__copy, .rb268-product-facts__copy, .rb267-final__copy) {
    padding: 28px 18px 32px;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-mode-grid,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-surface-grid {
    display: flex;
    width: calc(100% + 14px);
    gap: 12px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-mode-grid::-webkit-scrollbar,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-surface-grid::-webkit-scrollbar {
    display: none;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-visual-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-surface-grid figure {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-surface-note {
    justify-content: flex-start;
    margin: 14px 14px 0;
    text-align: left;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-steps {
    width: 100%;
    padding: 42px 14px;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid li {
    display: grid;
    grid-template-columns: minmax(118px, 40%) 1fr;
    min-height: 128px;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid figure,
  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid figure img {
    height: 100%;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid figure img {
    aspect-ratio: auto;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid figure span {
    top: 10px;
    right: -18px;
    bottom: auto;
    left: auto;
    width: 38px;
    height: 38px;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-step-grid li > div {
    align-content: center;
    padding: 18px 14px 18px 26px;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-faq {
    display: block;
    padding-inline: 14px;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb267-faq__heading {
    position: static;
    margin-bottom: 12px;
  }

  body.store-product-template-beauty[data-page="product"] .product-detail--beauty .rb269-trust:has(.rb269-review-summary--empty-v304) {
    width: calc(100% - 28px);
    padding: 38px 0;
  }
}
