/*
Theme Name: Palm Beach Vitality
Theme URI: https://palmbeach-vitality.store
Author: Palm Beach Vitality
Description: WooCommerce storefront matched to the Shopify homepage — announcement bar, 2.35:1 logo banner, centered lab hero, FAQ accordion.
Version: 2.10.70
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: palmbeach-vitality
*/

:root {
  --pbv-bg: #ffffff;
  --pbv-fg: #0a0a0a;
  --pbv-muted: #6b6b6b;
  --pbv-line: #111111;
  --pbv-soft: #f7f7f7;
  --pbv-max: 72rem;
  /* Exact width of Peptide Vials collection hero (.pbv-cat-banner) */
  --pbv-cat-hero-col: min(100% - 1.5rem, 64rem);
  /* Product page content column (unchanged; not the collection hero) */
  --pbv-mobile-col: min(100% - 2rem, 36rem);
  --pbv-font-body: "Work Sans", system-ui, sans-serif;
  --pbv-font-display: "Libre Baskerville", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--pbv-font-body);
  color: var(--pbv-fg);
  background: var(--pbv-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main { flex: 1; }

.pbv-container {
  width: min(100% - 2rem, var(--pbv-max));
  margin-inline: auto;
}

/* Announcement — white bar, black text (Shopify match) */
.pbv-announce {
  background: #fff;
  color: #111;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #eee;
}

.pbv-confirm-banner {
  background: #0b1220;
  color: #fff;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.4;
  padding: 0.75rem 1rem;
}

/* Header — hamburger dropdown on all viewports (same as mobile) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 3.25rem;
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
  padding: 0.35rem 0;
}

/* Legacy inline desktop nav — unused; dropdown panel is the primary menu */
.primary-nav {
  display: none !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
}

.pbv-icon-link {
  position: relative;
  display: inline-flex;
  color: #111;
  line-height: 0;
}

.pbv-cart-count {
  position: absolute;
  top: -0.4rem;
  right: -0.55rem;
  min-width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  padding: 0 0.2rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
  color: #111;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #eee;
  padding: 0.5rem 1rem 1rem;
  background: #fff;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav .menu,
.mobile-nav .sub-menu {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 28rem);
}

.mobile-nav .sub-menu {
  margin: 0;
  width: 100%;
  padding: 0 0 0.15rem 0.85rem;
  border-left: 2px solid #e8e8e8;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0.15rem;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111;
}

.mobile-nav .menu-item-has-children > a {
  font-weight: 600;
}

.mobile-nav .sub-menu a {
  padding: 0.55rem 0.15rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #333;
}

.mobile-nav .menu > li:last-child > a,
.mobile-nav .menu > li:last-child .sub-menu a:last-child {
  border-bottom: 0;
}

/* Parent rows with children: show a subtle affordance in the hamburger menu */
.mobile-nav .menu-item-has-children > a::after {
  content: "";
  float: right;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  border-right: 1.5px solid #999;
  border-bottom: 1.5px solid #999;
  transform: rotate(45deg);
}

@media (min-width: 980px) {
  .site-header__inner {
    min-height: 3.5rem;
  }

  .mobile-nav {
    padding: 0.65rem 1.25rem 1.15rem;
  }

  .mobile-nav .menu {
    width: min(100%, 32rem);
  }

  .mobile-nav a {
    font-size: 1rem;
    padding: 0.85rem 0.25rem;
  }
}

/* Wide 2.35:1 logo banner — directly under announcement bar */
.pbv-logo-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* Horizontal inset lives on the card width so it matches product description */
  padding: 1rem 0 0.85rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.pbv-logo-card {
  display: block;
  /* Same width as Peptide Vials collection hero */
  width: var(--pbv-cat-hero-col);
  max-width: 64rem;
  aspect-ratio: 2.35 / 1;
  border-radius: 1.25rem;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  background: #e8e4ef;
}

.pbv-logo-card:hover {
  opacity: 1;
}

.pbv-logo-card__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/*
 * Mobile hero: portrait panel (min 9:16) with FULL copy.
 * Content is in normal flow so text is never clipped; image covers the frame.
 * Critical rules are also inlined on front-page.php for cache safety.
 */
.pbv-hero {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  /* Same horizontal inset model as logo banner — width lives on the photo */
  padding: 0.75rem 0 0.5rem;
  margin: 0;
  box-sizing: border-box;
}

.pbv-hero-photo {
  position: relative;
  display: block;
  /* Same width as Peptide Vials collection hero + logo */
  width: var(--pbv-cat-hero-col);
  max-width: 64rem;
  aspect-ratio: auto;
  height: auto;
  min-height: calc((100vw - 1.5rem) * 16 / 9);
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, #0b1220 0%, #12304a 45%, #1a6b7a 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.pbv-hero-photo__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 0;
}

.pbv-hero-photo__overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      180deg,
      rgba(3, 8, 18, 0.5) 0%,
      rgba(3, 8, 18, 0.7) 42%,
      rgba(3, 8, 18, 0.9) 100%
    );
  z-index: 1;
  pointer-events: none;
}

