/* Only the additions needed to host the native Luuma elements in the captured
   Topfatbikes storefront. Merchant layout lives in the snapshot stylesheets. */
body.tf-demo {
  margin: 0;
  background: rgb(var(--background-primary));
  color: rgb(var(--text-primary));
  font: var(--text-font-style) var(--text-font-weight) var(--text-base) / 1.6 var(--text-font-family);
  letter-spacing: var(--text-letter-spacing);
  color-scheme: light;
}
.tf-demo reveal-items { display: block; opacity: 1; }
.tf-demo safe-sticky { display: block; }
.tf-demo .product-info { display: block; }
.tf-demo .tf-storefront-rounded { border-radius: var(--rounded) !important; }
.tf-demo .header__link-list .text-with-icon { display: inline-flex; }
.tf-demo .tf-inline-product,
.tf-demo .tf-inline-category,
.tf-demo .tf-inline-faq { display: block; min-width: 0; width: 100%; }
.tf-inline-product { margin-block: 24px; }
.tf-inline-faq { margin-block-start: 48px; }
.tf-demo .quickspark-widget { z-index: 100; }
.tf-demo :is(a, button, input, summary):focus-visible { outline: 2px solid #00a9e4; outline-offset: 4px; }
.tf-demo .product-gallery__media { scroll-snap-align: start; }
.tf-demo .product-gallery__media-list { scroll-behavior: smooth; }
.tf-demo .product-gallery__thumbnail[aria-current="true"] { outline: 2px solid currentColor; outline-offset: -2px; }
.tf-demo .post-selection__atc-btn { display: block; }
.tf-demo .tf-filter-apply { margin-block: 20px; }
.tf-demo details[open] > summary .circle-chevron { transform: rotate(180deg); }
.tf-demo x-popover.tf-popover-open {
  display: block;
  visibility: visible;
  opacity: 1;
  position: absolute;
  inset: 100% 0 auto auto;
  z-index: 20;
  width: max-content;
  max-width: 90vw;
  padding: 16px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #dedede;
  border-radius: 8px;
  box-shadow: 0 8px 24px #0002;
}
.tf-demo .sort-by-facet { position: relative; }
.tf-demo .popover-listbox { display: grid; }
.tf-demo .popover-listbox__option { padding: 10px 16px; }
.tf-demo .popover-listbox__option:hover { background: #f5f5f5; }
.tf-mobile-menu,
.tf-gallery-zoom {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 28px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  border: 0;
  color: #1a1a1a;
  background: #fff;
  border-radius: 12px;
}
.tf-mobile-menu::backdrop,
.tf-gallery-zoom::backdrop { background: #0009; }
.tf-mobile-menu { width: 420px; }
.tf-mobile-menu [data-close-menu],
.tf-gallery-zoom button,
.tf-drawer-close { display: block; margin-left: auto; min-width: 44px; min-height: 44px; font-size: 28px; }
.tf-mobile-menu .header_main-menu { display: grid; gap: 12px; padding: 0; margin: 0; }
.tf-mobile-menu .header_main-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.tf-gallery-zoom img { max-height: calc(100dvh - 140px); width: auto; object-fit: contain; }
.tf-demo .facets-drawer[open] {
  display: block;
  visibility: visible;
  opacity: 1;
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  width: min(420px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  overflow: auto;
  padding: 24px;
  z-index: 101;
  background: #f7f7f7;
  color: #1a1a1a;
}
.tf-demo .facets-drawer::backdrop { background: #0008; }
@media (max-width: 699px) {
  .tf-inline-category { margin-bottom: 32px; }
  .tf-inline-product { margin-block: 20px; }
  .tf-inline-faq { margin-top: 32px; }
  .tf-demo .facets__floating-filter { bottom: 24px; width: auto; left: 20px; right: 90px; }
  .tf-demo .facets__floating-filter .button { width: 100%; padding-inline: 12px; }
  .tf-demo .product-card__top { min-width: 0; width: 100%; }
  .tf-demo .product-card__title { white-space: normal; overflow-wrap: anywhere; }
  .tf-demo .collection-description.mobile .bfcm-collection-banner-link { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-demo .product-gallery__media-list { scroll-behavior: auto; }
}
