/* Shop service pages: reference service 59, with the neutral viewed cards from 48. */
@layer site-service-theme {
  body.module-shop:has(#layout.entry-layout .product-page) {
    background: #f2f4f5 !important;
  }

  :where(body.module-shop #layout.entry-layout) .product-page {
    --svc-glass: rgba(41, 182, 246, .4);
    --svc-edge: rgba(255, 255, 255, .68);
    --svc-shadow: 0 8px 26px rgba(24, 86, 119, .12), inset 0 1px 0 rgba(255, 255, 255, .54);
    --svc-ink: #173b48;
    --svc-link: #245f78;
    --svc-blue: #0091ea;
  }

  /* The existing HERO template supplies the layout, form, icons and shine. */
  :where(body.module-shop #layout.entry-layout .product-page) .product-main.service-hero-enabled,
  :where(body.module-shop #layout.entry-layout .product-page) .product-main.service-hero-enabled::before {
    border-radius: 18px !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page .service-hero-enabled) .custom-social-group .custom-msg-btn {
    border: 1px solid rgba(255, 255, 255, .58) !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page .service-hero-enabled) .hero-cta-form-wrap :is(textarea, input[type="text"], input[type="tel"], input[type="email"]) {
    border-color: rgba(0, 145, 234, .2) !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page .service-hero-enabled) .hero-cta-form-wrap :is(textarea, input[type="text"], input[type="tel"], input[type="email"]):focus {
    border-color: var(--svc-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 145, 234, .13) !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page) .service-landing-wrapper {
    --service-accent: var(--svc-ink) !important;
    --service-accent-dark: var(--svc-link) !important;
    --service-line: rgba(0, 145, 234, .25) !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page .service-landing-wrapper) :is(h2, h3, .faq-title) {
    color: #000 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page) :is(.breadcrumbs a, .tabs-head .tabs-link.active),
  :where(body.module-shop #layout.entry-layout .product-page .service-landing-wrapper) a:not(:is([role="button"], [class*="btn"], [class*="button"])) {
    color: var(--svc-link) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page .service-landing-wrapper) a:not(:is([role="button"], [class*="btn"], [class*="button"])):is(:hover, :focus-visible) {
    color: var(--svc-ink) !important;
    text-decoration-color: currentColor !important;
  }

  /* Include the legacy callouts that specify their surface directly in the description. */
  :where(body.module-shop #layout.entry-layout .product-page .service-landing-wrapper) :is(.service-hero, .service-card, .service-step, .service-related, .service-price-callout, .service-image-placeholder),
  :where(body.module-shop #layout.entry-layout .product-page .service-landing-wrapper) > div:is([style*="#fff4e8" i], [style*="230, 126, 34"], [style*="230,126,34"]):not(:has(table)) {
    background: var(--svc-glass) !important;
    border: 1px solid var(--svc-edge) !important;
    border-radius: 18px !important;
    box-shadow: var(--svc-shadow) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page .service-landing-wrapper) > div:is([style*="border-left: 4px solid #e67e22" i], [style*="border-left:4px solid #e67e22" i]):not(:has(table)) {
    border-inline-start: 4px solid var(--svc-blue) !important;
    color: var(--svc-ink) !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page .service-landing-wrapper) > div[style*="background" i]:has(.service-table) {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* One surface per FAQ card; keep the answer on the same glass. */
  :where(body.module-shop #layout.entry-layout .product-page) :is(.faq-box, .faq-custom-cards) details {
    background: var(--svc-glass) !important;
    border: 1px solid var(--svc-edge) !important;
    border-radius: 15px !important;
    box-shadow: var(--svc-shadow) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page) :is(.faq-box, .faq-custom-cards) :is(summary, .details-inner, .faq-answer) {
    background: transparent !important;
    color: #000 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page) :is(.faq-box, .faq-custom-cards) summary :is(.summary-title, strong) {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page) :is(.faq-box, .faq-custom-cards) summary::after {
    color: #000 !important;
    -webkit-text-fill-color: currentColor !important;
    opacity: 1 !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page) .faq-box summary::after {
    background-color: #000 !important;
  }

  /* Some descriptions use a text plus rather than the shop icon mask. */
  :where(body.module-shop #layout.entry-layout .product-page) :is(.faq-custom-cards, .faq-box .faq-container details) summary::after {
    mask: none !important;
    background-color: transparent !important;
  }

  :where(body.module-shop #layout.entry-layout .product-page) :is(.faq-box, .faq-custom-cards) summary:focus-visible {
    outline: 2px solid var(--svc-link) !important;
    outline-offset: -4px;
    border-radius: 14px;
  }

  @media (hover: hover) and (pointer: fine) {
    :where(body.module-shop #layout.entry-layout .product-page) :is(.faq-box, .faq-custom-cards) details:hover {
      background: rgba(41, 182, 246, .46) !important;
      border-color: rgba(0, 145, 234, .5) !important;
      box-shadow: 0 12px 26px rgba(24, 86, 119, .15), inset 0 1px 0 rgba(255, 255, 255, .62) !important;
    }
  }

  :where(body.module-shop #layout.entry-layout .product-page) :is(.faq-box, .faq-custom-cards) details[open] {
    background: rgba(41, 182, 246, .5) !important;
    border-color: rgba(0, 145, 234, .5) !important;
  }

  @media (prefers-reduced-motion: reduce) {
    :where(body.module-shop #layout.entry-layout .product-page) :is(.faq-box, .faq-custom-cards) details {
      transform: none !important;
      transition: none !important;
    }
  }

  /* On service 59 only, restore the catalog glass and states used by service 48. */
  :where(body.module-shop #layout.entry-layout) .viewed-products.service-glass-demo .product-card {
    color: #020203 !important;
    background: rgba(255, 255, 255, .54) !important;
    border-color: rgba(0, 145, 234, .16) !important;
    box-shadow: 0 7px 22px rgba(31, 41, 55, .07), inset 0 1px 0 rgba(255, 255, 255, .58) !important;
    -webkit-backdrop-filter: blur(12px) saturate(118%) !important;
    backdrop-filter: blur(12px) saturate(118%) !important;
  }

  :where(body.module-shop #layout.entry-layout) .viewed-products.service-glass-demo .product-pictures {
    background: transparent !important;
  }

  :where(body.module-shop #layout.entry-layout) .viewed-products.service-glass-demo h2 {
    color: #020203 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  :where(body.module-shop #layout.entry-layout) .viewed-products.service-glass-demo .product-card-title {
    color: #0091ea !important;
    -webkit-text-fill-color: currentColor !important;
  }

  :where(body.module-shop #layout.entry-layout) .viewed-products.service-glass-demo .product-card-title:is(:hover, :focus-visible) {
    color: #245f78 !important;
  }

  :where(body.module-shop #layout.entry-layout) .viewed-products.service-glass-demo .swiper-pagination-bullet {
    background: #0091ea !important;
  }

  @media (hover: hover) and (pointer: fine) {
    :where(body.module-shop #layout.entry-layout) .viewed-products.service-glass-demo .product-card:hover {
      background: rgba(255, 255, 255, .66) !important;
      border-color: rgba(0, 145, 234, .58) !important;
      box-shadow: 0 11px 26px rgba(0, 145, 234, .11), 0 5px 15px rgba(31, 41, 55, .06), inset 0 1px 0 rgba(255, 255, 255, .68) !important;
    }
  }

  @media (max-width: 768px) {
    :where(body.module-shop #layout.entry-layout) .viewed-products.service-glass-demo .product-card {
      background: rgba(255, 255, 255, .72) !important;
      -webkit-backdrop-filter: blur(8px) saturate(112%) !important;
      backdrop-filter: blur(8px) saturate(112%) !important;
    }
  }
}