.pbv-hero-photo__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  min-height: inherit;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: clamp(1.1rem, 4.5vw, 1.5rem) clamp(0.9rem, 3.5vw, 1.2rem) clamp(1.25rem, 4.5vw, 1.65rem);
  text-align: center;
  overflow: visible;
  color: #fff;
}

.pbv-hero-photo__title,
.pbv-hero-photo__subtitle,
.pbv-hero-photo__body,
.pbv-hero-photo__welcome,
.pbv-hero-photo__wholesale,
.pbv-hero-photo__cta {
  display: block;
  width: 100%;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 1;
  visibility: visible;
  flex-shrink: 0;
  font-family: var(--pbv-font-body);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.pbv-hero-photo__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.38rem, 5.75vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pbv-hero-photo__subtitle {
  margin: 0 0 0.85rem;
  font-size: clamp(0.98rem, 3.8vw, 1.21rem);
  font-weight: 700;
  line-height: 1.25;
  color: #7ec8ff;
}

.pbv-hero-photo__body,
.pbv-hero-photo__welcome,
.pbv-hero-photo__wholesale {
  margin: 0 0 0.7rem;
  font-size: clamp(0.95rem, 3.5vw, 1.12rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.pbv-hero-photo__welcome {
  margin-top: 0.15rem;
  font-weight: 600;
}

.pbv-hero-photo__wholesale {
  margin-bottom: 0;
}

.pbv-hero-photo__wholesale a {
  color: #7ec8ff;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.pbv-hero-photo__wholesale a:hover {
  opacity: 1;
  color: #a8dbff;
}

.pbv-hero-photo__cta {
  margin: 0.85rem 0 0.45rem;
}

.pbv-hero-photo__shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #fff;
  color: #0b1220 !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: none;
}

.pbv-hero-photo__shop:hover {
  opacity: 0.92;
  color: #0b1220 !important;
}

.pbv-hero-photo--placeholder {
  background: linear-gradient(120deg, #0b1220 0%, #12304a 45%, #1a6b7a 100%);
}

@media (min-width: 750px) {
  .pbv-logo-banner {
    padding: 1.35rem 0 1.1rem;
  }

  .pbv-logo-card {
    width: var(--pbv-cat-hero-col);
    max-width: 64rem;
    border-radius: 1.5rem;
  }

  .pbv-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem 0 0.75rem;
  }

  .pbv-hero-photo {
    width: var(--pbv-cat-hero-col);
    max-width: 64rem;
    height: calc(min(100vw - 1.5rem, 64rem) / 2.35 * 2);
    min-height: 0;
    aspect-ratio: auto;
    margin: 0 auto;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  }

  .pbv-hero-photo__img {
    object-position: center center;
  }

  .pbv-hero-photo__content {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    padding: 1.75rem 1.35rem 1.85rem;
    overflow: auto;
    justify-content: center;
  }

  /* Desktop: title + subtitle stay largest; body block reads larger and even */
  .pbv-hero-photo__title {
    font-size: 2.34rem;
  }

  .pbv-hero-photo__subtitle {
    font-size: 1.39rem;
    margin-bottom: 1.1rem;
  }

  .pbv-hero-photo__body,
  .pbv-hero-photo__welcome,
  .pbv-hero-photo__wholesale {
    font-size: 1.2rem;
    line-height: 1.55;
  }

  .pbv-hero-photo__title,
  .pbv-hero-photo__subtitle,
  .pbv-hero-photo__body,
  .pbv-hero-photo__welcome,
  .pbv-hero-photo__wholesale,
  .pbv-hero-photo__cta {
    max-width: 44rem;
  }
}

/* Most Popular — middle homepage section */
.pbv-popular__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pbv-popular__title {
  font-family: var(--pbv-font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin: 0;
}

.pbv-popular__link {
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.pbv-popular__empty {
  color: var(--pbv-muted);
}

/* Homepage collections + featured products */
.pbv-home-shop,
.pbv-home-products {
  padding: clamp(2.25rem, 6vw, 3.75rem) 0;
}

.pbv-home-shop {
  background: #fff;
}

.pbv-home-products {
  background: var(--pbv-soft);
}

.pbv-home-shop__inner,
.pbv-home-products__inner {
  width: var(--pbv-cat-hero-col);
  margin-inline: auto;
}

.pbv-home-shop__title {
  font-family: var(--pbv-font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  margin: 0 0 0.45rem;
  color: #111;
}

.pbv-home-shop__lede {
  margin: 0 auto 1.6rem;
  max-width: 32rem;
  text-align: center;
  color: var(--pbv-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pbv-home-collections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.pbv-home-collection {
  display: block;
  background: transparent;
  line-height: 0;
}

.pbv-home-collection:hover {
  opacity: 1;
}

.pbv-home-collection__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.pbv-home-products__more {
  margin: 1.6rem 0 0;
  text-align: center;
}

.pbv-home-products__more .btn {
  min-width: 12rem;
}

.pbv-home-products ul.products {
  margin-bottom: 0;
}

@media (min-width: 700px) {
  .pbv-home-collections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

/* FAQ */
.pbv-faq {
  background: var(--pbv-soft);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.pbv-faq__inner { max-width: 44rem; }

.pbv-faq__title {
  font-family: var(--pbv-font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  margin: 0 0 2rem;
  color: #111;
}

.pbv-faq__list {
  border-top: 1px solid #111;
}

.pbv-faq__item {
  border-bottom: 1px solid #111;
}

.pbv-faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.15rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.pbv-faq__item summary::-webkit-details-marker { display: none; }

.pbv-faq__chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.pbv-faq__item[open] .pbv-faq__chevron {
  transform: rotate(225deg);
}

.pbv-faq__answer {
  padding: 0 1.5rem 1.15rem 0.15rem;
  color: var(--pbv-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pbv-faq__answer a { text-decoration: underline; }

/* Page / shop chrome */
.pbv-section { padding: clamp(2rem, 5vw, 3.5rem) 0; }

.pbv-page-header {
  border-bottom: 1px solid #eee;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}

.pbv-page-header h1 {
  font-family: var(--pbv-font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
}

.entry-content {
  width: min(100% - 2rem, 44rem);
  margin: 2.5rem auto;
}

.pbv-legal h2 {
  font-family: var(--pbv-font-display);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.6rem;
}

.pbv-legal p {
  margin: 0 0 0.9rem;
  color: #222;
  line-height: 1.6;
}

.pbv-disclaimer {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e5e5;
  background: var(--pbv-soft);
  font-size: 0.82rem;
  color: var(--pbv-muted);
}

/* Category header cards (~10% larger than 42rem baseline) */
.pbv-cat-title-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100% - 1.5rem, 46.2rem);
  margin: 0.75rem auto 1.75rem;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pbv-cat-title-image img {
  display: block;
  width: 100%;
  max-width: 46.2rem;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Category title cards — match collection banner width on all four archives */
.tax-product_cat.term-peptide-pens .pbv-cat-title-image,
.tax-product_cat.term-peptides .pbv-cat-title-image,
.tax-product_cat.term-weight-loss .pbv-cat-title-image,
.tax-product_cat.term-weight-loss-pens .pbv-cat-title-image {
  width: min(100% - 1.5rem, 64rem);
}

.tax-product_cat.term-peptide-pens .pbv-cat-title-image img,
.tax-product_cat.term-peptides .pbv-cat-title-image img,
.tax-product_cat.term-weight-loss .pbv-cat-title-image img,
.tax-product_cat.term-weight-loss-pens .pbv-cat-title-image img {
  max-width: 64rem;
}

/* Peptides category — lab image banner with centered collection copy */
.pbv-cat-banner {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--pbv-cat-hero-col);
  margin: 0.75rem auto 1.25rem;
  min-height: clamp(22rem, 58vw, 32rem);
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    var(--pbv-cat-banner-image, none) center / cover no-repeat,
    linear-gradient(120deg, #07101c 0%, #12304a 55%, #1a6b7a 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  color: #fff;
}

.pbv-cat-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 10, 22, 0.55) 0%, rgba(3, 10, 22, 0.72) 45%, rgba(3, 10, 22, 0.82) 100%);
  z-index: 1;
}

.pbv-cat-banner__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 42rem);
  padding: 2rem 1rem;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.pbv-cat-banner__title {
  margin: 0 0 1.1rem;
  font-family: var(--pbv-font-body);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.pbv-cat-banner__title span {
  color: #7ec8ff;
}

.pbv-cat-banner__content p {
  margin: 0 0 0.95rem;
  font-size: clamp(0.88rem, 1.7vw, 1.02rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
}

.pbv-cat-banner__content p:last-child {
  margin-bottom: 0;
}

@media (min-width: 750px) {
  .pbv-cat-banner {
    min-height: 28rem;
    border-radius: 1.5rem;
  }

  .pbv-cat-banner__content {
    padding: 2.75rem 1.25rem;
  }
}

/* Hide default text titles when card headers are shown */
.tax-product_cat.term-peptides .woocommerce-products-header__title,
.tax-product_cat.term-peptide-pens .woocommerce-products-header__title,
.tax-product_cat.term-weight-loss .woocommerce-products-header__title,
.tax-product_cat.term-weight-loss-pens .woocommerce-products-header__title,
.tax-product_cat.term-peptides header.woocommerce-products-header .page-title,
.tax-product_cat.term-peptide-pens header.woocommerce-products-header .page-title,
.tax-product_cat.term-weight-loss header.woocommerce-products-header .page-title,
.tax-product_cat.term-weight-loss-pens header.woocommerce-products-header .page-title,
.tax-product_cat.term-peptides h1.page-title,
.tax-product_cat.term-peptide-pens h1.page-title,
.tax-product_cat.term-weight-loss h1.page-title,
.tax-product_cat.term-weight-loss-pens h1.page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.25rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--pbv-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: #111;
  color: #fff !important;
}

.btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.single_add_to_cart_button:hover {
  background: #333;
  color: #fff !important;
  opacity: 1;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  text-align: center;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: block;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img,
.related.products ul.products li.product img,
.pbv-home-products ul.products li.product img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 auto 0.65rem !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 1.15rem !important;
  box-shadow: none !important;
  image-rendering: auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.92rem;
  padding: 0;
  margin: 0 0 0.2rem;
  font-family: var(--pbv-font-body);
  font-weight: 600;
  line-height: 1.3;
}

.woocommerce ul.products li.product .price {
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
}

.woocommerce ul.products li.product .button {
  margin-top: 0.55rem;
  width: 100%;
}

@media (min-width: 700px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem 1.1rem;
  }

  .woocommerce ul.products li.product a img,
  .woocommerce ul.products li.product img {
    max-width: none;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
  }
}

@media (min-width: 1020px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .woocommerce ul.products li.product a img,
  .woocommerce ul.products li.product img {
    max-width: none;
  }
}

/* Single product — centered stack: image, title/price, description, then cart */
.woocommerce div.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  width: var(--pbv-mobile-col);
  max-width: 36rem;
  margin: 1.25rem auto 3rem;
  text-align: center;
  box-sizing: border-box;
}

.woocommerce div.product::before,
.woocommerce div.product::after {
  display: none !important;
  content: none !important;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce div.product .pbv-product-purchase {
  width: 100% !important;
  float: none !important;
  margin: 0;
  padding: 0;
  clear: both;
}

.woocommerce div.product div.images .woocommerce-product-gallery,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  max-width: 20rem;
  margin: 0 auto;
}

.woocommerce div.product div.images img,
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  width: 70%;
  max-width: 18rem;
  height: auto;
  max-height: min(48vh, 24rem);
  margin: 0 auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #eef2f5;
  border-radius: 1.15rem;
}

/* One product image only — hide gallery thumbnail strips / flex control nav */
.woocommerce div.product div.images .flex-control-thumbs,
.woocommerce div.product div.images .flex-control-nav,
.woocommerce div.product div.images ol.flex-control-nav,
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs,
.woocommerce div.product .woocommerce-product-gallery__trigger {
  display: none !important;
}

.woocommerce div.product div.summary {
  text-align: center;
}

.woocommerce div.product .product_title {
  font-family: var(--pbv-font-display);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.55rem;
}

.woocommerce div.product p.price {
  color: #111;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.woocommerce div.product .woocommerce-product-rating {
  justify-content: center;
  text-align: center;
}

.woocommerce div.product .product_meta {
  display: none !important;
}

.woocommerce div.product .pbv-product-purchase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: 0.25rem;
}

.woocommerce div.product .pbv-product-description,
.woocommerce div.product .woocommerce-product-details__short-description {
  /* Fill product column so width matches mobile logo exactly */
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  text-align: center;
  color: #222;
  line-height: 1.65;
  font-size: 0.98rem;
  box-sizing: border-box;
}

.woocommerce div.product .pbv-product-description > * {
  text-align: center;
}

.woocommerce div.product .pbv-product-description p,
.woocommerce div.product .woocommerce-product-details__short-description p {
  margin: 0 0 0.75rem;
}

.woocommerce div.product .pbv-product-description p:last-child,
.woocommerce div.product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

/* Product research-use boxes are checkout-only now */
.pbv-ruo-banner,
.woocommerce div.product .pbv-ruo-banner,
.pbv-product-description img[src*="ruo-warning-label"],
.woocommerce-product-details__short-description img[src*="ruo-warning-label"],
.woocommerce div.product img[src*="ruo-warning-label"] {
  display: none !important;
}

.pbv-product-description img[src*="image_6.jpg"],
.woocommerce-product-details__short-description img[src*="image_6.jpg"],
.woocommerce div.product img[src*="image_6.jpg"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0.15rem 0 0;
  width: 100%;
}

.woocommerce div.product form.cart .quantity {
  margin: 0;
  float: none;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  width: min(100%, 16rem);
  margin: 0;
}

/* Research studies + amino diagram (below Add to cart) */
.pbv-product-research {
  width: 100%;
  max-width: 100%;
  margin: 1.75rem auto 0;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
}

.pbv-product-research__title {
  margin: 0 0 0.45rem;
  font-family: var(--pbv-font-display);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.3;
  color: #111;
}

.pbv-product-research__intro {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #555;
}

.pbv-product-research__list {
  list-style: decimal;
  margin: 0 auto;
  padding: 0 0 0 1.25rem;
  text-align: left;
}

.pbv-product-research__item {
  margin: 0 0 0.85rem;
  padding: 0;
}

.pbv-product-research__link {
  display: inline;
  color: #0a5f6e;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pbv-product-research__link:hover {
  opacity: 0.75;
}

.pbv-product-research__source {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #6b6b6b;
}

.pbv-product-research__amino {
  margin: 1.5rem auto 0;
  padding: 0;
  max-width: 100%;
  text-align: center;
}

.pbv-product-research__amino img {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  margin: 0 auto;
  border: 1px solid #efe4df;
  border-radius: 0.75rem;
  background: #faf6f4;
}

.pbv-product-research__amino figcaption {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: #6b6b6b;
}

@media (max-width: 640px) {
  .pbv-product-research {
    width: 100%;
    margin-top: 1.35rem;
    padding: 0 0.15rem;
  }

  .pbv-product-research__list {
    padding-left: 1.1rem;
  }

  .pbv-product-research__link {
    font-size: 0.88rem;
  }

  .pbv-product-research__amino img {
    border-radius: 0.6rem;
  }
}

.related.products,
.upsells.products {
  width: 100%;
  margin: 0 auto 2.5rem;
  padding-top: 0.5rem;
  text-align: center;
}

.related.products > h2,
.upsells.products > h2 {
  font-family: var(--pbv-font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin: 0 0 1.35rem;
  color: #111;
}

@media (min-width: 900px) {
  .woocommerce div.product {
    width: min(100% - 2rem, 38rem);
    max-width: 38rem;
    gap: 1.6rem;
    margin: 2rem auto 3.5rem;
  }

  .woocommerce div.product div.images .woocommerce-product-gallery,
  .woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    max-width: 22rem;
  }

  .woocommerce div.product div.images img,
  .woocommerce div.product div.images .woocommerce-product-gallery__image img {
    width: 70%;
    max-width: 18rem;
    max-height: 26rem;
  }
}

.woocommerce-breadcrumb {
  font-size: 0.8rem;
  color: var(--pbv-muted);
  margin: 1.25rem auto 0;
  width: min(100% - 2rem, var(--pbv-max));
}

.woocommerce-notices-wrapper {
  width: min(100% - 2rem, var(--pbv-max));
  margin-inline: auto;
}

/* Footer — centered socials + copyright / Terms */
.site-footer {
  margin-top: auto;
  border-top: 1px solid #eee;
  background: #fff;
  color: var(--pbv-muted);
  padding: 1.5rem 0 1.35rem;
  font-size: 0.82rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--pbv-muted); }
.site-footer a:hover { color: #111; opacity: 1; }

.pbv-social {
  width: 100%;
  display: flex;
  justify-content: center;
}

.pbv-social__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pbv-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: #222;
  background: #f4f4f4;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pbv-social__link:hover {
  background: #111;
  color: #fff;
  opacity: 1;
  transform: translateY(-1px);
}

.pbv-social__link--pending {
  opacity: 0.45;
  cursor: default;
}

.pbv-social__link--pending:hover {
  background: #f4f4f4;
  color: #222;
  transform: none;
}

.pbv-terms-menu {
  position: relative;
}

.pbv-terms-menu__dropdown {
  position: relative;
}

.pbv-terms-menu__summary {
  list-style: none;
  cursor: pointer;
  color: var(--pbv-muted);
  font-size: 0.82rem;
  text-align: right;
}

.pbv-terms-menu__summary::-webkit-details-marker { display: none; }

.pbv-terms-menu__summary::after {
  content: " ▾";
  font-size: 0.7em;
}

.pbv-terms-menu__dropdown[open] .pbv-terms-menu__summary {
  color: #111;
}

.pbv-terms-menu__list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.4rem);
  min-width: 15rem;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 0.65rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 50;
}

.pbv-terms-menu__list a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: #111;
  white-space: nowrap;
}

.pbv-terms-menu__list a:hover {
  background: #f7f7f7;
  opacity: 1;
}

/* Terms page accordion */
.pbv-policies {
  width: min(100% - 2rem, 48rem);
  margin-inline: auto;
}

.pbv-policies__intro {
  margin: 0 0 1.25rem;
  color: var(--pbv-muted);
}

.pbv-policies__list {
  display: grid;
  gap: 0.65rem;
}

.pbv-policy {
  border: 1px solid #e8e8e8;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
  scroll-margin-top: 5.5rem;
}

.pbv-policy__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  color: #111;
}

.pbv-policy__summary::-webkit-details-marker { display: none; }

.pbv-policy__chevron::before {
  content: "+";
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--pbv-muted);
}

.pbv-policy[open] .pbv-policy__chevron::before { content: "–"; }

.pbv-policy__body {
  width: auto;
  margin: 0;
  padding: 0 1.1rem 1.15rem;
  border-top: 1px solid #eee;
}

.pbv-policy__body h3 {
  font-size: 1.05rem;
  margin: 1.1rem 0 0.45rem;
}

.pbv-policy__body ul {
  margin: 0.4rem 0 0.9rem 1.1rem;
  padding: 0;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Homepage lead popup (Omnisend-style) */
.pbv-lead-popup {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.pbv-lead-popup[hidden] {
  display: none !important;
}

.pbv-lead-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.pbv-lead-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 52rem);
  border-radius: 0.35rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.pbv-lead-popup__close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.pbv-lead-popup__split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 22rem;
}

.pbv-lead-popup__form-side {
  background: #000;
  color: #fff;
  padding: 2rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pbv-lead-popup__title {
  margin: 0 0 0.55rem;
  font-family: var(--pbv-font-body);
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  color: #7ec8ff;
}

.pbv-lead-popup__subtitle {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.pbv-lead-popup__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pbv-lead-popup__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0.2rem;
  background: #000;
  color: #fff;
  padding: 0.85rem 0.9rem;
  font-family: var(--pbv-font-body);
  font-size: 0.95rem;
}

.pbv-lead-popup__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.pbv-lead-popup__submit {
  width: 100%;
  border: 0;
  border-radius: 0.35rem;
  background: #7b3cff;
  color: #fff;
  padding: 0.9rem 1rem;
  font-family: var(--pbv-font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.pbv-lead-popup__submit:hover {
  background: #6a2fe6;
}

.pbv-lead-popup__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.pbv-lead-popup__optin {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.pbv-lead-popup__optin input {
  margin-top: 0.15rem;
  accent-color: #7b3cff;
}

.pbv-lead-popup__status {
  margin: 0;
  font-size: 0.85rem;
  color: #9fe6b8;
}

.pbv-lead-popup__status.is-error {
  color: #ffb4b4;
}

.pbv-lead-popup__privacy {
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.pbv-lead-popup__privacy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pbv-lead-popup__media {
  min-height: 14rem;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
    #12304a center / cover no-repeat;
  background-size: cover;
  background-position: center;
}

@media (min-width: 780px) {
  .pbv-lead-popup__split {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 24rem;
  }

  .pbv-lead-popup__form-side {
    padding: 2.4rem 2rem 1.75rem;
  }

  .pbv-lead-popup__media {
    min-height: 100%;
  }
}

body.pbv-lead-popup-open {
  overflow: hidden;
}

/* Contact form */
.pbv-contact {
  width: min(100% - 2rem, 40rem);
  margin: 0 auto;
}

.pbv-contact__intro {
  margin: 0 0 1.5rem;
  color: #333;
  line-height: 1.55;
}

.pbv-contact__status {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  border-radius: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.pbv-contact__status.is-success {
  background: #e8f6ef;
  color: #0f5132;
  border: 1px solid #b7e1cb;
}

.pbv-contact__status.is-error {
  background: #fdecea;
  color: #842029;
  border: 1px solid #f1aeb5;
}

.pbv-contact-form {
  display: grid;
  gap: 1rem;
}

.pbv-contact-form__row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .pbv-contact-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.pbv-contact-form__field {
  display: grid;
  gap: 0.4rem;
}

.pbv-contact-form__field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
}

.pbv-contact-form__field label span {
  color: #b42318;
}

.pbv-contact-form__field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d5dd;
  border-radius: 0.55rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: #111;
  background: #fff;
}

.pbv-contact-form__field input:focus {
  outline: 2px solid #1a6b7a;
  outline-offset: 1px;
  border-color: #1a6b7a;
}

.pbv-contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pbv-contact-form__submit {
  justify-self: start;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 0.55rem;
  padding: 0.85rem 1.5rem;
  background: #0b1220;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.pbv-contact-form__submit:hover {
  background: #12304a;
}

.pbv-contact-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Checkout — required policy checkboxes + expandable policy dropdowns */
.pbv-checkout-page .pbv-container,
.pbv-cart-page .pbv-container {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

.pbv-checkout-policies {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid #eee;
  text-align: left;
}

.pbv-checkout-policy {
  margin: 0 0 1rem;
}

.pbv-checkout-policy .form-row {
  margin: 0 0 0.45rem !important;
  padding: 0 !important;
}

.pbv-checkout-policy label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #111;
  cursor: pointer;
}

.pbv-checkout-policy input[type="checkbox"] {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.pbv-checkout-policy .required {
  color: #b91c1c;
  text-decoration: none;
  border: 0;
}

.pbv-checkout-policy__dropdown {
  margin: 0 0 0.25rem 1.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.55rem;
  background: #f8fafb;
  overflow: hidden;
}

.pbv-checkout-policy__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #12304a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pbv-checkout-policy__summary::-webkit-details-marker {
  display: none;
}

.pbv-checkout-policy__summary::after {
  content: "+";
  font-weight: 700;
  color: #1a6b7a;
}

.pbv-checkout-policy__dropdown[open] .pbv-checkout-policy__summary::after {
  content: "–";
}

.pbv-checkout-policy__body {
  padding: 0 0.9rem 0.9rem;
  border-top: 1px solid #e5e7eb;
  max-height: 16rem;
  overflow: auto;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #1f2937;
  background: #fff;
}

.pbv-checkout-policy__body h3 {
  margin: 0.85rem 0 0.55rem;
  font-size: 1rem;
}

.pbv-checkout-policy__body p,
.pbv-checkout-policy__body ul {
  margin: 0 0 0.7rem;
}

.pbv-checkout-policy__page-link {
  margin: 0.85rem 0 0 !important;
  padding-top: 0.65rem;
  border-top: 1px solid #eee;
}

.pbv-checkout-policy__page-link a {
  color: #1a6b7a;
  font-weight: 600;
  text-decoration: underline;
}

/* Checkout shipping note + cold-pack totals */
.pbv-checkout-shipping-note {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d9e7ea;
  background: #f4fafb;
  color: #12304a;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Checkout: product name + qty above red X + "Remove item" */
.pbv-checkout-page .pbv-checkout-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.pbv-checkout-page .pbv-checkout-item-name {
  display: block;
  line-height: 1.35;
}

.pbv-checkout-page .pbv-checkout-item-qty {
  font-weight: 700;
  white-space: nowrap;
}

.pbv-checkout-page .pbv-checkout-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #b91c1c;
  text-decoration: none;
  /* Match Subtotal / order-review table text size */
  font-size: 1em;
  font-weight: 700;
  line-height: 1.2;
}

.pbv-checkout-page .pbv-checkout-remove:hover,
.pbv-checkout-page .pbv-checkout-remove:focus {
  color: #991b1b;
  text-decoration: underline;
}

.pbv-checkout-page .pbv-checkout-remove__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
}

.pbv-checkout-page .pbv-checkout-remove__label {
  white-space: nowrap;
}

/* Bitcoin ($BTC) payment method */
.pbv-btc-payment-fields {
  margin: 0.35rem 0 0;
}

.pbv-btc-payment-fields__steps {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #334155;
}

.pbv-btc-payment-fields__step {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  padding: 0;
}

.pbv-btc-payment-fields__num {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  font-weight: 700;
  color: #111;
  line-height: 1.5;
}

.pbv-btc-payment-fields__text {
  flex: 1 1 auto;
  min-width: 0;
}

.pbv-btc-pay {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0.85rem 0 0;
}

.pbv-btc-qr {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
}

.pbv-btc-qr__code {
  width: 168px;
  height: 168px;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.pbv-btc-qr__code img,
.pbv-btc-qr__code canvas,
.pbv-btc-qr__img {
  display: block;
  width: 100%;
  height: 100%;
}

.pbv-btc-qr__caption {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111;
}

.pbv-btc-pay .pbv-btc-copy {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

@media (max-width: 640px) {
  .pbv-btc-pay {
    flex-direction: column;
    align-items: center;
  }

  .pbv-btc-pay .pbv-btc-copy {
    width: 100%;
  }
}

.pbv-btc-copy {
  margin: 0.35rem 0 0;
}

.pbv-btc-copy__label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
}

.pbv-btc-copy__row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.pbv-btc-copy__address {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.5rem 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.3rem;
  font-size: 0.82rem;
  line-height: 1.4;
  word-break: break-all;
}

.pbv-btc-copy__btn {
  flex: 0 0 auto;
  border: 1px solid #111;
  border-radius: 0.3rem;
  background: #111;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-family: var(--pbv-font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.pbv-btc-copy__btn:hover {
  background: #333;
}

.pbv-btc-platforms {
  margin: 0.85rem 0 0;
}

.pbv-btc-platforms__label {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
}

.pbv-btc-platforms__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pbv-btc-platforms__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #111;
  border-radius: 0.3rem;
  background: #fff;
  color: #111 !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
}

.pbv-btc-platforms__link:hover {
  background: #111;
  color: #fff !important;
}

.pbv-btc-platforms__hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #64748b;
}

.pbv-btc-rate-row th,
.pbv-btc-rate-row td {
  vertical-align: top;
}

.pbv-btc-rate {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pbv-btc-rate--compact {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pbv-btc-rate__label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
}

.pbv-btc-rate__usd {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  color: #334155;
}

.pbv-btc-rate__btc-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.pbv-btc-rate--compact .pbv-btc-rate__btc-row {
  display: block;
}

.pbv-btc-rate__value {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.3rem;
}

.pbv-btc-rate--compact .pbv-btc-rate__value {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
}

.pbv-btc-rate__btc {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

.pbv-btc-rate--compact .pbv-btc-rate__btc {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
}

.pbv-btc-rate__unit {
  align-self: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111;
}

.pbv-btc-rate__meta,
.pbv-btc-rate__updated,
.pbv-btc-rate__status {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #64748b;
}

.pbv-btc-rate__live {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.25rem;
  color: #047857;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pbv-btc-rate__live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pbv-btc-pulse 1.6s ease-out infinite;
}

.pbv-btc-rate.is-error .pbv-btc-rate__status {
  color: #b45309;
}

@keyframes pbv-btc-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  70% {
    box-shadow: 0 0 0 0.4rem rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pbv-btc-instructions {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pbv-btc-instructions h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

/* Google Sign-In */
.pbv-google-signin {
  margin: 0 0 1.25rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

.pbv-google-signin__label {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.pbv-google-signin__btn {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.pbv-google-signin__status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: #0f766e;
}

.pbv-google-signin__status.is-error {
  color: #b91c1c;
}

.pbv-welcome-coupon-hint {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--pbv-fg);
  background: var(--pbv-soft);
  border-left: 3px solid var(--pbv-line);
}

.pbv-welcome-coupon-hint__link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.pbv-welcome-coupon-hint__link:hover {
  color: #111;
}

