/** Shopify CDN: Minification failed

Line 11137:0 Unexpected "}"

**/
:root {
  --bb-font-title: "skia-cc", sans-serif;
  --bb-font-display: "cafeteria", sans-serif;
  --bb-font-body: Arial, Helvetica, sans-serif;

  --bb-pink: #c7017f;
  --bb-yellow-text: #ffdd00;
  --bb-yellow-bar: #ffdd00;
  --bb-blue: #482683;
  --bb-sky-blue: #afdef9;
  --bb-white: #ffffff;

  --bb-site-max-width: 1440px;
  --bb-section-gutter: clamp(18px, 4vw, 56px);
}

body {
  color: var(--bb-blue);
}

.bb-font-title {
  font-family: var(--bb-font-title);
  font-weight: 900;
}

.bb-font-display {
  font-family: var(--bb-font-display);
  font-weight: 800;
}

.bb-sky-section {
  background-color: var(--bb-sky-blue);
}

/* Shared layout helpers */
.bb-site-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.bb-site-canvas {
  max-width: var(--bb-site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--bb-section-gutter);
  padding-right: var(--bb-section-gutter);
  width: 100%;
  box-sizing: border-box;
}

.bb-trademark {
  display: inline;
  font-size: 0.45em;
  line-height: 0;
  vertical-align: baseline;
  position: relative;
  top: -0.8em;
  margin-left: 0.02em;
}

/* ================================
   Global CTA arrow
   Prevents iOS rendering play triangle as emoji
================================ */

.bb-cta-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-top: 0.38em solid transparent;
  border-bottom: 0.38em solid transparent;
  border-left: 0.62em solid currentColor;
  margin-left: 0.08em;
}



/* ================================
   Bedtime Besties scroll reveals
================================ */

.bb-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
  will-change: opacity, transform;
}

.bb-reveal.bb-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.bb-reveal--delay-1 {
  transition-delay: 0.08s;
}

.bb-reveal--delay-2 {
  transition-delay: 0.16s;
}

.bb-reveal--delay-3 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .bb-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* ================================
   Bedtime Besties interaction motion
================================ */

.bb-header__cta,
.bb-hero__cta,
.bb-animal-feature__cta,
.bb-dream-team__button,
.bb-coming-soon__cta,
.bb-footer-decor__social-link,
footer .email-signup__button,
.footer .email-signup__button {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .bb-header__cta:hover,
  .bb-hero__cta:hover,
  .bb-animal-feature__cta:hover,
  .bb-dream-team__button:hover,
  .bb-coming-soon__cta:hover {
    transform: translateY(-2px);
  }

  .bb-footer-decor__social-link:hover {
    transform: translateY(-2px) scale(1.05);
  }

  footer .email-signup__button:hover,
  .footer .email-signup__button:hover {
    transform: translateY(-50%) scale(1.06) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-hero__slide-content,
  .bb-reviews-social__track,
  .bb-header__cta,
  .bb-hero__cta,
  .bb-animal-feature__cta,
  .bb-dream-team__button,
  .bb-coming-soon__cta,
  .bb-footer-decor__social-link,
  footer .email-signup__button,
  .footer .email-signup__button {
    transition: none !important;
  }
}

/* ================================
   Bedtime Besties announcement bar
================================ */

.bb-announcement-bar {
  position: relative;
  z-index: 30;

  width: 100%;
  height: 30px;
  min-height: 30px;
  max-height: 30px;

  overflow: hidden;

  background: var(--bb-pink);
  color: var(--bb-white);
}


/* ================================
   Inner
================================ */

.bb-announcement-bar__inner {
  width: min(100%, 1280px);
  height: 30px;
  min-height: 30px;
  max-height: 30px;

  margin-inline: auto;
  padding-inline: 24px;

  box-sizing: border-box;
  overflow: hidden;

  font-family: var(--bb-font-display);
  font-weight: 800;
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1;

  text-transform: uppercase;
  white-space: nowrap;
}


/* ================================
   Scrolling track
================================ */

.bb-announcement-bar__track {
  display: flex;
  flex-direction: row;
  align-items: center;

  width: max-content;

  height: 30px;
  min-height: 30px;
  max-height: 30px;

  will-change: transform;
  transform: translate3d(0, 0, 0);
}


/* ================================
   Announcement set

   Original + cloned set sit
   side-by-side inside the track.
================================ */

.bb-announcement-bar__set {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;

  flex: 0 0 auto;

  width: max-content;

  height: 30px;
  min-height: 30px;
  max-height: 30px;

  padding-right: 24px;

  box-sizing: border-box;
  white-space: nowrap;
}


/* ================================
   Announcement items
================================ */

.bb-announcement-bar__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  height: 30px;
  min-height: 30px;
  max-height: 30px;

  color: var(--bb-white);

  text-decoration: none;
  white-space: nowrap;
}

.bb-announcement-bar__item--first {
  color: var(--bb-yellow-text);
}

.bb-announcement-bar__item:hover {
  color: inherit;
  text-decoration: none;
}


/* ================================
   Emoji separators
================================ */

.bb-announcement-bar__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 24px;

  width: 24px;
  min-width: 24px;
  height: 24px;

  margin-left: clamp(14px, 1.4vw, 24px);
  margin-right: clamp(14px, 1.4vw, 24px);

  font-size: 1em;
  line-height: 1;

  text-align: center;
}


/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  .bb-announcement-bar {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
  }

  .bb-announcement-bar__inner {
    height: 30px;
    min-height: 30px;
    max-height: 30px;

    padding-inline: 0;

    font-size: 16px;
  }

  .bb-announcement-bar__track {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
  }

  .bb-announcement-bar__set {
    height: 30px;
    min-height: 30px;
    max-height: 30px;

    padding-right: 14px;
  }

  .bb-announcement-bar__item {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
  }

  .bb-announcement-bar__emoji {
    flex: 0 0 24px;

    width: 24px;
    min-width: 24px;
    height: 24px;

    margin-left: 14px;
    margin-right: 14px;
  }

}
/* ================================

   Bedtime Besties custom header

\================================ */



.bb-header {

  background: #ffffff;

  color: var(--bb-blue);

  position: relative;

  z-index: 20;

  width: 100vw;

  margin-left: calc(50% - 50vw);

  margin-right: calc(50% - 50vw);

}





/* ================================

   Full-bleed rows

\================================ */



.bb-header__top,

.bb-header__bottom,

.bb-header__mobile-menu {

  width: 100%;

}





/* ================================

   Top white header

\================================ */



.bb-header__top {

  position: relative;

  z-index: 1;

  width: 100%;

  height: 140px;

  min-height: 140px;

  max-height: 140px;

  background: #ffffff;

}



.bb-header__top-inner {

  position: relative;

  z-index: 1;



  display: grid;

  grid-template-columns: 1fr auto 1fr;

  grid-template-rows: 140px;

  align-items: stretch;



  width: min(100%, 1280px);

  height: 140px;

  min-height: 140px;

  max-height: 140px;



  margin-inline: auto;



  /* Restored original positioning */

  padding: 8px 24px 0;



  box-sizing: border-box;

  overflow: visible;

}





/* ================================

   Left side

\================================ */



.bb-header__top-left {

  display: flex;

  align-items: center;

  justify-content: flex-start;



  min-width: 0;

  min-height: 0;



  overflow: visible;

}



.bb-header__collect {

  font-family: var(--bb-font-title);

  font-weight: 900;



  color: #1a1a1a;



  font-size: clamp(28px, 2.5vw, 42px);

  line-height: 0.95;



  text-transform: uppercase;

  white-space: nowrap;



  letter-spacing: -0.01em;

}





/* ================================

   Collect logo

\================================ */



.bb-header__collect-image {

  display: flex;

  align-items: center;

  justify-content: flex-start;



  width: 100%;

  max-width: 340px;

  height: 100%;



  min-width: 0;

  min-height: 0;



  position: relative;

  z-index: 0;



  overflow: visible;



  transform: none;



  line-height: 0;

  text-decoration: none;

}



.bb-header__collect-gif {

  display: block;



  width: auto;

  height: auto;



  max-width: 325px;

  max-height: 132px;



  object-fit: contain;

  object-position: left center;



  position: relative;

  z-index: 0;



  margin: 0;

}





/* ================================

   Centre logo / Bestie heads

\================================ */



.bb-header__logo-wrap {

  display: flex;



  /* Keep Bestie heads anchored

     to the bottom of the header */

  align-items: flex-end;

  justify-content: center;

  align-self: stretch;



  min-width: 0;

  min-height: 0;



  overflow: visible;



  position: relative;

  z-index: 2;

}



.bb-header__logo-link {

  display: inline-flex;

  align-items: flex-end;

  justify-content: center;



  line-height: 0;

  overflow: visible;

}



.bb-header__logo-link--mobile {

  display: none;

}



.bb-header__logo--mobile {

  display: none;

}



.bb-header__logo {

  display: block;



  width: auto;

  height: 160px;



  max-width: 270px;

  max-height: none;



  object-fit: contain;



  /* Original bottom positioning */

  margin-bottom: -8px;

}



.bb-header__shop-name {

  font-family: var(--bb-font-title);

  font-weight: 900;



  color: var(--bb-blue);



  text-decoration: none;

  font-size: 28px;

}





/* ================================

   Right side

\================================ */



.bb-header__top-right {

  display: flex;

  align-items: center;

  justify-content: flex-end;



  gap: clamp(14px, 1.5vw, 24px);



  min-width: 0;



  position: relative;

  z-index: 2;

}





/* ================================

   Country selector

\================================ */



.bb-header__country-select {

  border: 0;



  background: transparent;

  color: var(--bb-blue);



  font-family: var(--bb-font-body);

  font-size: 15px;



  max-width: 220px;



  padding: 0;



  appearance: auto;

  cursor: pointer;

}





/* ================================

   Header icons

\================================ */



.bb-header__icon-link {

  color: var(--bb-blue);

  text-decoration: none;



  display: inline-flex;

  align-items: center;

  justify-content: center;



  position: relative;



  flex: 0 0 auto;

}



.bb-header__icon {

  display: block;



  width: 30px;

  height: 30px;

}



.bb-header__cart-count {

  position: absolute;



  top: -8px;

  right: -9px;



  min-width: 18px;

  height: 18px;



  padding: 0 5px;



  border-radius: 999px;



  background: var(--bb-pink);

  color: var(--bb-white);



  font-family: var(--bb-font-body);

  font-size: 11px;

  line-height: 18px;



  text-align: center;

}





/* ================================

   Bottom yellow nav row

\================================ */



.bb-header__bottom {

  position: relative;

  z-index: 10;



  width: 100%;

  min-height: 34px;



  background: var(--bb-yellow-bar);

}



.bb-header__bottom-inner {

  position: relative;

  z-index: 10;



  display: flex;

  align-items: stretch;

  justify-content: center;



  gap: clamp(18px, 2vw, 34px);



  width: min(100%, 1440px);

  min-height: 34px;



  margin-inline: auto;



  padding-left: 24px;

  padding-right: 24px;



  box-sizing: border-box;

}





/* ================================

   Main navigation

\================================ */



.bb-header__nav {

  display: flex;

  align-items: stretch;

  justify-content: center;



  gap: clamp(18px, 2vw, 42px);



  min-width: 0;



  flex: 0 0 auto;

}



.bb-header__nav-link {

  display: inline-flex;

  align-items: center;

  justify-content: center;



  padding: 8px 0;

  min-height: 34px;



  font-family: var(--bb-font-title);

  font-weight: 900;



  color: var(--bb-blue);



  font-size: clamp(18px, 1.3vw, 24px);

  line-height: 1;



  text-decoration: none;

  white-space: nowrap;



  transition:

    color .18s ease,

    transform .18s ease;

}



.bb-header__nav-link:hover {

  color: var(--bb-pink);

  text-decoration: none;

  transform: translateY(-2px) scale(1.03);

}



.bb-header__nav-link:focus-visible {

  color: var(--bb-pink);

  text-decoration: none;

  transform: translateY(-2px) scale(1.03);



  outline: 3px solid var(--bb-pink);

  outline-offset: 3px;

  border-radius: 4px;

}



/* ================================

   CTA buttons

\================================ */



.bb-header__ctas {

  display: flex;

  align-items: stretch;



  flex: 0 0 auto;



  position: relative;

  z-index: 10;

}



.bb-header__cta {

  display: inline-flex;

  align-items: center;

  justify-content: center;



  min-height: 34px;



  padding: 8px clamp(22px, 1.8vw, 34px);



  font-family: var(--bb-font-title);

  font-weight: 900;



  color: var(--bb-white);



  font-size: clamp(18px, 1.3vw, 24px);

  line-height: 1;



  text-decoration: none;

  white-space: nowrap;

}



.bb-header__cta:hover {

  color: var(--bb-white);

  text-decoration: none;

}



.bb-header__cta--shop {

  background: var(--bb-blue);

}



.bb-header__cta--signup {

  background: var(--bb-pink);

}





/* ================================

   Mobile menu button

\================================ */



.bb-header__mobile-toggle {

  display: none;



  width: 42px;

  height: 42px;



  padding: 8px;



  border: 0;



  background: transparent;

  color: var(--bb-blue);



  cursor: pointer;

}



.bb-header__mobile-toggle span:not(.visually-hidden) {

  display: block;



  height: 2px;

  margin: 5px 0;



  background: currentColor;

}





/* ================================

   Mobile dropdown

\================================ */



.bb-header__mobile-menu {

  position: relative;

  z-index: 10;



  background: var(--bb-yellow-bar);



  border-top:

    1px solid

    rgb(72 38 131 / 15%);

}



.bb-header__mobile-menu-inner {

  padding-top: 0;

  padding-bottom: 0;

}



.bb-header__mobile-link {

  display: block;



  padding: 14px 22px;



  font-family: var(--bb-font-title);

  font-weight: 900;



  color: var(--bb-blue);



  text-decoration: none;



  font-size: 22px;

  line-height: 1.1;

}



.bb-header__mobile-link:hover {

  color: var(--bb-blue);

  text-decoration: none;

}



.bb-header__mobile-link--cta {

  background: var(--bb-blue);

  color: var(--bb-white);

}



.bb-header__mobile-link--cta:hover {

  color: var(--bb-white);

}



.bb-header__mobile-link--cta +

.bb-header__mobile-link--cta {

  background: var(--bb-pink);

}





/* ================================

   Tablet

\================================ */



@media screen and (max-width: 989px) {



  .bb-header__top {

    height: 82px;

    min-height: 82px;

    max-height: 82px;

  }



  .bb-header__top-inner {

    grid-template-columns: auto 1fr auto;

    grid-template-rows: 82px;



    height: 82px;

    min-height: 82px;

    max-height: 82px;



    max-width: none;



    padding:

      8px

      var(--bb-section-gutter);



    align-items: center;

  }



  .bb-header__mobile-toggle {

    display: inline-block;



    grid-column: 1;

    grid-row: 1;

  }



  .bb-header__top-left {

    display: none;

  }



  .bb-header__logo-wrap {

    grid-column: 2;



    align-items: center;

    justify-content: center;



    position: relative;

    z-index: 2;

  }



  .bb-header__logo-link--desktop {

    display: none;

  }



  .bb-header__logo--desktop {

    display: none;

  }



  .bb-header__logo-link--mobile {

    display: inline-flex;

    align-items: center;

    justify-content: center;



    line-height: 0;

  }



  .bb-header__logo--mobile {

    display: block;



    width: auto;

    height: auto;



    max-width: 240px;

    max-height: 64px;



    object-fit: contain;

  }



  .bb-header__top-right {

    grid-column: 3;

    gap: 12px;

  }



  .bb-header__localization,

  .bb-header__top-right

  .bb-header__icon-link[aria-label="Search"] {

    display: none;

  }



  .bb-header__bottom {

    display: none;

  }



}





/* ================================

   Mobile

\================================ */



@media screen and (max-width: 749px) {



  .bb-header__top {

    height: 82px;

    min-height: 82px;

    max-height: 82px;

  }



  .bb-header__top-inner {

    grid-template-columns: auto 1fr auto;

    grid-template-rows: 82px;



    height: 82px;

    min-height: 82px;

    max-height: 82px;

  }



  .bb-header__top-left {

    display: none;

  }



  .bb-header__logo-wrap {

    grid-column: 2;



    align-items: center;

    justify-content: center;

  }



  .bb-header__logo--mobile {

    display: block;



    width: auto;

    height: auto;



    max-width: 255px;

    max-height: 68px;



    object-fit: contain;



    margin: 0;



    transform: translateY(-4px);

  }



  .bb-header__top-right {

    gap: 10px;

  }



  .bb-header__icon {

    width: 27px;

    height: 27px;

  }



  .bb-header__mobile-toggle {

    width: 40px;

    height: 40px;



    padding: 7px;

  }



}

/* ==========================================================
   BYLINE PRICING ROUNDELS — additions to existing BB header
   ========================================================== */
.bb-header__top-left { gap: clamp(8px, 1.2vw, 20px); }
.bb-header__top-right { gap: clamp(10px, 1.1vw, 18px); }
.bb-header__price {
  --roundel-size: 106px;
  width: var(--roundel-size);
  height: var(--roundel-size);
  min-width: var(--roundel-size);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
  padding: 8px 3px;
  color: #fff;
  flex-shrink: 0;
}
.bb-header__price--monthly { background: #c7017f; }
.bb-header__price--oneoff { background: #482683; }
.bb-header__price-heading,
.bb-header__price-caption {
  color: #ffdd00;
  font-family: var(--bb-font-title);
  font-weight: 900;
}
.bb-header__price-heading { font-size: 13px; }
.bb-header__price-amount {
  color: #fff;
  font-family: var(--bb-font-display);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.06em;
  margin: 3px 0 1px;
}
.bb-header__price-postage {
  color: #fff;
  font-family: var(--bb-font-body);
  font-size: 9px;
  font-weight: 700;
}
.bb-header__price-caption { font-size: 12px; line-height: .95; margin-top: 3px; }
.bb-header__price:focus-visible { outline: 3px solid #ffdd00; outline-offset: 3px; }
.bb-header__price-flip { display: none; }
@media (min-width: 990px) {
  .bb-header__top-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .bb-header__top-left { min-width: 0; }
  .bb-header__collect-image { flex: 1 1 auto; min-width: 0; }
  .bb-header__collect-gif { max-width: min(100%, 325px); }
  .bb-header__price--desktop { --roundel-size: clamp(85px, 8.3vw, 106px); }
}
@media (max-width: 989px) {
  .bb-header__price--desktop { display: none; }
  .bb-header__top-inner { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .bb-header__logo-wrap { gap: 8px; min-width: 0; }
  .bb-header__logo-link--mobile { min-width: 0; flex: 0 1 auto; }
  .bb-header__logo--mobile { max-width: min(100%, 210px); }
  .bb-header__price-flip {
    --roundel-size: 70px;
    display: block;
    width: var(--roundel-size);
    height: var(--roundel-size);
    flex: 0 0 var(--roundel-size);
    perspective: 600px;
  }
  .bb-header__price-flip-inner {
    position: relative;
    width: 100%; height: 100%;
    transform-style: preserve-3d;
    animation: bb-roundel-flip 8s infinite;
  }
  .bb-header__price--mobile {
    --roundel-size: 70px;
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    padding: 5px 2px;
  }
  .bb-header__price-flip-back { transform: rotateY(180deg); }
  .bb-header__price--mobile .bb-header__price-heading { font-size: 9px; }
  .bb-header__price--mobile .bb-header__price-amount { font-size: 18px; margin: 2px 0 1px; }
  .bb-header__price--mobile .bb-header__price-postage { font-size: 7px; }
  .bb-header__price--mobile .bb-header__price-caption { font-size: 8px; margin-top: 2px; }
  .bb-header__price-flip:hover .bb-header__price-flip-inner,
  .bb-header__price-flip:focus-within .bb-header__price-flip-inner { animation-play-state: paused; }
}
@keyframes bb-roundel-flip {
  0%, 44% { transform: rotateY(0deg); }
  50%, 94% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}
@media (max-width: 520px) {
  .bb-header__top-inner { padding-left: 8px; padding-right: 8px; }
  .bb-header__logo-wrap { gap: 5px; }
  .bb-header__price-flip, .bb-header__price--mobile { --roundel-size: 62px; }
  .bb-header__price--mobile .bb-header__price-amount { font-size: 16px; }
  .bb-header__price--mobile .bb-header__price-heading { font-size: 8px; }
  .bb-header__price--mobile .bb-header__price-caption { font-size: 7px; }
  .bb-header__logo--mobile { max-width: min(100%, 150px); }
  .bb-header__top-right { gap: 6px; }
  .bb-header__icon { width: 24px; height: 24px; }
}
@media (max-width: 375px) {
  .bb-header__price-flip, .bb-header__price--mobile { --roundel-size: 56px; }
  .bb-header__logo--mobile { max-width: min(100%, 125px); }
  .bb-header__top-inner { padding-left: 4px; padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-header__price-flip-inner { animation: none !important; }
}

/* ==========================================================
   BYLINE ROUNDELS - REFINED PRICE AND HEADING SPACING
   Keep approved desktop horizontal positions and circle sizes.
   ========================================================== */
.bb-header__price {
  border: 0;
  overflow: visible;
  padding: 7px 2px 5px;
}
.bb-header__price-heading,
.bb-header__price-caption,
.bb-header__price-postage {
  font-family: var(--bb-font-title);
  font-weight: 900;
  font-synthesis: none;
}
.bb-header__price-amount {
  font-family: var(--bb-font-display);
  font-weight: 800;
  font-synthesis: none;
  color: #fff;
  font-size: 44px;
  line-height: .91;
  letter-spacing: -.035em;
  white-space: nowrap;
  margin: 0 0 1px;
  -webkit-text-stroke: 0;
  /* Layered shadow gives a heavy outline without eroding white glyphs. */
  --bb-price-outline: #482683;
  text-shadow:
    -3px 0 var(--bb-price-outline), 3px 0 var(--bb-price-outline),
    0 -3px var(--bb-price-outline), 0 3px var(--bb-price-outline),
    -2px -2px var(--bb-price-outline), 2px -2px var(--bb-price-outline),
    -2px 2px var(--bb-price-outline), 2px 2px var(--bb-price-outline),
    -3px -1px var(--bb-price-outline), 3px -1px var(--bb-price-outline),
    -3px 1px var(--bb-price-outline), 3px 1px var(--bb-price-outline),
    -1px -3px var(--bb-price-outline), 1px -3px var(--bb-price-outline),
    -1px 3px var(--bb-price-outline), 1px 3px var(--bb-price-outline);
}
.bb-header__price--oneoff .bb-header__price-amount {
  --bb-price-outline: #c7017f;
}
.bb-header__price-heading,
.bb-header__price-caption {
  color: #ffdd00;
  -webkit-text-stroke: 0;
  text-shadow:
    -1.5px 0 #482683, 1.5px 0 #482683,
    0 -1.5px #482683, 0 1.5px #482683,
    -1px -1px #482683, 1px -1px #482683,
    -1px 1px #482683, 1px 1px #482683;
}
.bb-header__price-heading {
  position: relative;
  z-index: 2;
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-2px);
  margin-bottom: -5px;
}
.bb-header__price-postage {
  font-size: 10px;
  line-height: 1;
  margin-top: 0;
}
.bb-header__price-caption {
  font-size: 13px;
  line-height: .88;
  margin-top: 1px;
}
@media screen and (min-width: 990px) {
  .bb-header__top-inner { position: relative; }
  .bb-header__top-left,
  .bb-header__top-right { position: static; }
  .bb-header__price--desktop {
    position: absolute;
    top: calc(50% + 5px);
    z-index: 3;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  .bb-header__top-left > .bb-header__price--desktop { left: 24%; }
  .bb-header__top-right > .bb-header__price--desktop { left: 76%; }
}
@media screen and (max-width: 989px) {
  .bb-header__price--mobile { padding: 5px 1px 3px; }
  .bb-header__price--mobile .bb-header__price-heading {
    font-size: 12px;
    transform: translateY(-1px);
    margin-bottom: -3px;
  }
  .bb-header__price--mobile .bb-header__price-amount {
    font-size: 27px;
    margin: 0 0 1px;
    /* Scale the shadow with the smaller mobile artwork. */
    text-shadow:
      -1.8px 0 var(--bb-price-outline), 1.8px 0 var(--bb-price-outline),
      0 -1.8px var(--bb-price-outline), 0 1.8px var(--bb-price-outline),
      -1.3px -1.3px var(--bb-price-outline), 1.3px -1.3px var(--bb-price-outline),
      -1.3px 1.3px var(--bb-price-outline), 1.3px 1.3px var(--bb-price-outline);
  }
  .bb-header__price--mobile .bb-header__price-postage { font-size: 7px; }
  .bb-header__price--mobile .bb-header__price-caption { font-size: 9px; margin-top: 2px; }
}
@media screen and (max-width: 520px) {
  .bb-header__price--mobile .bb-header__price-heading { font-size: 11px; }
  .bb-header__price--mobile .bb-header__price-amount { font-size: 24px; }
  .bb-header__price--mobile .bb-header__price-caption { font-size: 8px; }
}
@media screen and (max-width: 375px) {
  .bb-header__price--mobile .bb-header__price-heading { font-size: 10px; }
  .bb-header__price--mobile .bb-header__price-amount { font-size: 21px; }
  .bb-header__price--mobile .bb-header__price-caption { font-size: 7px; }
}


/* ==========================================================
   BYLINE FINAL: P&P OUTLINES AND MOBILE HEADER ORDER
   Mobile: menu | account + cart | logo + flipping roundel
   ========================================================== */
.bb-header__price-postage {
  color: #ffffff;
  font-family: var(--bb-font-title);
  font-weight: 900;
  text-shadow:
    -1.5px 0 #482683, 1.5px 0 #482683,
    0 -1.5px #482683, 0 1.5px #482683,
    -1px -1px #482683, 1px -1px #482683,
    -1px 1px #482683, 1px 1px #482683;
}
.bb-header__price--oneoff .bb-header__price-postage {
  text-shadow:
    -1.5px 0 #c7017f, 1.5px 0 #c7017f,
    0 -1.5px #c7017f, 0 1.5px #c7017f,
    -1px -1px #c7017f, 1px -1px #c7017f,
    -1px 1px #c7017f, 1px 1px #c7017f;
}
/* ==========================================================
   BYLINE MOBILE SCAMP - BALANCED SPACING
   Left: menu / account / bag. Remaining space: logo / offer.
   Uses flexible distribution, not fixed pixel positioning.
   ========================================================== */
@media screen and (max-width: 989px) {
  .bb-header__top-inner {
    display: grid;
    grid-template-columns: 40px max-content minmax(0, 1fr);
    column-gap: clamp(5px, 1vw, 12px);
    align-items: center;
    padding-inline: clamp(8px, 2vw, 18px);
  }
  .bb-header__mobile-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .bb-header__top-right {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    justify-content: flex-start;
    gap: clamp(8px, 1.7vw, 14px);
  }
  .bb-header__logo-wrap {
    grid-column: 3;
    grid-row: 1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 8px;
  }
  .bb-header__logo-link--mobile {
    flex: 0 1 auto;
    min-width: 0;
  }
  .bb-header__logo--mobile {
    width: auto;
    height: auto;
    max-width: min(100%, 175px);
    max-height: 66px;
    margin: 0;
    transform: none;
  }
  .bb-header__price-flip { flex: 0 0 var(--roundel-size); }
  .bb-header__price--mobile .bb-header__price-postage { font-size: 7px; }
}
@media screen and (max-width: 520px) {
  .bb-header__top-inner {
    grid-template-columns: 34px max-content minmax(0, 1fr);
    column-gap: 5px;
    padding-inline: 8px;
  }
  .bb-header__mobile-toggle { width: 34px; height: 40px; padding: 5px; }
  .bb-header__top-right { gap: 7px; }
  .bb-header__icon { width: 25px; height: 25px; }
  .bb-header__logo-wrap { gap: 5px; }
  .bb-header__logo--mobile { max-width: min(100%, 150px); max-height: 62px; }
  .bb-header__price-flip, .bb-header__price--mobile { --roundel-size: 70px; }
  .bb-header__price--mobile .bb-header__price-heading { font-size: 12px; }
  .bb-header__price--mobile .bb-header__price-amount { font-size: 27px; }
  .bb-header__price--mobile .bb-header__price-caption { font-size: 9px; }
}
@media screen and (max-width: 390px) {
  .bb-header__top-inner {
    grid-template-columns: 31px max-content minmax(0, 1fr);
    column-gap: 3px;
    padding-inline: 5px;
  }
  .bb-header__mobile-toggle { width: 31px; padding: 4px; }
  .bb-header__top-right { gap: 5px; }
  .bb-header__icon { width: 23px; height: 23px; }
  .bb-header__logo-wrap { gap: 3px; }
  .bb-header__logo--mobile { max-width: min(100%, 125px); }
  .bb-header__price-flip, .bb-header__price--mobile { --roundel-size: 62px; }
  .bb-header__price--mobile .bb-header__price-heading { font-size: 11px; }
  .bb-header__price--mobile .bb-header__price-amount { font-size: 24px; }
  .bb-header__price--mobile .bb-header__price-caption { font-size: 8px; }
}

/* ==========================================================
   MOBILE: VIEWPORT-CENTRED LOGO (October 2026)
   Keep menu/account/cart left and flip roundel right.
   Centre the logo independently of both side groups.
   ========================================================== */
@media screen and (max-width: 989px) {
  .bb-header__top-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-inline: clamp(8px, 2vw, 18px);
  }
  .bb-header__mobile-toggle {
    display: inline-block;
    position: relative;
    flex: 0 0 40px;
    order: 0;
    z-index: 5;
  }
  .bb-header__top-right {
    display: flex;
    position: relative;
    flex: 0 0 auto;
    order: 1;
    justify-content: flex-start;
    gap: clamp(6px, 1.5vw, 12px);
    margin-left: 3px;
    z-index: 5;
  }
  .bb-header__logo-wrap {
    position: static;
    display: contents;
  }
  .bb-header__logo-link--mobile {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(80px, 19vw, 145px);
    max-width: none;
    z-index: 3;
  }
  .bb-header__logo--mobile {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 66px;
    margin: 0;
    transform: none;
    object-fit: contain;
  }
  .bb-header__price-flip {
    display: block;
    position: absolute;
    right: clamp(8px, 2vw, 18px);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 4;
  }
}
@media screen and (max-width: 520px) {
  .bb-header__top-inner { padding-inline: 8px; }
  .bb-header__mobile-toggle { flex-basis: 34px; }
  .bb-header__top-right { gap: 7px; }
  .bb-header__logo-link--mobile { width: clamp(76px, 20vw, 108px); }
  .bb-header__price-flip { right: 8px; }
}
@media screen and (max-width: 390px) {
  .bb-header__top-inner { padding-inline: 5px; }
  .bb-header__mobile-toggle { flex-basis: 31px; }
  .bb-header__top-right { gap: 5px; }
  .bb-header__logo-link--mobile { width: clamp(70px, 19vw, 88px); }
  .bb-header__price-flip { right: 5px; }
}

/* ==========================================================
   MOBILE FINAL SPACING REFINEMENTS
   - Give hamburger an extra 8px before account/cart.
   - Inset roundel a further 10px from the right.
   - Keep the logo centred at 50% of the header.
   ========================================================== */
@media screen and (max-width: 989px) {
  .bb-header__top-right {
    margin-left: 11px;
  }
  .bb-header__price-flip {
    right: calc(clamp(8px, 2vw, 18px) + 10px);
  }
}
@media screen and (max-width: 520px) {
  .bb-header__top-right {
    margin-left: 11px;
  }
  .bb-header__price-flip {
    right: 18px;
  }
}
@media screen and (max-width: 390px) {
  .bb-header__top-right {
    margin-left: 11px;
  }
  .bb-header__price-flip {
    right: 15px;
  }
}

/* ==========================================================
   iOS SAFARI: HIDE REVERSE FACE INCLUDING PROTRUDING HEADINGS
   Only the mobile flip is affected; desktop remains unchanged.
   ========================================================== */
@media screen and (max-width: 989px) {
  .bb-header__price-flip {
    -webkit-perspective: 1000px;
    perspective: 1000px;
    isolation: isolate;
  }
  .bb-header__price-flip-inner {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  .bb-header__price-flip-front,
  .bb-header__price-flip-back {
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-transform-style: flat;
    transform-style: flat;
  }
  .bb-header__price-flip-front > *,
  .bb-header__price-flip-back > * {
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
  }
  .bb-header__price-flip-front {
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
  }
  .bb-header__price-flip-back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
  }
}


/* ================================
   Bedtime Besties hero - night sky
================================ */

.bb-hero {
  position: relative;
  width: 100%;
  overflow: visible;
  margin-bottom: 0;
  background-color: #ffffff;
  isolation: isolate;
}

.bb-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: -130px;
  width: 100%;
  aspect-ratio: 2 / 1;
  background-image: var(--bb-hero-sky);
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
  pointer-events: none;
  z-index: 0;
}

.bb-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 14px 24px 0;
  box-sizing: border-box;
}

.bb-hero__slides {
  position: relative;
  z-index: 4;
}

.bb-hero__slide {
  display: none;
}

.bb-hero__slide.is-active {
  display: block;
}

.bb-hero__image-link {
  display: block;
  text-decoration: none;
}

.bb-hero__image-card {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  border: 7px solid var(--bb-hero-card-outline, #ffffff);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 5px 0 rgb(0 0 0 / 16%);
  background: #ffffff;
}

.bb-hero__image,
.bb-hero__video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-hero__video-wrap {
  width: 100%;
  height: 100%;
}


/* ================================
   Slide 6 alternate mobile video
================================ */

.bb-hero__video-wrap--mobile {
  display: none;
}

.bb-hero__video-wrap--desktop {
  display: block;
}


/* ================================
   Slide content
================================ */

.bb-hero__slide-content {
  position: absolute;
  left: clamp(22px, 2.8vw, 44px);
  top: clamp(24px, 2.8vw, 44px);
  z-index: 4;
  width: min(34%, 320px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  text-align: left;
}

.bb-hero__slide.is-visible .bb-hero__slide-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.bb-hero__heading {
  margin: 0;
  font-family: var(--bb-font-display);
  font-weight: 800;
  color: var(--bb-white);
  font-size: clamp(46px, 5.2vw, 80px);
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-shadow: none;
  max-width: none;
  -webkit-text-stroke:
    8px
    var(--bb-hero-text-outline, var(--bb-blue));
  paint-order: stroke fill;
}

.bb-hero__star-overlay {
  position: absolute;
  left: clamp(20px, 2.8vw, 48px);
  top: clamp(10px, 1.8vw, 24px);
  z-index: 3;
  width: min(48%, 450px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
}


/* ================================
   Slider dots
================================ */

.bb-hero__dots {
  position: relative;
  z-index: 7;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 6px auto 0;
  padding: 4px 11px;
  background: var(--bb-white);
  border-radius: 999px;
}

.bb-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bb-blue);
  opacity: 1;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.bb-hero__dot.is-active {
  width: 14px;
  height: 14px;
}


/* ================================
   CTA buttons
================================ */

.bb-hero__ctas {
  position: relative;
  z-index: 7;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  width: 100%;
  margin-top: 6px;
}

.bb-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 360px;
  max-width: calc(50% - 20px);
  min-height: 42px;
  padding: 5px clamp(22px, 2.6vw, 36px) 7px;
  border: 5px solid var(--bb-white);
  border-radius: 999px;
  box-shadow: 0 6px 12px rgb(0 0 0 / 22%);
  font-family: var(--bb-font-title);
  font-weight: 900;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.bb-hero__cta:hover {
  text-decoration: none;
}

.bb-hero__cta--shop {
  background: var(--bb-blue);
  color: var(--bb-white);
}

.bb-hero__cta--signup {
  background: var(--bb-pink);
  color: var(--bb-white);
}

.bb-hero__cta--shop:hover,
.bb-hero__cta--signup:hover {
  color: var(--bb-white);
}

.bb-hero__cta span {
  font-size: 0.84em;
  line-height: 1;
}


/* ================================
   Decorative stars around the card
================================ */

.bb-hero__decorative-stars {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.bb-hero__decorative-star {
  position: absolute;
  left: var(--bb-star-x);
  top: var(--bb-star-y);
  width: var(--bb-star-width);
  transform:
    translate(-50%, -50%)
    rotate(var(--bb-star-rotate));
}

.bb-hero__decorative-star-image {
  display: block;
  width: 100%;
  height: auto;
}


/* ================================
   White cloud mask at bottom
================================ */

.bb-hero__clouds {
  position: absolute;
  left: 50%;
  bottom: -65px;
  width: 100vw;
  max-width: none;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}

.bb-hero__cloud-image {
  display: block;
  width: 100%;
  height: auto;
}


/* ================================
   Tablet
================================ */

@media screen and (max-width: 989px) {

  .bb-hero::before {
    top: -70px;
    width: 100%;
    aspect-ratio: 2 / 1;
    background-size: 100% auto;
    background-position: center top;
  }

  .bb-hero__inner {
    padding: 18px 20px 78px;
  }

  .bb-hero__image-card {
    width: min(100%, 760px);
    border-width: 5px;
    border-radius: 28px;
    aspect-ratio: 16 / 8;
  }

  .bb-hero__slide-content {
    left: 20px;
    top: 22px;
    width: min(38%, 300px);
  }

  .bb-hero__heading {
    font-size: clamp(38px, 7vw, 62px);
    line-height: 0.84;
    letter-spacing: 0.015em;
    -webkit-text-stroke:
      8px
      var(--bb-hero-text-outline, var(--bb-blue));
  }

  .bb-hero__star-overlay {
    left: 24px;
    top: -12px;
    width: min(52%, 390px);
  }

  .bb-hero__ctas {
    gap: 18px;
  }

  .bb-hero__cta {
    min-height: 46px;
    padding: 5px 26px;
    border-width: 5px;
    font-size: clamp(24px, 4vw, 32px);
  }

  .bb-hero__clouds {
    bottom: -24px;
  }

}


/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  .bb-hero {
    position: relative;
    z-index: auto;
    overflow-x: hidden;
    overflow-y: visible;
    background-color: #ffffff;
    isolation: auto;
  }

  .bb-hero::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 470px;
    transform: none;
    background-size: cover;
    background-position: center top;
    z-index: 0;
  }

  .bb-hero__inner {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 12px 14px 36px;
  }

  .bb-hero__slides {
    position: relative;
    z-index: 4;
  }


  /* ================================
     Mobile image card
  ================================= */

  .bb-hero__image-card {
    display: flex;
    flex-direction: column;

    width: min(92vw, 360px);
    margin: 0 auto;

    aspect-ratio: auto;

    overflow: hidden;

    border-width: 4px;
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
      0 4px 0
      rgb(49 39 131 / 12%);
  }


  /* ================================
     Mobile video
  ================================= */

  .bb-hero__video-wrap--desktop {
    display: none;
  }

  .bb-hero__video-wrap--mobile {
    display: block;
    width: 100%;
    height: auto;
  }

  .bb-hero__image,
  .bb-hero__video-wrap video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
  }


  /* ================================
     Mobile slide caption

     Fixed height keeps every slide
     exactly the same overall height.
  ================================= */

  .bb-hero__slide-content {
    position: static;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 58px;
    min-height: 58px;

    margin-top: 0;
    padding: 6px 12px;

    box-sizing: border-box;

    background:
      var(--bb-hero-text-outline, var(--bb-blue));

    text-align: center;

    pointer-events: none;

    opacity: 0;
    transform: translateY(8px);

    transition:
      opacity 0.5s ease,
      transform 0.5s ease;
  }

  .bb-hero__slide.is-visible .bb-hero__slide-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
  }

  .bb-hero__heading {
    display: block;

    width: 100%;
    max-width: 320px;

    margin: 0 auto;

    font-size: clamp(23px, 6.6vw, 29px);
    line-height: 1.02;
    letter-spacing: 0.01em;

    text-align: center;
    text-wrap: balance;

    white-space: normal;
    overflow: visible;

    -webkit-text-stroke:
      4px
      var(--bb-hero-text-outline, var(--bb-blue));
  }

  .bb-hero__heading br {
    display: none;
  }


  /* ================================
     Mobile star overlay
  ================================= */

  .bb-hero__star-overlay {
    display: none;
  }


  /* ================================
     Mobile slider dots
  ================================= */

  .bb-hero__dots {
    gap: 7px;
    margin-top: 8px;
    padding: 5px 11px;
  }

  .bb-hero__dot {
    width: 8px;
    height: 8px;
  }

  .bb-hero__dot.is-active {
    width: 16px;
    height: 16px;
  }


  /* ================================
     Mobile CTA buttons
  ================================= */

  .bb-hero__ctas {
    position: relative;
    z-index: 10;

    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;

    gap: 12px;

    width: 100%;
    margin-top: 12px;
  }

  .bb-hero__cta {
    width: min(86vw, 340px);
    max-width: 100%;

    margin: 0 auto;

    min-height: 46px;
    padding: 6px 18px;

    border-width: 5px;

    font-size: clamp(22px, 7vw, 30px);
  }


  /* ================================
     Mobile decorative stars
  ================================= */

  .bb-hero__decorative-star--hide-mobile {
    display: none;
  }


  /* ================================
     Mobile clouds
  ================================= */

  .bb-hero__clouds {
    width: 118vw;
    bottom: 50px;
    z-index: 3;
  }

}
/* ================================
   Bedtime Besties intro section
================================ */

.bb-intro {
  background: var(--bb-intro-bg, #ffffff);
  color: var(--bb-intro-text, var(--bb-blue));
  position: relative;
  overflow: visible;
  margin-top: 40px;
  padding-top: -40px;
}

.bb-intro__inner {
  position: relative;
  z-index: 5;
  padding-top: clamp(24px, 2.4vw, 42px);
  padding-bottom: clamp(16px, 2vw, 28px);
  box-sizing: border-box;
}

.bb-intro__text {
  width: min(100%, 1280px);
  margin: 0 auto;
  text-align: center;
  font-family: var(--bb-font-display);
  font-weight: 800;
  color: var(--bb-intro-text, var(--bb-blue));
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.bb-intro__text p {
  margin: 0;
}

.bb-intro__text p + p {
  margin-top: clamp(16px, 1.8vw, 26px);
}

.bb-intro__text sup {
  font-size: 0.6em;
  line-height: 0;
  vertical-align: super;
}

/* Intro tablet */
@media screen and (max-width: 989px) {
  .bb-intro__inner {
  position: relative;
  z-index: 2;
  padding-top: 28px;
  padding-bottom: 20px;
}

  .bb-intro__text {
    width: min(100%, 1180px);
    font-size: clamp(28px, 4.6vw, 38px);
    line-height: 1.06;
  }
}

/* Intro mobile */
@media screen and (max-width: 749px) {

  .bb-intro {
    position: relative;
    z-index: 2;
    margin-top: -55px;
  }

  .bb-intro__inner {
    position: relative;
    z-index: 2;
    padding-top: 58px;
    padding-bottom: 36px;
  }

  .bb-intro__text {
    width: 100%;
    font-size: clamp(26px, 7.8vw, 36px);
    line-height: 1.08;
  }

  .bb-intro__text p + p {
    margin-top: 20px;
  }

}
/* ================================
   Bedtime Besties trust strip
================================ */

.bb-trust-strip {
  position: relative;
  z-index: 6;
  overflow: visible;
  background: transparent;
}

.bb-trust-strip__canvas {
  position: relative;
  z-index: 7;
  overflow: visible;
}

.bb-trust-strip__inner {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  justify-content: center;
  column-gap: clamp(44px, 5vw, 82px);
  padding: 0;
  box-sizing: border-box;
}

.bb-trust-strip__item {
  position: relative;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1vw, 14px);
  min-width: 0;
  white-space: nowrap;
  color: var(--bb-trust-item-colour, var(--bb-blue));
}

.bb-trust-strip__icon-wrap {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
}

.bb-trust-strip__icon {
  position: relative;
  z-index: 7;
  display: block;
  width: clamp(100px, 7vw, 114px);
  height: auto;
}

.bb-trust-strip__text {
  position: relative;
  z-index: 7;
  display: inline-block;
  font-family: var(--bb-font-display);
  font-weight: 800;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1;
  color: var(--bb-trust-item-colour, var(--bb-blue));
  letter-spacing: -0.01em;
}


/* ================================
   Tablet
================================ */

@media screen and (max-width: 989px) {

  .bb-trust-strip__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(8px, 1.4vw, 18px);
  }

  .bb-trust-strip__item {
    gap: 6px;
  }

  .bb-trust-strip__icon {
    width: clamp(52px, 7vw, 76px);
  }

  .bb-trust-strip__text {
    font-size: clamp(14px, 2.5vw, 20px);
  }

}


/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  .bb-trust-strip {
    z-index: 6;
  }

  .bb-trust-strip__canvas {
    z-index: 7;
  }

  .bb-trust-strip__inner {
    z-index: 7;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    row-gap: 26px;
    column-gap: 24px;
    align-items: start;
    justify-items: center;
    padding: 18px 24px;
    overflow: visible;
  }

  .bb-trust-strip__item {
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .bb-trust-strip__item:nth-child(1),
  .bb-trust-strip__item:nth-child(2) {
    grid-row: 1;
  }

  .bb-trust-strip__item:nth-child(3),
  .bb-trust-strip__item:nth-child(4) {
    grid-row: 2;
  }

  .bb-trust-strip__icon-wrap {
    z-index: 7;
    margin: 0;
  }

  .bb-trust-strip__icon {
    z-index: 7;
    width: 72px;
    height: auto;
  }

  .bb-trust-strip__text {
    z-index: 7;
    font-size: 18px;
    line-height: 1;
    text-align: center;
  }

}
/* ================================
   Bedtime Besties collection feature
================================ */

.bb-collection-feature-section {
  position: relative;
  overflow: visible;
}

.bb-collection-feature {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: #ffffff;
  color: var(--bb-collection-text, #1d1d1b);
  margin-top: -20px;
}

/* ================================
   Decorative cloud / star band
================================ */

.bb-collection-feature__sky {
  position: relative;
  z-index: 2;
  height: 180px;
  margin-top: 0;
  overflow: visible;
  background: transparent;
}

.bb-collection-feature__sky-image {
  position: absolute;
  left: 50%;
  bottom: -150px;
  z-index: 1;
  display: block;
  width: 100%;
  min-width: 1350px;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ================================
   Decorative stars
================================ */

.bb-collection-feature__stars {
  position: absolute;
  left: calc(50% + 18px);
  top: 0;
  width: 100vw;
  height: 400px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.bb-collection-feature__star {
  position: absolute;
  left: var(--bb-star-x);
  top: var(--bb-star-y);
  width: var(--bb-star-size);
  transform: translate(-50%, -50%) rotate(var(--bb-star-rot));
  transform-origin: center center;
}

.bb-collection-feature__star-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ================================
   Content area
================================ */

.bb-collection-feature__content-area {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  background: transparent;
  min-height: 490px;
}

/* ================================
   Main content
================================ */

.bb-collection-feature__inner {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 640px);
  align-items: center;
  justify-content: center;
  column-gap: 42px;
  width: 100%;
  min-height: 490px;
  padding: 24px 0 70px;
  box-sizing: border-box;
}

/* ================================
   Main Besties artwork
================================ */

.bb-collection-feature__media {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-collection-feature__main-image {
  display: block;
  width: 100%;
  max-width: 310px;
  height: auto;
  object-fit: contain;
}

/* ================================
   Text content
================================ */

.bb-collection-feature__content {
  position: relative;
  z-index: 7;
  width: 100%;
  max-width: 640px;
  padding: 0;
}

.bb-collection-feature__eyebrow {
  margin: 0 0 4px;
  font-family: var(--bb-font-display);
  font-weight: 800;
  color: var(--bb-collection-text, #1d1d1b);
  font-size: clamp(28px, 2.3vw, 36px);
  line-height: 1;
}

.bb-collection-feature__title {
  margin: 0 0 clamp(10px, 1vw, 14px);
  font-family: var(--bb-font-title);
  font-weight: 900;
  color: var(--bb-collection-title-fill, #fff200);
  font-size: clamp(48px, 4vw, 66px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  white-space: normal;
  overflow-wrap: break-word;
  -webkit-text-stroke: clamp(4px, 0.45vw, 7px)
    var(--bb-collection-title-outline, #1d1d1b);
  paint-order: stroke fill;
  text-shadow: none;
}

.bb-collection-feature__description {
  width: 100%;
  max-width: 610px;
  font-family: var(--bb-font-display);
  font-weight: 800;
  color: var(--bb-collection-text, #1d1d1b);
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.12;
}

/* ================================
   Desktop
================================ */

@media screen and (min-width: 990px) {

  .bb-collection-feature__content-area {
    min-height: 395px;
  }

  .bb-collection-feature__inner {
    grid-template-columns: 255px 600px;
    column-gap: 60px;
    justify-content: center;
    align-items: center;
    min-height: 395px;
    padding: 20px 0 32px;
    transform: translate(28px, 50px);
  }

  .bb-collection-feature__media {
    transform: translate(-18px, 28px);
  }

  .bb-collection-feature__main-image {
    max-width: 255px;
  }

  .bb-collection-feature__content {
    max-width: 600px;
    transform: translateY(18px);
  }

  .bb-collection-feature__eyebrow {
    font-size: 34px;
  }

  .bb-collection-feature__title {
    font-size: 64px;
  }

  .bb-collection-feature__description {
  max-width: 570px;
  font-size: 27px;
  line-height: 1.13;
}

}

/* ================================
   Tablet
================================ */

@media screen and (max-width: 989px) {

  .bb-collection-feature {
    margin-top: 28px;
  }

  .bb-collection-feature__sky {
    height: 190px;
    margin-top: 0;
  }

  .bb-collection-feature__sky-image {
    bottom: -104px;
    min-width: 1120px;
  }

  .bb-collection-feature__content-area {
    margin-top: -64px;
    min-height: auto;
  }

  .bb-collection-feature__inner {
    grid-template-columns: minmax(230px, 270px) minmax(0, 560px);
    justify-content: center;
    column-gap: 28px;
    min-height: auto;
    padding: 22px 0 28px;
    transform: none;
  }

  .bb-collection-feature__main-image {
    max-width: 255px;
  }

  .bb-collection-feature__content {
    max-width: 560px;
  }

  .bb-collection-feature__eyebrow {
    font-size: clamp(25px, 3.4vw, 32px);
  }

  .bb-collection-feature__title {
    font-size: clamp(40px, 5.5vw, 58px);
    line-height: 0.94;
    white-space: normal;
    overflow-wrap: break-word;
    -webkit-text-stroke: 5px
      var(--bb-collection-title-outline, #1d1d1b);
    text-shadow: none;
  }

  .bb-collection-feature__description {
    max-width: 540px;
    font-size: clamp(20px, 2.8vw, 26px);
    line-height: 1.12;
  }

  .bb-collection-feature__star--1 {
    --bb-star-size: 38px;
  }

  .bb-collection-feature__star--2 {
    --bb-star-size: 26px;
  }

  .bb-collection-feature__star--3 {
    --bb-star-size: 34px;
  }

  .bb-collection-feature__star--4 {
    --bb-star-size: 30px;
  }

  .bb-collection-feature__star--5 {
    --bb-star-size: 32px;
  }

}

/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  .bb-collection-feature {
    margin-top: -70px;
  }

  .bb-collection-feature__sky {
    height: 170px;
    margin-top: 0;
  }

  .bb-collection-feature__sky-image {
    top: auto;
    bottom: -80px;
    min-width: 860px;
  }

  .bb-collection-feature__content-area {
    margin-top: -60px;
    min-height: auto;
    padding-bottom: 65px;
  }

  .bb-collection-feature__stars {
    top: 0;
    left: 50%;
    bottom: auto;
    width: 100vw;
    height: 400px;
    transform: translateX(-50%);
  }

  .bb-collection-feature__inner {
    grid-template-columns: 1fr;
    justify-content: initial;
    text-align: center;
    gap: 12px;
    min-height: auto;
    padding: 34px 0 38px;
    transform: translateY(56px);
  }

  .bb-collection-feature__media {
    justify-content: center;
  }

  .bb-collection-feature__main-image {
    width: auto;
    max-width: min(64vw, 250px);
  }

  .bb-collection-feature__content {
    width: 100%;
    max-width: none;
  }

  .bb-collection-feature__eyebrow {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1;
  }

  .bb-collection-feature__title {
    font-size: clamp(46px, 13vw, 62px);
    line-height: 0.92;
    margin-bottom: 18px;
    white-space: nowrap;
    overflow-wrap: normal;
    -webkit-text-stroke: 8px var(--bb-collection-title-outline, #1d1d1b);
    paint-order: stroke fill;
    text-shadow: none;
  }

  .bb-collection-feature__description {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    font-size: clamp(22px, 5.7vw, 27px);
    line-height: 1.12;
  }

  .bb-collection-feature__star:nth-child(1) {
  --bb-star-x: 16% !important;
  --bb-star-y: 76% !important;
  --bb-star-size: 48px !important;
}

.bb-collection-feature__star:nth-child(2) {
  --bb-star-x: 28% !important;
  --bb-star-y: 45% !important;
  --bb-star-size: 38px !important;
}

.bb-collection-feature__star:nth-child(3) {
  display: none !important;
}

.bb-collection-feature__star:nth-child(4) {
  display: none !important;
}

.bb-collection-feature__star:nth-child(5) {
  --bb-star-x: 74% !important;
  --bb-star-y: 45% !important;
  --bb-star-size: 40px !important;
}

.bb-collection-feature__star:nth-child(6) {
  --bb-star-x: 86% !important;
  --bb-star-y: 76% !important;
  --bb-star-size: 50px !important;
}

}
/* ================================
   Bedtime Besties animal feature
   Desktop
================================ */

.bb-animal-feature {
  position: relative;
  overflow: visible;
  background: transparent;
  margin-bottom: 24px;
}

.bb-animal-feature .bb-site-canvas {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.bb-animal-feature__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1060px);
  margin: 0 auto;
  padding: 10px 20px 8px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 28px;
}

.bb-animal-feature__bg {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(calc(100% - 48px), 1060px);
  height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 28px;
  z-index: 0;
  pointer-events: none;
}

.bb-animal-feature__bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-animal-feature__main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 34px;
  width: 100%;
}


/* ================================
   Media
================================ */

.bb-animal-feature__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transform: translateY(26px);
}

.bb-animal-feature__promo-image {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 315px;
  height: auto;
  object-fit: contain;
  filter: none;
}


/* ================================
   Copy card
================================ */

.bb-animal-feature__card {
  width: 100%;
  max-width: 405px;
  box-sizing: border-box;
  padding: 12px 18px 10px;
  margin: 0 auto;
  background: var(--bb-animal-card-bg);
  color: var(--bb-animal-card-text);
  border-radius: 12px;
  box-shadow: 0 5px 0 rgb(0 0 0 / 16%);
  text-align: center;
  transform: translate(12px, -30px);
}

.bb-animal-feature__card-heading {
  margin: 0 0 6px;
  font-family: var(--bb-font-display);
  font-weight: 900;
  color: var(--bb-animal-card-heading);
  font-size: clamp(20px, 1.65vw, 25px);
  line-height: 1.02;
  text-transform: uppercase;

  /* Reduce awkward short heading lines */
  text-wrap: balance;
}

.bb-animal-feature__card-body {
  max-width: 350px;
  margin: 0 auto;
  font-family: var(--bb-font-display);
  font-weight: 800;
  color: var(--bb-animal-card-text);
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.08;

  /* Prefer more even final lines */
  text-wrap: pretty;
}

.bb-animal-feature__card-body p {
  text-wrap: pretty;
}

.bb-animal-feature__card-highlight {
  margin-top: 6px;
  font-family: var(--bb-font-title);
  font-weight: 900;
  color: var(--bb-animal-card-highlight);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
  -webkit-text-stroke: 4px var(--bb-animal-card-highlight-outline);
  paint-order: stroke fill;
  text-shadow: none;

  text-wrap: balance;
}


/* ================================
   CTAs
   Natural widths rather than
   forcing both buttons equal
================================ */

.bb-animal-feature__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 18px;

  width: 100%;
  margin-top: -36px;

  position: relative;
  z-index: 2;

  transform: translateY(-14px);
}

.bb-animal-feature__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 38px;

  padding: 3px 24px 5px;
  box-sizing: border-box;

  border: 4px solid var(--bb-white);
  border-radius: 999px;

  box-shadow: 0 5px 10px rgb(0 0 0 / 22%);

  font-family: var(--bb-font-title);
  font-weight: 900;
  font-size: clamp(20px, 1.75vw, 26px);
  line-height: 1;

  text-decoration: none;
  white-space: nowrap;
}

.bb-animal-feature__cta:hover {
  text-decoration: none;
}

.bb-animal-feature__cta--shop {
  background: var(--bb-animal-shop-bg);
  color: var(--bb-animal-shop-text);
}

.bb-animal-feature__cta--signup {
  background: var(--bb-animal-signup-bg);
  color: var(--bb-animal-signup-text);
}

.bb-animal-feature__cta--shop:hover {
  color: var(--bb-animal-shop-text);
}

.bb-animal-feature__cta--signup:hover {
  color: var(--bb-animal-signup-text);
}

.bb-animal-feature__cta span {
  font-size: 0.82em;
  line-height: 1;
}


/* ================================
   Tablet
================================ */

@media screen and (max-width: 989px) {

  .bb-animal-feature {
    margin-bottom: 24px;
  }

  .bb-animal-feature__inner {
    width: min(calc(100% - 36px), 860px);
    padding: 22px 22px 18px;
    border-radius: 24px;
  }

  .bb-animal-feature__bg {
    width: min(calc(100% - 36px), 860px);
    border-radius: 24px;
  }

  .bb-animal-feature__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
  }

  .bb-animal-feature__media {
    transform: none;
  }

  .bb-animal-feature__promo-image {
    max-width: 360px;
  }

  .bb-animal-feature__card {
    max-width: 390px;
    padding: 18px 18px 16px;
    transform: none;
  }

  .bb-animal-feature__card-heading {
    font-size: clamp(20px, 2.8vw, 26px);
  }

  .bb-animal-feature__card-body {
    font-size: clamp(17px, 2.3vw, 21px);
  }

  .bb-animal-feature__card-highlight {
    font-size: clamp(18px, 2.8vw, 24px);
  }

  .bb-animal-feature__ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;

    gap: 16px;
    width: 100%;

    margin-top: 14px;
    transform: none;
  }

  .bb-animal-feature__cta {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 44px;

    padding: 5px 22px 7px;

    font-size: clamp(21px, 3.4vw, 28px);
  }

}


/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  .bb-animal-feature {
    margin-bottom: 20px;
  }

  .bb-animal-feature .bb-site-canvas {
    width: 100%;
    max-width: none;
    margin: 0;

    padding-left: 0;
    padding-right: 0;

    box-sizing: border-box;
  }

  .bb-animal-feature__inner {
    width: min(94vw, 400px);
    margin: 0 auto;

    padding: 16px 10px 14px;

    box-sizing: border-box;
    border-radius: 22px;
  }

  .bb-animal-feature__bg {
    left: 50%;
    width: min(94vw, 400px);

    transform: translateX(-50%);

    border-radius: 22px;
  }

  .bb-animal-feature__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 14px;

    width: 100%;
    margin: 0 auto;

    transform: none;
  }


  /* ================================
     Image
  ================================= */

  .bb-animal-feature__media {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin: 0 auto;

    transform: none;
  }

  .bb-animal-feature__promo-image {
    display: block;

    width: 100%;
    max-width: 340px;
    max-height: none;
    height: auto;

    margin: 0 auto;

    object-fit: contain;
  }


  /* ================================
     Copy card
  ================================= */

  .bb-animal-feature__card {
    width: calc(100% - 8px);
    max-width: 340px;

    padding: 16px 12px 14px;
    margin: 0 auto;

    box-sizing: border-box;

    border-radius: 10px;

    transform: none;
  }

  .bb-animal-feature__card-heading {
    margin: 0 0 8px;

    font-size: clamp(22px, 6.6vw, 28px);
    line-height: 1.04;

    text-wrap: balance;
  }

  .bb-animal-feature__card-body {
    max-width: 100%;
    margin: 0 auto;

    font-size: clamp(18px, 5vw, 21px);
    line-height: 1.12;

    text-wrap: pretty;
  }

  .bb-animal-feature__card-body p {
    text-wrap: pretty;
  }

  .bb-animal-feature__card-highlight {
    margin-top: 9px;

    font-size: clamp(19px, 5.5vw, 23px);
    line-height: 1;

    white-space: normal;
    text-wrap: balance;

    -webkit-text-stroke:
      3px
      var(--bb-animal-card-highlight-outline);
  }


  /* ================================
     Mobile CTAs
     Keep stacked full-width style
  ================================= */

  .bb-animal-feature__ctas {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;

    gap: 9px;

    width: 100%;
    margin: 10px auto 0;

    transform: none;
  }

  .bb-animal-feature__cta {
    width: min(88vw, 340px);
    max-width: 100%;
    min-height: 44px;

    padding: 5px 16px 7px;

    box-sizing: border-box;

    border-width: 4px;

    font-size: clamp(22px, 6.4vw, 28px);
  }

}
/* ================================
   Bedtime Besties dream team
================================ */

.bb-dream-team-section {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.bb-dream-team {
  position: relative;
  overflow: visible;
  background: var(--bb-white);
}


/* ================================
   Top night-sky area
================================ */

.bb-dream-team__top {
  position: relative;
  overflow: hidden;
  background: var(--bb-dream-bg);
  isolation: isolate;
}

.bb-dream-team__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--bb-dream-sky);
  background-repeat: no-repeat;
  background-size: cover;
  background-position:
    center
    var(--bb-dream-sky-position-y);
}

.bb-dream-team__top .bb-site-canvas {
  position: relative;
  z-index: 4;
}

.bb-dream-team__top-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  padding-top: clamp(28px, 2.6vw, 40px);
  padding-bottom: clamp(140px, 11vw, 180px);
  box-sizing: border-box;
  text-align: center;
}


/* ================================
   Heading
================================ */

.bb-dream-team__heading {
  position: relative;
  z-index: 5;
  margin: 0 auto 60px;
  font-family: var(--bb-font-title);
  font-weight: 900;
  color: var(--bb-dream-heading-fill);
  font-size: clamp(42px, 4.5vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  -webkit-text-stroke:
    clamp(5px, 0.45vw, 8px)
    var(--bb-dream-heading-outline);
  paint-order: stroke fill;
  text-shadow: none;
}


/* ================================
   Video / image panel
================================ */

.bb-dream-team__media {
  position: relative;
  z-index: 5;
  width: min(100%, 850px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--bb-dream-panel-bg);
  border: 5px solid var(--bb-dream-panel-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 18px rgb(0 0 0 / 18%);
}

.bb-dream-team__placeholder,
.bb-dream-team__video,
.bb-dream-team__image {
  display: block;
  width: 100%;
  height: 100%;
}

.bb-dream-team__placeholder {
  background: var(--bb-dream-panel-bg);
}

.bb-dream-team__video,
.bb-dream-team__image {
  object-fit: cover;
}


/* ================================
   Decorative stars
================================ */

.bb-dream-team__decorative-stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bb-dream-team__decorative-star {
  position: absolute;
  left: var(--bb-dream-star-x);
  top: var(--bb-dream-star-y);
  width: var(--bb-dream-star-width);
  transform:
    translate(-50%, -50%)
    rotate(var(--bb-dream-star-rotate));
}

.bb-dream-team__decorative-star-image {
  display: block;
  width: 100%;
  height: auto;
}


/* ================================
   Cloud transition
================================ */

.bb-dream-team__clouds {
  position: absolute;
  left: 50%;
  bottom: -1px;
  z-index: 3;
  width: 100vw;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  line-height: 0;
}

.bb-dream-team__cloud-image {
  display: block;
  width: 100%;
  height: auto;
}


/* ================================
   White content area
================================ */

.bb-dream-team__content {
  position: relative;
  margin-top: -20px;
  z-index: 4;
  background: var(--bb-white);
}

.bb-dream-team__content .bb-site-canvas {
  position: relative;
  z-index: 4;
}

.bb-dream-team__content-inner {
  width: 100%;
  box-sizing: border-box;
  padding: 0 24px 30px;
  text-align: center;
}


/* ================================
   Body copy
================================ */

.bb-dream-team__text {
  width: min(100%, 960px);
  margin: 0 auto;
  font-family: var(--bb-font-display);
  font-weight: 800;
  color: var(--bb-dream-text);
  font-size: clamp(26px, 2.15vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.bb-dream-team__text br + br {
  display: block;
  content: "";
  margin-top: 8px;
}


/* ================================
   About Us button
================================ */

.bb-dream-team__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  min-height: 42px;
  margin-top: 18px;
  padding: 5px 28px 7px;
  box-sizing: border-box;
  border: 5px solid var(--bb-white);
  border-radius: 999px;
  background: var(--bb-dream-button-bg);
  color: var(--bb-dream-button-text);
  box-shadow: 0 6px 12px rgb(0 0 0 / 22%);
  font-family: var(--bb-font-title);
  font-weight: 900;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.bb-dream-team__button:hover {
  color: var(--bb-dream-button-text);
  text-decoration: none;
}

.bb-dream-team__button span {
  font-size: 0.84em;
  line-height: 1;
}


/* ================================
   Tablet
================================ */

@media screen and (max-width: 989px) {

  .bb-dream-team__top-inner {
    padding-top: 28px;
    padding-bottom: 170px;
  }

  .bb-dream-team__heading {
    font-size: clamp(38px, 6vw, 56px);
    margin-bottom: 16px;
    -webkit-text-stroke:
      5px
      var(--bb-dream-heading-outline);
  }

  .bb-dream-team__media {
    width: min(100%, 580px);
  }

  .bb-dream-team__content-inner {
    padding: 24px 24px 38px;
  }

  .bb-dream-team__text {
    width: min(100%, 860px);
    font-size: clamp(22px, 3.2vw, 28px);
    line-height: 1.1;
  }

  .bb-dream-team__button {
    margin-top: 22px;
  }

}

/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  .bb-dream-team__top-inner {
    padding-top: 26px;
    padding-bottom: 80px;
  }

  .bb-dream-team__heading {
    font-size: clamp(34px, 10vw, 48px);
    margin-bottom: 20px;
    line-height: 0.92;

    -webkit-text-stroke:
      4px
      var(--bb-dream-heading-outline);
  }

  .bb-dream-team__media {
    width: min(92vw, 390px);
    border-width: 4px;
    border-radius: 14px;
  }

  .bb-dream-team__decorative-stars {
    display: none;
  }

  .bb-dream-team__clouds {
    width: 135vw;
    bottom: 8px;
  }

  .bb-dream-team__content-inner {
    padding: 10px 16px 30px;
  }

  .bb-dream-team__text {
    width: 100%;
    font-size: clamp(20px, 5.7vw, 26px);
    line-height: 1.08;
  }

  .bb-dream-team__text br + br {
    margin-top: 12px;
  }

  .bb-dream-team__button {
    min-width: 210px;
    min-height: 42px;
    margin-top: 14px;
    padding: 5px 24px 7px;
    border-width: 4px;
    font-size: clamp(22px, 7vw, 28px);
  }
}

/* ================================
   Bedtime Besties environmental strip
================================ */

.bb-environment-section {
  position: relative;
  z-index: 2;
}

.bb-environment {
  position: relative;
  overflow: hidden;

  background:
    var(--bb-environment-bg, #008c45);

  color:
    var(--bb-environment-text, #ffffff);
}


/* ================================
   Full-width background
================================ */

.bb-environment__bg {
  position: absolute;
  inset: 0;

  z-index: 0;

  pointer-events: none;
}

.bb-environment__bg-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}


/* ================================
   Shared 1440px wrapper
================================ */

.bb-environment__inner {
  position: relative;
  z-index: 1;

  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(130px, 0.5fr)
    minmax(0, 4fr)
    minmax(130px, 0.5fr);

  align-items: center;

  gap:
    clamp(20px, 2.5vw, 38px);

  padding-top:
    clamp(18px, 1.8vw, 26px);

  padding-bottom:
    clamp(18px, 1.8vw, 26px);

  box-sizing: border-box;
}


/* ================================
   Icons
================================ */

.bb-environment__icon {
  display: flex;
  align-items: center;
}

.bb-environment__icon--left {
  justify-content: flex-end;
}

.bb-environment__icon--right {
  justify-content: flex-start;
}

.bb-environment__icon-image {
  display: block;

  width: 100%;
  max-width: 135px;
  height: auto;

  object-fit: contain;
}


/* ================================
   Copy
================================ */

.bb-environment__text {
  width: 100%;
  max-width: 1000px;

  margin: 0 auto;

  font-family:
    var(--bb-font-display);

  font-weight: 800;

  color:
    var(--bb-environment-text, #ffffff);

  font-size:
    clamp(19px, 1.5vw, 24px);

  line-height: 1.14;

  text-align: center;
}


/* ================================
   Tablet
================================ */

@media screen and (max-width: 989px) {

  .bb-environment__inner {
    grid-template-columns:
      minmax(105px, 0.5fr)
      minmax(0, 3.8fr)
      minmax(105px, 0.5fr);

    gap: 18px;

    padding-top: 18px;
    padding-bottom: 18px;
  }

  .bb-environment__icon-image {
    max-width: 110px;
  }

  .bb-environment__text {
    max-width: 760px;

    font-size:
      clamp(18px, 2.5vw, 22px);

    line-height: 1.14;
  }
}


/* ================================
   Mobile
================================ */

/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  /*
    On mobile the two icons sit together
    above the copy so the paragraph retains
    enough width to remain comfortably
    readable.
  */

  .bb-environment__bg-image {
    object-position: center;
  }

  .bb-environment__inner {
    display: grid;

    grid-template-columns:
      1fr 1fr;

    grid-template-areas:
      "left-icon right-icon"
      "copy copy";

    align-items: center;

    gap: 10px 20px;

    padding-top: 18px;
    padding-bottom: 20px;
  }

  .bb-environment__icon--left {
    grid-area: left-icon;
    justify-content: flex-end;
  }

  .bb-environment__icon--right {
    grid-area: right-icon;
    justify-content: flex-start;
  }

  .bb-environment__icon-image {
    width: auto;
    object-fit: contain;
  }

  .bb-environment__icon--left .bb-environment__icon-image {
    width: 82px;
    max-width: 82px;
    max-height: 72px;
  }

.bb-environment__icon--right .bb-environment__icon-image {
  width: 78px;
  max-width: 78px;
  max-height: 76px;
  transform: translateY(6px);
}

  .bb-environment__text {
    grid-area: copy;

    width: 100%;
    max-width: 360px;

    margin: 2px auto 0;

    font-size:
      clamp(17px, 4.8vw, 21px);

    line-height: 1.14;

    text-align: center;
  }
}
/* ================================
   Bedtime Besties coming soon
================================ */

.bb-coming-soon-section {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding-top: clamp(24px, 3vw, 44px);
  padding-bottom: clamp(28px, 3vw, 46px);
}

.bb-coming-soon {
  position: relative;
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background-color: var(--bb-coming-bg, #9bdcf5);
  background-image: var(--bb-coming-background-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--bb-coming-text, #ffffff);
  box-sizing: border-box;
}


/* ================================
   Inner panel
================================ */

.bb-coming-soon__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px 34px 28px;
  box-sizing: border-box;
  text-align: center;
}


/* ================================
   Heading
================================ */

.bb-coming-soon__heading {
  position: relative;
  z-index: 3;
  margin: 0 0 8px;
  font-family: var(--bb-font-title);
  font-weight: 900;
  color: var(--bb-coming-heading, #fdd000);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-shadow: none;
}


/* ================================
   Description
================================ */

.bb-coming-soon__description {
  position: relative;
  z-index: 3;
  width: min(100%, 900px);
  margin: 0 auto;
  font-family: var(--bb-font-display);
  font-weight: 800;
  color: var(--bb-coming-text, #e8f7ff);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.08;
  text-align: center;
}


/* ================================
   Products
================================ */

.bb-coming-soon__products {
  position: relative;
  z-index: 4;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;

  gap: 12px;

  width: min(100%, 760px);
  margin: 4px auto 0;
}

.bb-coming-soon__product {
  position: relative;
  min-width: 0;
  text-align: center;
}

.bb-coming-soon__product-image {
  display: block;
  width: 100%;
  max-width: 335px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}


/* ================================
   Product labels
================================ */

.bb-coming-soon__label {
  position: relative;
  z-index: 5;
  margin-top: -13px;
  font-family: var(--bb-font-title);
  font-weight: 900;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  white-space: nowrap;

  -webkit-text-stroke:
    clamp(3px, 0.3vw, 5px)
    var(--bb-coming-outline, #ffffff);

  paint-order: stroke fill;
  text-shadow: none;
}

.bb-coming-soon__label--green {
  color: var(--bb-coming-green, #1f9233);
}

.bb-coming-soon__label--pink {
  color: var(--bb-coming-pink, #c7017f);
}


/* ================================
   CTA
================================ */

.bb-coming-soon__cta-wrap {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  margin-top: clamp(12px, 1.6vw, 20px);
}

.bb-coming-soon__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 16px);

  min-height: clamp(42px, 3.2vw, 52px);
  width: min(100%, 500px);

  padding: 5px clamp(20px, 2.6vw, 34px);
  box-sizing: border-box;

  border: 5px solid var(--bb-coming-button-border, #ffffff);
  border-radius: 999px;

  background: var(--bb-coming-button-bg, #c7017f);
  color: var(--bb-coming-button-text, #fdd000);

  box-shadow: 0 6px 12px rgb(0 0 0 / 20%);

  font-family: var(--bb-font-title);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 0.9;

  text-decoration: none;
  white-space: nowrap;
}

.bb-coming-soon__cta:hover {
  color: var(--bb-coming-button-text, #fdd000);
  text-decoration: none;
}

.bb-coming-soon__cta > span:first-child {
  white-space: nowrap;
}

.bb-coming-soon__cta .bb-cta-arrow {
  flex: 0 0 auto;
}


/* ================================
   Tablet
================================ */

@media screen and (max-width: 989px) {

  .bb-coming-soon-section {
    padding-top: 24px;
    padding-bottom: 34px;
  }

  .bb-coming-soon {
    width: min(calc(100% - 36px), 760px);
    border-radius: 24px;
  }

  .bb-coming-soon__inner {
    padding: 24px 28px 32px;
  }

  .bb-coming-soon__heading {
    font-size: clamp(38px, 6vw, 56px);
  }

  .bb-coming-soon__description {
    width: min(100%, 620px);
    font-size: clamp(17px, 2.4vw, 21px);
  }

  .bb-coming-soon__products {
    width: min(100%, 680px);
    gap: 14px;
    margin-top: 16px;
  }

  .bb-coming-soon__product-image {
    max-width: 320px;
  }

  .bb-coming-soon__label {
    font-size: clamp(23px, 3.8vw, 34px);
    -webkit-text-stroke: 4px var(--bb-coming-outline, #ffffff);
  }

  .bb-coming-soon__cta {
    width: min(100%, 420px);
    font-size: clamp(20px, 3.6vw, 27px);
  }

}


/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  .bb-coming-soon-section {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .bb-coming-soon {
    width: min(calc(100% - 28px), 390px);
    border-radius: 22px;
  }

  .bb-coming-soon__inner {
    padding: 20px 14px 24px;
  }

  .bb-coming-soon__heading {
    margin: 0 0 16px;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 0.9;
  }

  .bb-coming-soon__description {
    width: 100%;
    max-width: 330px;
    font-size: clamp(17px, 5vw, 21px);
    line-height: 1.08;
  }

  .bb-coming-soon__products {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;

    width: 100%;
    margin: 14px auto 0;
  }

  .bb-coming-soon__product {
    width: 100%;
  }

  .bb-coming-soon__product-image {
    width: auto;
    max-width: min(82vw, 310px);
    height: auto;
    margin: 0 auto;
  }

  .bb-coming-soon__label {
    margin-top: -13px;

    font-size: clamp(21px, 6.3vw, 28px);
    line-height: 0.94;

    white-space: nowrap;

    -webkit-text-stroke:
      3px
      var(--bb-coming-outline, #ffffff);
  }

  .bb-coming-soon__cta-wrap {
    width: 100%;
    margin-top: 12px;
  }

  .bb-coming-soon__cta {
    width: calc(100% - 4px);
    max-width: 360px;
    min-height: 46px;

    padding: 5px 14px;

    border-width: 5px;
    gap: 8px;

    font-size: clamp(17px, 5vw, 22px);
  }

}
/* ================================
   Bedtime Besties reviews
================================ */

.bb-reviews-social-section {
  position: relative;
  z-index: 2;
}

.bb-reviews-social {
  position: relative;
  overflow: visible;
  background: transparent;
  color: var(--bb-reviews-text, #1d1d1b);
}

/* ================================
   Shared 1440px wrapper
================================ */

.bb-reviews-social__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(28px, 3vw, 42px);
  padding-bottom: clamp(24px, 2.5vw, 38px);
  box-sizing: border-box;
}

/* ================================
   Review card
================================ */

.bb-reviews-social__card {
  width: min(100%, 760px);
  margin: 0 auto;
  background: var(--bb-reviews-card-bg, #ffffff);
  border-radius: 14px;
  padding: clamp(16px, 1.6vw, 22px) clamp(24px, 3vw, 42px) 14px;
  box-shadow: 0 8px 18px rgb(0 0 0 / 20%);
}

/* ================================
   Heading
================================ */

.bb-reviews-social__heading {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--bb-font-display);
  font-weight: 900;
  color: var(--bb-reviews-heading, #482683);
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 0.95;
}

/* ================================
   Slider
================================ */

.bb-reviews-social__slider {
  position: relative;
}

.bb-reviews-social__viewport {
  overflow: hidden;
  width: 100%;
}

.bb-reviews-social__track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* ================================
   Review slides
================================ */

.bb-reviews-social__review-slide {
  flex: 0 0 50%;
  padding: 0 clamp(14px, 2vw, 28px);
  box-sizing: border-box;
  text-align: center;
}

/* ================================
   Stars
================================ */

.bb-reviews-social__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
  color: var(--bb-review-star, #c7017f);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1;
}

/* ================================
   Review text
================================ */

.bb-reviews-social__review-text {
  font-family: var(--bb-font-display);
  font-weight: 900;
  color: var(--bb-reviews-text, #1d1d1b);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.1;
}

/* ================================
   Reviewer
================================ */

.bb-reviews-social__reviewer {
  margin: 8px 0 0;
  font-family: "Archivo", Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.2;
  color: var(--bb-reviews-text, #1d1d1b);
}

/* ================================
   Hide slider arrows
================================ */

.bb-reviews-social__arrow {
  display: none;
}

/* ================================
   Slider dots
================================ */

.bb-reviews-social__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.bb-reviews-social__dot {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #b9b9b9;
  cursor: pointer;
}

.bb-reviews-social__dot--active {
  width: 13px;
  height: 13px;
  background: #482683;
}

/* ================================
   Tablet
================================ */

@media screen and (max-width: 989px) {
  .bb-reviews-social__inner {
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .bb-reviews-social__card {
    width: min(100%, 720px);
    padding: 20px 26px 15px;
  }

  .bb-reviews-social__heading {
    font-size: clamp(30px, 4.5vw, 40px);
  }

  .bb-reviews-social__review-slide {
    padding: 0 18px;
  }

  .bb-reviews-social__review-text {
    font-size: clamp(17px, 2.3vw, 20px);
  }
}

/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {
  .bb-reviews-social__inner {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .bb-reviews-social__card {
    width: 100%;
    border-radius: 14px;
    padding: 18px 16px 16px;
    box-sizing: border-box;
  }

  .bb-reviews-social__heading {
    margin-bottom: 12px;
    font-size: clamp(28px, 8vw, 38px);
    line-height: 0.96;
  }

  .bb-reviews-social__review-slide {
    flex: 0 0 100%;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .bb-reviews-social__stars {
    font-size: clamp(19px, 5.2vw, 23px);
    margin-bottom: 7px;
  }

  .bb-reviews-social__review-text {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1.1;
  }

  .bb-reviews-social__reviewer {
    margin-top: 8px;
    font-size: clamp(12px, 3.4vw, 14px);
  }

  .bb-reviews-social__dots {
    margin-top: 12px;
  }
}

/* ==========================================================
   BEDTIME BESTIES FOOTER
   Desktop + tablet + mobile
========================================================== */


/* ==========================================================
   FOOTER BASE
========================================================== */

footer,
.footer {
  position: relative;

  background: #ffffff;
  color: #482683;

  overflow: visible !important;
}

footer [style*="--footer-gap"],
.footer [style*="--footer-gap"] {
  --footer-gap: 12px !important;
}


/* ==========================================================
   ALLOW POLICIES DROPDOWN TO ESCAPE FOOTER CONTAINERS
========================================================== */

footer .section-wrapper,
.footer .section-wrapper,
footer .section,
.footer .section,
footer .footer-content,
.footer .footer-content,
.bb-footer-nav,
.bb-footer-nav__list,
.bb-footer-nav__item,
.bb-footer-nav__details {
  overflow: visible !important;
}


/* ==========================================================
   BEDTIME BESTIES FOOTER
========================================================== */


/* ==========================================================
   CLOUDS + FOLLOW US
========================================================== */

.bb-footer-decor {
  position: relative;
  width: 100%;
  padding-top: 125px;
  margin-top: -1px;
  box-sizing: border-box;
  overflow: visible;
}

.bb-footer-decor__clouds {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  min-width: 1400px;
  transform: translateX(-50%);
  pointer-events: none;
  line-height: 0;
  z-index: 0;
}

.bb-footer-decor__cloud-image {
  display: block;
  width: 100%;
  height: auto;
}

.bb-footer-decor__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.bb-footer-decor__follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 1.8vw, 26px);
  padding: 30px 24px 12px;
}

.bb-footer-decor__follow-text {
  margin: 0;
  font-family: var(--bb-font-title);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.03em;
  color: #fff;
  -webkit-text-stroke: 6px #009bd9;
  paint-order: stroke fill;
  white-space: nowrap;
}

.bb-footer-decor__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 1.4vw, 19px);
}

.bb-footer-decor__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.bb-footer-decor__social-icon {
  display: block;
  width: clamp(46px, 3.8vw, 58px);
  height: auto;
}


/* ==========================================================
   NEWSLETTER
========================================================== */

footer .footer-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  width: min(100%, 820px) !important;
  margin: 0 auto !important;
  padding-top: 18px !important;
  text-align: center !important;
}

footer .layout-panel-flex.layout-panel-flex--column.mobile-column {
  --gap: 7px !important;
  --horizontal-alignment: center !important;
  --vertical-alignment: center !important;
  align-items: center !important;
  width: 100% !important;
  text-align: center !important;
}


/* Newsletter heading */

footer .footer-content > :first-child .text-block:first-child {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
}

footer .footer-content > :first-child .text-block:first-child p {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--bb-font-title) !important;
  font-size: clamp(34px, 3vw, 44px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -.02em !important;
  color: var(--bb-blue) !important;
  text-align: center !important;
}

footer .footer-content > :first-child .text-block:first-child p > br {
  display: none !important;
}


/* Supporting copy */

footer
.layout-panel-flex.layout-panel-flex--column.mobile-column
.text-block:not(:first-child) {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
}

footer
.layout-panel-flex.layout-panel-flex--column.mobile-column
.text-block:not(:first-child) p {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--bb-font-body) !important;
  font-size: clamp(17px, 1.35vw, 20px) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  color: var(--bb-blue) !important;
  text-align: center !important;
}


/* ==========================================================
   EMAIL SIGNUP
========================================================== */

footer .email-signup {
  width: 540px !important;
  max-width: 100% !important;
  margin: 7px auto 0 !important;
}

footer .email-signup form {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

footer .email-signup__input-group,
footer .email-signup__field,
footer .email-signup__input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 3px solid var(--bb-blue) !important;
  border-radius: 999px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: 0 5px 12px rgb(0 0 0 / 10%) !important;
}

footer .email-signup input[type="email"] {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 62px 0 22px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--bb-blue) !important;
  font-family: var(--bb-font-body) !important;
  font-size: 16px !important;
  text-align: center !important;
  outline: none !important;
  box-shadow: none !important;
}

footer .email-signup input[type="email"]::placeholder {
  color: #777;
  opacity: 1;
}

footer .email-signup__input-group:focus-within,
footer .email-signup__field:focus-within,
footer .email-signup__input-wrapper:focus-within {
  border-color: #009bd9 !important;
}

/* ==========================================================
   NEWSLETTER SUBMIT BUTTON
   Solid purple circle with white play triangle
========================================================== */

footer .email-signup button[type="submit"],
footer .email-signup__button {
  position: absolute !important;
  top: 50% !important;
  right: 5px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  transform: translateY(-50%) !important;

  border: 0 !important;
  border-radius: 50% !important;
  background: var(--bb-blue) !important;

  box-sizing: border-box !important;
  cursor: pointer !important;
  z-index: 3;
}

/* Hide Horizon's arrow */
footer .email-signup__button-icon {
  display: none !important;
}

/* White play triangle */
footer .email-signup button[type="submit"]::after,
footer .email-signup__button::after {
  content: "";
  display: block;

  width: 0;
  height: 0;

  margin-left: 3px;

  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}


/* ==========================================================
   FOOTER NAV
========================================================== */

.bb-footer-nav {
  position: relative;
  z-index: 20;
  width: 100vw !important;
  max-width: none !important;
  margin: 20px calc(50% - 50vw) 0 !important;
  padding: 0 !important;
  background: var(--bb-pink) !important;
  box-sizing: border-box;
  overflow: visible;
}

.bb-footer-nav__list {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  width: min(100%, 1200px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
}

.bb-footer-nav__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-footer-nav__link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-family: var(--bb-font-title) !important;
  font-size: clamp(17px, 1.35vw, 21px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer;
}

.bb-footer-nav__link:hover,
.bb-footer-nav__link:focus-visible {
  color: var(--bb-yellow-text) !important;
}


/* ==========================================================
   POLICIES
========================================================== */

.bb-footer-nav__details {
  position: relative;
  width: 100%;
}

.bb-footer-nav__summary {
  list-style: none !important;
}

.bb-footer-nav__summary::-webkit-details-marker {
  display: none !important;
}

.bb-footer-nav__summary::marker {
  content: "";
}

.bb-footer-nav__chevron {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 11px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .18s ease;
}

.bb-footer-nav__details[open] .bb-footer-nav__chevron {
  transform: translateY(3px) rotate(225deg);
}

.bb-footer-nav__dropdown {
  position: absolute;
  right: 0;
  bottom: 100%;
  z-index: 100;
  width: 290px;
  padding: 8px 0;
  background: #fff;
  border: 3px solid var(--bb-blue);
  border-radius: 16px 16px 0 16px;
  box-shadow: 0 10px 28px rgb(72 38 131 / 20%);
}

.bb-footer-nav__submenu {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.bb-footer-nav__submenu-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.bb-footer-nav__submenu-link {
  display: block;
  padding: 9px 18px;
  color: var(--bb-blue) !important;
  font-family: var(--bb-font-body) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-decoration: none !important;
}

.bb-footer-nav__submenu-link:hover,
.bb-footer-nav__submenu-link:focus-visible {
  color: var(--bb-pink) !important;
  background: rgb(199 1 127 / 6%) !important;
}


/* ==========================================================
   COMPANY LINE
========================================================== */

.footer-utilities {
  background: #fff !important;
  border-top: 0 !important;
}

.footer-utilities::before,
.footer-utilities .utilities::before {
  display: none !important;
  content: none !important;
}

.footer-utilities .utilities {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  padding: 9px 20px 12px !important;
  border-top: 0 !important;
  text-align: center !important;
}

.footer-utilities__group-copyright {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: center !important;
}

.footer-utilities__group-copyright .footer-utilities__text {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  color: #777 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  text-align: center !important;
}


/* ==========================================================
   TABLET
========================================================== */

@media screen and (min-width: 750px) and (max-width: 989px) {
  .bb-footer-decor {
    padding-top: 125px;
  }

  .bb-footer-decor__clouds {
    min-width: 1100px;
  }

  .bb-footer-decor__follow {
    padding-top: 34px;
  }

  footer .footer-content {
    width: min(100%, 700px) !important;
  }

  .bb-footer-nav__link {
    min-height: 40px !important;
    padding: 0 12px !important;
    font-size: 17px !important;
  }
}


/* ==========================================================
   MOBILE
========================================================== */

@media screen and (max-width: 749px) {
  .bb-footer-decor {
    padding-top: 100px;
  }

  .bb-footer-decor__clouds {
    top: 0;
    width: auto;
    min-width: 840px;
    max-width: none;
  }

  .bb-footer-decor__follow {
    flex-direction: column;
    gap: 10px;
    padding: 24px 16px 10px;
  }

  .bb-footer-decor__follow-text {
    font-size: clamp(36px, 10vw, 44px);
    -webkit-text-stroke-width: 5px;
  }

  .bb-footer-decor__socials {
    gap: 11px;
  }

  .bb-footer-decor__social-icon {
    width: 42px;
  }

  footer .footer-content {
    width: 100% !important;
    gap: 8px !important;
    padding-top: 12px !important;
  }

  footer .footer-content > :first-child .text-block:first-child p {
    font-size: clamp(28px, 8vw, 34px) !important;
  }

  footer
  .layout-panel-flex.layout-panel-flex--column.mobile-column
  .text-block:not(:first-child) {
    max-width: 340px !important;
  }

  footer
  .layout-panel-flex.layout-panel-flex--column.mobile-column
  .text-block:not(:first-child) p {
    font-size: 15px !important;
  }

  footer .email-signup {
    width: calc(100% - 32px) !important;
    max-width: 360px !important;
  }

  footer .email-signup__input-group,
  footer .email-signup__field,
  footer .email-signup__input-wrapper {
    min-height: 46px !important;
  }

  footer .email-signup input[type="email"] {
    height: 42px !important;
    padding: 0 54px 0 16px !important;
    font-size: 14px !important;
  }

  footer .email-signup button[type="submit"],
footer .email-signup__button {
  right: 4px !important;

  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
}

footer .email-signup button[type="submit"]::after,
footer .email-signup__button::after {
  margin-left: 2px;

  border-top-width: 6px;
  border-bottom-width: 6px;
  border-left-width: 10px;
}

  .bb-footer-nav {
    margin-top: 16px !important;
  }

  .bb-footer-nav__list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  .bb-footer-nav__item:nth-child(5) {
    grid-column: 1 / -1 !important;
  }

  .bb-footer-nav__link {
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 16px !important;
    white-space: normal !important;
  }

  .bb-footer-nav__details {
    position: static;
  }

  .bb-footer-nav__dropdown {
    right: 20px;
    bottom: 100%;
    left: 20px;
    width: auto;
    border-radius: 14px 14px 0 0;
  }

  .bb-footer-nav__submenu-link {
    padding: 8px 15px;
    font-size: 14px !important;
    text-align: center !important;
  }

  .footer-utilities .utilities {
    padding: 8px 16px 10px !important;
  }

  .footer-utilities__group-copyright {
    max-width: 350px !important;
  }

  .footer-utilities__group-copyright .footer-utilities__text {
    font-size: 10px !important;
  }
}

/* ==========================================================
   HOMEPAGE FOOTER ADJUSTMENTS — DESKTOP ONLY
   Pulls the footer clouds behind the Reviews section while
   retaining the white continuation into the footer.
========================================================== */

@media screen and (min-width: 750px) {

  body:has(main[data-template="index"]) .bb-footer-decor {
    margin-top: -180px;
    padding-top: 285px;
    padding-bottom: 0;
  }

  body:has(main[data-template="index"]) .bb-footer-decor__inner,
  body:has(main[data-template="index"]) .bb-footer-decor__follow {
    background: transparent !important;
  }

  body:has(main[data-template="index"]) .bb-footer-decor__follow {
    padding-top: 45px;
  }

  body:has(main[data-template="index"]) .bb-footer-nav {
    margin-top: 38px !important;
  }

}

/* ==========================================================
   HOMEPAGE FOOTER ADJUSTMENTS — MOBILE ONLY
   Pulls the footer clouds slightly behind the Reviews card
   and adds breathing room before the newsletter.
========================================================== */

@media screen and (max-width: 749px) {

  /* Pull clouds upward beneath the Reviews card */
  body:has(main[data-template="index"]) .bb-footer-decor {
    margin-top: -45px;
  }

  /* Add a little space between Follow Us and newsletter */
  body:has(main[data-template="index"]) .footer-content {
    padding-top: 20px !important;
  }

}
/* ==========================================================
   BEDTIME BESTIES — PRODUCT PAGE
   PRODUCT-ONLY STYLESHEET

   This file is intentionally scoped to:
   main[data-template="product"]

   It does not alter the Bedtime Besties homepage CSS.

   IMPORTANT HORIZON MEDIA SETTING:
   Product media > Desktop pagination = Thumbnails
   Product media > Thumbnail position = Bottom

   Horizon only renders thumbnail markup when that setting is
   selected, so CSS cannot create the thumbnails by itself.
========================================================== */


/* ==========================================================
   1. FULL-WIDTH BLUE PRODUCT FIELD
========================================================== */

main[data-template="product"] {
  --bb-product-blue: #AFDEF9;
  --bb-product-purple: #482683;
  --bb-product-pink: #c7017f;
  --bb-product-yellow: #FFDD00;
  --bb-product-ink: #1d1d1b;
  --bb-product-panel-radius: 22px;
  --bb-product-panel-shadow: 0 10px 24px rgb(49 39 131 / 12%);
}

main[data-template="product"] .product-information {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-block: 34px 42px !important;
  box-sizing: border-box;
  background: var(--bb-product-blue);
}

main[data-template="product"] .product-information::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  z-index: -2;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--bb-product-blue);
  pointer-events: none;
}

main[data-template="product"] .product-information.section--page-width {
  max-width: 1440px;
}


/* ==========================================================
   2. HORIZON GRID — TRANSPARENT PARENT

   The parent is NOT a white card.
   Media and details are the two separate white treatments.
========================================================== */

main[data-template="product"]
product-component.product-information__grid {
  width: calc(100% - 48px) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  box-sizing: border-box;
}


/* ==========================================================
   3. DESKTOP TWO-COLUMN LAYOUT
========================================================== */

@media screen and (min-width: 990px) {

  main[data-template="product"]
  product-component.product-information__grid {
    display: grid !important;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 0.95fr) !important;
    column-gap: clamp(26px, 2vw, 32px) !important;
    row-gap: 0 !important;
    align-items: start !important;
  }


  /* ========================================================
     LEFT — WHITE FRAME, NOT A LARGE PADDED CARD

     Padding increased from 5px to a real "mat" around the
     photo — the scamp shows a distinct, chunky white border
     around the image, not a hairline edge.
  ======================================================== */

  main[data-template="product"]
  product-component.product-information__grid
  > .product-information__media {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    /*
      Critical: arrows must be allowed to protrude.
    */
    overflow: visible !important;
  }


  /* ========================================================
     RIGHT — GENUINE WHITE DETAILS PANEL
  ======================================================== */

  main[data-template="product"]
  product-component.product-information__grid
  > .product-details {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding:
      clamp(24px, 2vw, 30px)
      clamp(22px, 2vw, 28px)
      clamp(26px, 2vw, 32px) !important;

    box-sizing: border-box;
    background: #ffffff !important;
    border-radius: var(--bb-product-panel-radius);
    box-shadow: var(--bb-product-panel-shadow);
    overflow: visible !important;
  }

}


/* Desktop scamp alignment: spacing-only pass. Gallery/image sizing is intentionally unchanged. */


/* ==========================================================
   4. PRODUCT MEDIA — KEEP HORIZON'S CAROUSEL STRUCTURE

   Do NOT change slideshow-component to grid/block here.
   Horizon uses that structure to position its controls.
========================================================== */

main[data-template="product"]
.product-information__media
media-gallery {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}


/*
  Remove Horizon's viewport-height behaviour without
  replacing the slideshow's own layout mechanism.
*/

main[data-template="product"]
.product-information__media
slideshow-slide.product-media-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  aspect-ratio: 1 / 1 !important;

  --grid-template-rows-desktop: 1fr !important;
  --grid-template-rows: 1fr !important;

  overflow: hidden !important;
  border-radius: 14px;
}


main[data-template="product"]
.product-information__media
.product-media {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 14px;
  background: transparent;
}


main[data-template="product"]
.product-information__media
.product-media__image {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ==========================================================
   5. GALLERY CHEVRONS — NEW VISUAL ARROW LAYER

   Horizon's original Previous / Next buttons remain in place
   as transparent click targets. Their native flip-x behaviour
   is preserved. The visible circles + triangles are drawn on
   the slideshow-container itself so they sit above the media
   overlay and can overhang the gallery edge by 50%.
========================================================== */

main[data-template="product"]
.product-information__media
slideshow-container {
  position: relative !important;
  overflow: visible !important;

  padding: 22px !important;
  box-sizing: border-box;
  background: #ffffff !important;
  border-radius: var(--bb-product-panel-radius);
  box-shadow: var(--bb-product-panel-shadow);
  z-index: 20 !important;
}

/* Visible NEW LEFT arrow. The SVG contains the pink
   left-pointing triangle. */
main[data-template="product"]
.product-information__media
slideshow-container::before {
  content: "";
  position: absolute !important;
  top: 50% !important;
  left: -24px !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpolygon points='28,12 16,24 28,36' fill='%23c7017f'/%3E%3C/svg%3E") center/48px 48px no-repeat,
    rgb(255 255 255 / 55%) !important;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%) !important;
  backdrop-filter: blur(1px);
  z-index: 200 !important;
  pointer-events: none !important;
  transform: translateY(-50%) !important;
}

/* Visible NEW RIGHT arrow. */
main[data-template="product"]
.product-information__media
slideshow-container::after {
  content: "";
  position: absolute !important;
  top: 50% !important;
  right: -24px !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpolygon points='20,12 32,24 20,36' fill='%23c7017f'/%3E%3C/svg%3E") center/48px 48px no-repeat,
    rgb(255 255 255 / 55%) !important;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%) !important;
  backdrop-filter: blur(1px);
  z-index: 200 !important;
  pointer-events: none !important;
  transform: translateY(-50%) !important;
}

/* Keep Horizon's original Previous / Next buttons as
   transparent click targets. */
main[data-template="product"]
.product-information__media
slideshow-arrows[position="center"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 300 !important;
}

main[data-template="product"]
.product-information__media
slideshow-arrows[position="center"]
.slideshow-control--style-chevron {
  position: absolute !important;
  top: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
}

/* Preserve Horizon's native positions as transparent click targets. */
main[data-template="product"]
.product-information__media
slideshow-arrows[position="center"]
.slideshow-control--previous {
  left: -24px !important;
  right: auto !important;
  inset-inline-start: -24px !important;
  inset-inline-end: auto !important;
  transform: translateY(-50%) !important;
}

main[data-template="product"]
.product-information__media
slideshow-arrows[position="center"]
.slideshow-control--next {
  left: auto !important;
  right: -24px !important;
  inset-inline-start: auto !important;
  inset-inline-end: -24px !important;
  transform: translateY(-50%) !important;
}

/* Hide only Horizon's original SVG artwork. */
main[data-template="product"]
.product-information__media
slideshow-arrows[position="center"]
.slideshow-control--style-chevron
.icon-caret {
  display: none !important;
}

@media screen and (max-width: 749px) {

  /* Visible arrows */
  main[data-template="product"]
  .product-information__media
  slideshow-container::before {
    left: 4px !important;
  }

  main[data-template="product"]
  .product-information__media
  slideshow-container::after {
    right: 4px !important;
  }

  /* Click targets */
  main[data-template="product"]
  .product-information__media
  slideshow-arrows[position="center"]
  .slideshow-control--previous {
    left: 4px !important;
    right: auto !important;
    inset-inline-start: 4px !important;
    inset-inline-end: auto !important;
  }

  main[data-template="product"]
  .product-information__media
  slideshow-arrows[position="center"]
  .slideshow-control--next {
    right: 4px !important;
    left: auto !important;
    inset-inline-end: 4px !important;
    inset-inline-start: auto !important;
  }

}

/* ==========================================================
   6. HORIZON PAGINATION / THUMBNAILS

   The current theme export has desktop pagination set to
   "counter". Change it to "Thumbnails" in the Product media
   block to render actual thumbnail markup.

   These rules style either the existing counter or the
   thumbnail controls when enabled.
========================================================== */

main[data-template="product"]
.product-information__media
slideshow-controls {
  position: relative !important;
  z-index: 7 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}


main[data-template="product"]
.product-information__media
.slideshow-controls__counter {
  font-family: var(--bb-font-display);
  font-weight: 800;
  color: var(--bb-product-purple);
}


/* Desktop thumbnail strip */

@media screen and (min-width: 750px) {

  main[data-template="product"]
  .product-information__media
  slideshow-controls[thumbnails] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;

    margin: 18px 0 0 !important;
    padding: 0 2px !important;

    background: transparent !important;
    box-sizing: border-box;
  }


  main[data-template="product"]
  .product-information__media
  .slideshow-controls__thumbnails {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100% !important;
    gap: 12px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
  }


  main[data-template="product"]
  .product-information__media
  .slideshow-controls__thumbnail {
    flex: 0 0 84px !important;

    width: 84px !important;
    height: 84px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    border: 2px solid transparent !important;
    border-radius: 10px !important;

    background: #ffffff;
    box-sizing: border-box;
  }


  main[data-template="product"]
  .product-information__media
  .slideshow-controls__thumbnail img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
  }


  main[data-template="product"]
  .product-information__media
  .slideshow-controls__thumbnail[aria-selected="true"] {
    border-color: var(--bb-product-pink) !important;
    outline: 0 !important;
  }

}


/* ==========================================================
   7. RESET HORIZON DETAILS SPACING
========================================================== */

main[data-template="product"]
.product-details
> .group-block:first-child {
  --padding-block-start: 0px !important;
  --padding-block-end: 0px !important;
  padding-block-start: 0 !important;
  padding-block-end: 0 !important;
}


main[data-template="product"]
.product-details
> .group-block:first-child
.group-block-content {
  --gap: 7px !important;
  gap: 7px !important;
}


main[data-template="product"]
.product-details
> * {
  max-width: 100%;
}


/* ==========================================================
   8. BESTIE PRODUCT SELECTOR

   Matches the scamp: compact black pills with the active
   product in Bedtime Besties pink.
========================================================== */

main[data-template="product"]
.product-details
.bb-product-selector {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

main[data-template="product"]
.product-details
.bb-product-selector__item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 38px !important;
  padding: 8px 10px !important;
  box-sizing: border-box;

  border: 0 !important;
  border-radius: 999px !important;

  background: #1d1d1b !important;
  color: #ffffff !important;

  font-family: var(--bb-font-title) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;

  box-shadow: none !important;
}

main[data-template="product"]
.product-details
.bb-product-selector__item.is-active {
  background: var(--bb-product-pink) !important;
  color: #ffffff !important;
}

main[data-template="product"]
.product-details
.bb-product-selector__item:hover,
main[data-template="product"]
.product-details
.bb-product-selector__item:focus-visible {
  color: #ffffff !important;
  text-decoration: none !important;
}

@media screen and (max-width: 749px) {
  main[data-template="product"]
  .product-details
  .bb-product-selector {
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px !important;
  }

  main[data-template="product"]
  .product-details
  .bb-product-selector__item {
    height: 30px !important;
    padding-inline: 6px !important;
    font-size: 14px !important;
  }
}


/* ==========================================================
   9. PRODUCT TITLE
========================================================== */

main[data-template="product"]
.product-details
h1 {
  width: 100%;
  margin: 0 !important;

  font-family: var(--bb-font-title) !important;
  font-weight: 900 !important;

  font-size: clamp(36px, 2.65vw, 46px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
}

/* Two-line split populated by the title-split script — falls back
   to plain pink text if the script hasn't run (e.g. JS disabled). */
main[data-template="product"]
.product-details
h1 {
  color: var(--bb-product-pink) !important;
}

main[data-template="product"]
.product-details
h1
.bb-product-title__brand {
  display: block;
  color: var(--bb-product-pink);
}

main[data-template="product"]
.product-details
h1
.bb-product-title__name {
  display: block;
  color: var(--bb-product-purple);
}


/* ==========================================================
   10. PRICE
========================================================== */

main[data-template="product"]
.product-details
product-price {
  display: block;
  width: 100%;
  margin-top: 6px !important;

  font-family: "Archivo", Arial, Helvetica, sans-serif !important;
  font-size: clamp(19px, 1.3vw, 22px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;

  color: var(--bb-product-purple) !important;
}


main[data-template="product"]
.product-details
product-price
.price {
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}


/* ==========================================================
   11. PRODUCT DESCRIPTION / PRODUCT SUMMARY

   Used for the short product summary rich-text metafield
   and the standard product description.
========================================================== */

main[data-template="product"]
.product-details
rte-formatter {
  display: block;
  width: 100% !important;
  max-width: none !important;

  margin-top: 14px !important;
  padding: 0 !important;

  font-family: var(--bb-font-display) !important;
  font-size: clamp(19px, 1.25vw, 22px) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;

  color: var(--bb-product-ink) !important;
}


/* ==========================================================
   PRODUCT SUMMARY METAFIELD
========================================================== */

main[data-template="product"]
.product-details
.metafield-rich_text_field {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  font: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}


/* Summary paragraphs */

main[data-template="product"]
.product-details
.metafield-rich_text_field > p {
  margin: 0 !important;
  padding: 0 !important;

  font: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}


/* Spacing between the two opening paragraphs */

main[data-template="product"]
.product-details
.metafield-rich_text_field > p + p {
  margin-top: 8px !important;
  padding-top: 0 !important;
}


/* Summary bullet list */

main[data-template="product"]
.product-details
.metafield-rich_text_field > ul,
main[data-template="product"]
.product-details
.metafield-rich_text_field > ol {
  margin: 8px 0 0 !important;
  padding-left: 1.2em !important;
}


/* Summary list items */

main[data-template="product"]
.product-details
.metafield-rich_text_field > ul > li,
main[data-template="product"]
.product-details
.metafield-rich_text_field > ol > li {
  margin: 0 0 5px !important;
  padding: 0 !important;

  font: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}


/* Remove extra space after the final bullet */

main[data-template="product"]
.product-details
.metafield-rich_text_field > ul > li:last-child,
main[data-template="product"]
.product-details
.metafield-rich_text_field > ol > li:last-child {
  margin-bottom: 0 !important;
}


/* ==========================================================
   STANDARD PRODUCT DESCRIPTION
   Applies when the normal product description is being
   rendered rather than the summary metafield.
========================================================== */

main[data-template="product"]
.product-details
rte-formatter:not(:has(.metafield-rich_text_field)) p {
  margin: 0 0 18px !important;
  padding: 0 !important;

  font: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}


main[data-template="product"]
.product-details
rte-formatter:not(:has(.metafield-rich_text_field)) ul,
main[data-template="product"]
.product-details
rte-formatter:not(:has(.metafield-rich_text_field)) ol {
  margin: 18px 0 !important;
  padding-left: 1.25em !important;
}


main[data-template="product"]
.product-details
rte-formatter:not(:has(.metafield-rich_text_field)) li {
  margin: 0 0 8px !important;
  padding: 0 !important;
}


main[data-template="product"]
.product-details
rte-formatter:not(:has(.metafield-rich_text_field)) li:last-child {
  margin-bottom: 0 !important;
}


/* ==========================================================
   MOBILE
========================================================== */

@media screen and (max-width: 749px) {

  main[data-template="product"]
  .product-details
  rte-formatter {
    font-size: clamp(18px, 4.8vw, 20px) !important;
    line-height: 1.28 !important;
  }

  main[data-template="product"]
  .product-details
  .metafield-rich_text_field > p + p {
    margin-top: 8px !important;
    padding-top: 0 !important;
  }

  main[data-template="product"]
  .product-details
  .metafield-rich_text_field > ul,
  main[data-template="product"]
  .product-details
  .metafield-rich_text_field > ol {
    margin-top: 8px !important;
    padding-left: 1.15em !important;
  }

  main[data-template="product"]
  .product-details
  .metafield-rich_text_field > ul > li,
  main[data-template="product"]
  .product-details
  .metafield-rich_text_field > ol > li {
    margin-bottom: 6px !important;
  }

}

/* ==========================================================
   12. PURCHASE AREA

   v8:
   - Seal remains completely untouched.
   - Delivery Details is anchored to the purchase area.
   - Expanding the subscription option cannot move it.
   - Delivery panel remains independent of Seal.
========================================================== */

main[data-template="product"]
.product-details
.buy-buttons-block {
  display: block;
  width: 100%;
  margin-top: 12px;
}


main[data-template="product"]
.product-details
.product-form-buttons {
  position: relative;

  width: 100%;
  margin: 0;

  gap: 10px !important;
}


/* ==========================================================
   DELIVERY DETAILS TRIGGER - DESKTOP

   Absolute positioning is intentional.

   This prevents Delivery Details moving when Seal expands
   the subscription controls or when the BB subscription
   builder appears.
========================================================== */

main[data-template="product"]
.product-details
.bb-delivery-details {
  position: absolute;
  top: -64px;
  right: 18px;
  left: auto;
  display: block;
  width: fit-content !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  color: var(--bb-product-purple);
  z-index: 20;
}


/* ==========================================================
   DELIVERY DETAILS BUTTON
========================================================== */

main[data-template="product"]
.product-details
.bb-delivery-details__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: auto;
  min-height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--bb-product-purple);
  font-family: var(--bb-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}


/* ==========================================================
   DELIVERY ICON
========================================================== */

main[data-template="product"]
.product-details
.bb-delivery-details__icon {
  display: block;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  object-fit: contain;
}


/* Delivery label */

main[data-template="product"]
.product-details
.bb-delivery-details__label {
  display: inline-block;
  color: var(--bb-product-purple);
  white-space: nowrap;
}


/* Remove Horizon button treatments */

main[data-template="product"]
.product-details
.bb-delivery-details__trigger:hover,
main[data-template="product"]
.product-details
.bb-delivery-details__trigger:focus,
main[data-template="product"]
.product-details
.bb-delivery-details__trigger:focus-visible,
main[data-template="product"]
.product-details
.bb-delivery-details__trigger:active {
  border: 0;
  background: transparent;
  color: var(--bb-product-purple);
  box-shadow: none;
  outline: none;
}


/* ==========================================================
   DELIVERY DETAILS PANEL

   The panel is also anchored to product-form-buttons,
   so it remains in the same place regardless of whether
   the subscription builder is expanded.
========================================================== */

main[data-template="product"]
.product-details
.product-form-buttons
> .bb-delivery-details__panel {
  position: absolute;
  top: -36px;
  left: 0;
  z-index: 50;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ==========================================================
   DELIVERY PANEL POINTER

   Centred beneath the delivery truck.
========================================================== */

main[data-template="product"]
.product-details
.product-form-buttons
> .bb-delivery-details__panel::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 68px;
  left: auto;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--bb-product-purple);
  z-index: 2;
}


/* Hidden state */

main[data-template="product"]
.product-details
.product-form-buttons
> .bb-delivery-details__panel[hidden] {
  display: none !important;
}


/* ==========================================================
   DELIVERY PANEL CONTENT

   Compact typography to closely match Seal.
========================================================== */

main[data-template="product"]
.product-details
.bb-delivery-details__content {
  position: relative;
  width: 100%;
  padding: 14px 14px 15px;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: var(--bb-product-purple);
  color: #ffffff;
  box-shadow: none;
  font-family: var(--bb-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  z-index: 1;
}


/* Paragraph spacing */

main[data-template="product"]
.product-details
.bb-delivery-details__content p {
  margin: 0 0 10px;
}

main[data-template="product"]
.product-details
.bb-delivery-details__content p:last-child {
  margin-bottom: 0;
}


/* Delivery Details heading */

main[data-template="product"]
.product-details
.bb-delivery-details__content strong {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}


/* Lists */

main[data-template="product"]
.product-details
.bb-delivery-details__content ul,
main[data-template="product"]
.product-details
.bb-delivery-details__content ol {
  margin: 8px 0;
  padding-left: 20px;
}

main[data-template="product"]
.product-details
.bb-delivery-details__content li {
  margin-bottom: 4px;
}


/* Links */

main[data-template="product"]
.product-details
.bb-delivery-details__content a {
  color: var(--bb-yellow-text, #ffed00);
  text-decoration: underline;
}


/* ==========================================================
   DETAILS PANEL STACKING

   Keeps open details panels above the section below.
========================================================== */

main[data-template="product"] .product-details {
  position: relative !important;
  z-index: 100 !important;
}

main[data-template="product"] .bb-delivery-details__panel {
  z-index: 110 !important;
}


/* ==========================================================
   MOBILE BUY BUTTON LAYOUT

   Subscription Details + Delivery Details share the
   information row above the purchase controls.

   Quantity + Add to cart sit on one row.
   Buy Now sits beneath.
========================================================== */

@media screen and (max-width: 749px) {

  /* ========================================================
     BUY BUTTON GRID
  ======================================================== */

  main[data-template="product"]
  .product-form-buttons--stacked {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    padding-top: 4px !important;
  }


  /* ========================================================
     DELIVERY DETAILS - MOBILE

     Positioned independently from the purchase controls so
     subscription expansion cannot move it.

     Aligned visually with Seal's Subscription Details.
  ======================================================== */

  main[data-template="product"]
  .product-details
  .bb-delivery-details {
    position: absolute !important;
    top: -64px !important;
    right: 22px !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    color: var(--bb-product-purple);
    z-index: 20;
  }


  /* ========================================================
     DELIVERY DETAILS BUTTON - MOBILE
  ======================================================== */

  main[data-template="product"]
  .product-details
  .bb-delivery-details__trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    width: auto !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--bb-product-purple) !important;
    font-family: var(--bb-font-body);
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.2 !important;
    text-align: left;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
  }


  /* ========================================================
     DELIVERY ICON - MOBILE
  ======================================================== */

  main[data-template="product"]
  .product-details
  .bb-delivery-details__icon {
    display: block;
    flex: 0 0 25px;
    width: 25px !important;
    height: 25px !important;
    object-fit: contain;
  }


  /* ========================================================
     DELIVERY LABEL - MOBILE
  ======================================================== */

  main[data-template="product"]
  .product-details
  .bb-delivery-details__label {
    display: inline-block;
    color: var(--bb-product-purple);
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
  }


  /* ========================================================
     DELIVERY PANEL - MOBILE

     Opens immediately beneath the Subscription Details /
     Delivery Details row.

     The panel overlays the purchase controls rather than
     changing the height of the product panel.
  ======================================================== */

  main[data-template="product"]
  .product-details
  .product-form-buttons
  > .bb-delivery-details__panel {
    position: absolute !important;
    top: -28px !important;
    left: 0 !important;
    z-index: 110 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }


  /* ========================================================
     DELIVERY PANEL POINTER - MOBILE

     Positioned beneath the Delivery Details trigger.
  ======================================================== */

  main[data-template="product"]
  .product-details
  .product-form-buttons
  > .bb-delivery-details__panel::before {
    content: "";
    position: absolute;
    top: -8px !important;
    right: 55px !important;
    left: auto !important;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--bb-product-purple);
    z-index: 2;
  }


  /* ========================================================
     DELIVERY PANEL CONTENT - MOBILE
  ======================================================== */

  main[data-template="product"]
  .product-details
  .bb-delivery-details__content {
    width: 100%;
    padding: 13px 14px 14px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.4;
  }

  main[data-template="product"]
  .product-details
  .bb-delivery-details__content strong {
    font-size: 14px;
    line-height: 1.2;
  }


  /* ========================================================
     GIFT OPTIONS
     Full-width row above the purchase controls.
  ======================================================== */

  main[data-template="product"]
  .product-form-buttons--stacked
  > .bb-gift-options {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    box-sizing: border-box !important;
  }


  /* ========================================================
     QUANTITY

     Layout only.

     The quantity selector itself is styled in Section 13.
     Do not duplicate its input/button typography or sizing
     here.
  ======================================================== */

  main[data-template="product"]
  .product-form-buttons--stacked
  > .quantity-selector-wrapper {
    grid-column: 1 !important;
    grid-row: 2 !important;

    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
  }


  /* ========================================================
     ADD TO CART
  ======================================================== */

  main[data-template="product"]
  .product-form-buttons--stacked
  > span:has(> add-to-cart-component) {
    grid-column: 2 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;
  }


  main[data-template="product"]
  .product-form-buttons--stacked
  > span:has(> add-to-cart-component)
  .add-to-cart-button {
    width: 100% !important;
  }


  /* ========================================================
     BUY IT NOW
  ======================================================== */

  main[data-template="product"]
  .product-form-buttons--stacked
  > .accelerated-checkout-block {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;

    width: 100% !important;
  }


  /* ========================================================
     ERROR MESSAGES
  ======================================================== */

  main[data-template="product"]
  .product-form-buttons--stacked
  .product-form-text__error {
    grid-column: 1 / -1 !important;
  }


  /* ========================================================
     BEDTIME BESTIES SUBSCRIPTION BUILDER
  ======================================================== */

  main[data-template="product"]
  .product-form-buttons--stacked
  .bb-subscription-builder {
    grid-column: 1 / -1 !important;
  }

}

/* ==========================================================
   13. QUANTITY
========================================================== */

main[data-template="product"]
.product-details
.quantity-selector {
  border: 2px solid var(--bb-product-purple) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

main[data-template="product"]
.product-details
.quantity-selector button {
  color: var(--bb-product-purple) !important;
}

main[data-template="product"]
.product-details
.quantity-selector input[type="number"] {
  font-family: var(--bb-font-display) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--bb-product-purple) !important;
}

/* ==========================================================
   MOBILE QUANTITY + ADD TO CART LAYOUT
========================================================== */

@media screen and (max-width: 749px) {

  main[data-template="product"]
  .product-details
  .product-form-buttons {
    grid-template-columns: 116px minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  main[data-template="product"]
  .product-details
  .quantity-selector-wrapper {
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;
    grid-column: 1 !important;
  }

  main[data-template="product"]
  .product-details
  .quantity-selector {
    width: 116px !important;
    min-width: 116px !important;
    max-width: 116px !important;

    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
  }

  main[data-template="product"]
  .product-details
  .quantity-selector button {
    height: 46px !important;
    min-height: 46px !important;
  }

  main[data-template="product"]
  .product-details
  .add-to-cart-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    grid-column: 2 !important;
  }

}

/* ==========================================================
   14. ADD TO CART
========================================================== */

main[data-template="product"]
.product-details
.add-to-cart-button {
  min-height: 54px !important;

  border: 4px solid #ffffff !important;
  border-radius: 999px !important;

  background: var(--bb-product-pink) !important;
  color: #ffffff !important;

  box-shadow: 0 5px 12px rgb(0 0 0 / 18%) !important;

  font-family: var(--bb-font-title) !important;
  font-size: clamp(20px, 1.5vw, 24px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;

  transform: translateY(0) scale(1);

  transition:
    transform 180ms cubic-bezier(.2, .7, .2, 1),
    box-shadow 180ms ease,
    filter 180ms ease !important;
}


main[data-template="product"]
.product-details
.add-to-cart-button svg {
  color: #ffffff !important;
}


/* ==========================================================
   ADD TO CART — HOVER

   Desktop / pointer devices only.
========================================================== */

@media (hover: hover) {

  main[data-template="product"]
  .product-details
  .add-to-cart-button:hover {
    transform:
      translateY(-2px)
      scale(1.015);

    box-shadow:
      0 8px 16px rgb(0 0 0 / 22%) !important;

    filter: brightness(1.04);
  }

}


/* ==========================================================
   ADD TO CART — PRESS

   Also provides tactile feedback on mobile.
========================================================== */

main[data-template="product"]
.product-details
.add-to-cart-button:active {
  transform:
    translateY(1px)
    scale(.985);

  box-shadow:
    0 2px 6px rgb(0 0 0 / 18%) !important;

  filter: none;

  transition-duration: 80ms !important;
}


/* ==========================================================
   ADD TO CART — KEYBOARD FOCUS
========================================================== */

main[data-template="product"]
.product-details
.add-to-cart-button:focus-visible {
  outline:
    3px solid var(--bb-product-purple) !important;

  outline-offset: 3px !important;
}



/* ==========================================================
   15. ACCELERATED CHECKOUT
========================================================== */

main[data-template="product"]
.product-details
.accelerated-checkout-block,

main[data-template="product"]
.product-details
.shopify-payment-button {
  width: 100%;
}


/* ==========================================================
   BUY NOW BUTTON
========================================================== */

main[data-template="product"]
.product-details
.shopify-payment-button__button--unbranded {
  position: relative !important;

  min-height: 50px !important;

  border: 2px solid var(--bb-product-purple) !important;
  border-radius: 999px !important;

  background: #ffffff !important;
  color: var(--bb-product-purple) !important;

  box-shadow: none !important;

  /*
    Hide Shopify's generated "Buy it now" visually.
    The native button itself remains fully functional.
  */

  font-size: 0 !important;
  line-height: 1 !important;

  transform: translateY(0) scale(1);

  transition:
    transform 180ms cubic-bezier(.2, .7, .2, 1),
    background-color 180ms ease,
    box-shadow 180ms ease !important;
}


/* ==========================================================
   CUSTOM "BUY NOW" LABEL
========================================================== */

main[data-template="product"]
.product-details
.shopify-payment-button__button--unbranded::after {
  content: "Buy Now";

  display: inline-block;

  font-family: var(--bb-font-title) !important;
  font-size: clamp(20px, 1.5vw, 24px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;

  color: var(--bb-product-purple) !important;

  text-align: center;

  pointer-events: none;
}


/* ==========================================================
   BUY NOW — HOVER

   Retains white/purple treatment but gives the button a
   subtle lift and very light purple tint.
========================================================== */

@media (hover: hover) {

  main[data-template="product"]
  .product-details
  .shopify-payment-button__button--unbranded:hover {
    border:
      2px solid var(--bb-product-purple) !important;

    background:
      rgb(72 38 131 / 6%) !important;

    color:
      var(--bb-product-purple) !important;

    transform:
      translateY(-2px)
      scale(1.01);

    box-shadow:
      0 5px 12px rgb(72 38 131 / 14%) !important;
  }

}


/* ==========================================================
   BUY NOW — PRESS

   Works with mouse and touch.
========================================================== */

main[data-template="product"]
.product-details
.shopify-payment-button__button--unbranded:active {
  border:
    2px solid var(--bb-product-purple) !important;

  background:
    rgb(72 38 131 / 10%) !important;

  color:
    var(--bb-product-purple) !important;

  transform:
    translateY(1px)
    scale(.985);

  box-shadow:
    0 2px 5px rgb(72 38 131 / 12%) !important;

  transition-duration: 80ms !important;
}


/* ==========================================================
   BUY NOW — FOCUS
========================================================== */

main[data-template="product"]
.product-details
.shopify-payment-button__button--unbranded:focus {
  border:
    2px solid var(--bb-product-purple) !important;

  background: #ffffff !important;
  color: var(--bb-product-purple) !important;

  box-shadow: none !important;
  outline: none !important;
}


main[data-template="product"]
.product-details
.shopify-payment-button__button--unbranded:focus-visible {
  border:
    2px solid var(--bb-product-purple) !important;

  background: #ffffff !important;
  color: var(--bb-product-purple) !important;

  box-shadow: none !important;

  outline:
    3px solid var(--bb-product-pink) !important;

  outline-offset: 3px !important;
}


/* ==========================================================
   KEEP CUSTOM BUY NOW LABEL UNCHANGED
========================================================== */

main[data-template="product"]
.product-details
.shopify-payment-button__button--unbranded:hover::after,

main[data-template="product"]
.product-details
.shopify-payment-button__button--unbranded:focus::after,

main[data-template="product"]
.product-details
.shopify-payment-button__button--unbranded:focus-visible::after,

main[data-template="product"]
.product-details
.shopify-payment-button__button--unbranded:active::after {
  color: var(--bb-product-purple) !important;
}


/* ==========================================================
   MOBILE
========================================================== */

@media screen and (max-width: 749px) {

  main[data-template="product"]
  .product-details
  .shopify-payment-button__button--unbranded {
    min-height: 50px !important;
  }


  main[data-template="product"]
  .product-details
  .shopify-payment-button__button--unbranded::after {
    font-size: 20px !important;
  }

}


/* ==========================================================
   REDUCED MOTION

   Keep all controls functional without movement for users
   who have requested reduced motion.
========================================================== */

@media (prefers-reduced-motion: reduce) {

  main[data-template="product"]
  .product-details
  .add-to-cart-button,

  main[data-template="product"]
  .product-details
  .shopify-payment-button__button--unbranded {
    transition: none !important;
    transform: none !important;
  }

}

/* ==========================================================
   MOBILE VIEWPORT CONTAINMENT
   Keep product content inside the viewport and centre the
   media/details panels without affecting desktop.
========================================================== */

@media screen and (max-width: 749px) {

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  main[data-template="product"] {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  main[data-template="product"] .product-information {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
  }

  main[data-template="product"] .product-information::before {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  /* Outer product grid stays full-width and centred */
  main[data-template="product"]
  product-component.product-information__grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;

    padding-left: 12px !important;
    padding-right: 12px !important;

    box-sizing: border-box !important;
  }

  /* Centre BOTH mobile product panels inside that grid */
  main[data-template="product"]
  product-component.product-information__grid
  > .product-information__media,

  main[data-template="product"]
  product-component.product-information__grid
  > .product-details {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin-left: auto !important;
    margin-right: auto !important;
    margin-inline: auto !important;

    justify-self: center !important;
    box-sizing: border-box !important;
  }

  /* Purchase area must stay inside the centred details panel */
  main[data-template="product"]
  .product-details
  .buy-buttons-block,

  main[data-template="product"]
  .product-details
  .product-form-buttons {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

}

/* ==========================================================
   BB PRODUCT DESCRIPTION CARD

   Description beneath product gallery.

   - White card
   - No border
   - Heading colour from product metafield
   - Larger body copy
   - Grey scrollbar
   - Bottom aligns with right-hand product panel
========================================================== */

@media screen and (min-width: 990px) {
  main[data-template="product"]
  product-component.product-information__grid {
    align-items: stretch !important;
  }

  main[data-template="product"]
  product-component.product-information__grid
  > .product-information__media {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  main[data-template="product"]
  .product-information__media
  .bb-product-media-sticky {
    position: sticky !important;
    top: var(--sticky-header-offset, 20px) !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  main[data-template="product"]
  .product-information__media
  .bb-product-media-sticky
  .product-media-gallery {
    position: relative !important;
    top: auto !important;
    flex: 0 0 auto !important;
  }

  main[data-template="product"]
  .product-information__media
  media-gallery.sticky-content {
    position: static !important;
    top: auto !important;
    height: auto !important;
  }

  main[data-template="product"]
  product-component.product-information__grid
  > .product-details {
    align-self: stretch !important;
  }

  main[data-template="product"]
  .product-details.sticky-content--desktop {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    inset: auto !important;
    inset-block-start: auto !important;
    inset-block-end: auto !important;
    height: auto !important;
    max-height: none !important;
  }

  /* Desktop description placement wrapper must participate in
     the flex sizing chain introduced by the responsive Liquid. */
  main[data-template="product"]
  .bb-product-description-placement--desktop {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

main[data-template="product"]
.bb-product-description-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 14px 0 0 !important;
  padding: 20px 24px 22px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: var(--bb-product-panel-radius, 22px) !important;
  box-shadow: var(--bb-product-panel-shadow, 0 10px 24px rgb(49 39 131 / 12%)) !important;
  color: var(--bb-product-ink, #1d1d1b) !important;
  overflow: hidden !important;
}

@media screen and (min-width: 990px) {
  main[data-template="product"]
  .bb-product-description-card {
    flex: 1 1 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
}

main[data-template="product"]
.bb-product-description-card__heading {
  flex: 0 0 auto !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  font-family: var(--bb-font-title) !important;
  font-size: clamp(30px, 2.4vw, 38px) !important;
  font-weight: 900 !important;
  line-height: .96 !important;
  letter-spacing: -.02em !important;
  color: var(--bb-description-heading, var(--bb-product-purple, #482683)) !important;
  text-align: center !important;
}

main[data-template="product"]
.bb-product-description-card__content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 12px 0 0 !important;
  box-sizing: border-box !important;
  font-family: var(--bb-font-display) !important;
  font-size: clamp(17px, 1.2vw, 20px) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--bb-product-ink, #1d1d1b) !important;
}

@media screen and (min-width: 990px) {
  main[data-template="product"]
  .bb-product-description-card__content {
    flex: 1 1 auto !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #a8a8a8 #eeeeee;
  }

  main[data-template="product"]
  .bb-product-description-card__content::-webkit-scrollbar {
    width: 6px;
  }

  main[data-template="product"]
  .bb-product-description-card__content::-webkit-scrollbar-track {
    background: #eeeeee;
    border-radius: 999px;
  }

  main[data-template="product"]
  .bb-product-description-card__content::-webkit-scrollbar-thumb {
    background: #a8a8a8;
    border-radius: 999px;
  }

  main[data-template="product"]
  .bb-product-description-card__content::-webkit-scrollbar-thumb:hover {
    background: #8f8f8f;
  }
}

main[data-template="product"]
.bb-product-description-card__content p {
  margin: 0 0 16px !important;
}

main[data-template="product"]
.bb-product-description-card__content p:last-child {
  margin-bottom: 0 !important;
}

main[data-template="product"]
.bb-product-description-card__content ul,
main[data-template="product"]
.bb-product-description-card__content ol {
  margin: 16px 0 !important;
  padding-left: 1.25em !important;
}

main[data-template="product"]
.bb-product-description-card__content li {
  margin: 0 0 7px !important;
  padding: 0 !important;
}

main[data-template="product"]
.bb-product-description-card__content li:last-child {
  margin-bottom: 0 !important;
}

main[data-template="product"]
.bb-product-description-card__content h2,
main[data-template="product"]
.bb-product-description-card__content h3,
main[data-template="product"]
.bb-product-description-card__content h4 {
  margin: 22px 0 10px !important;
  font-family: var(--bb-font-title) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: var(--bb-description-heading, var(--bb-product-purple, #482683)) !important;
}

main[data-template="product"]
.bb-product-description-card__content h2 {
  font-size: 27px !important;
}

main[data-template="product"]
.bb-product-description-card__content h3 {
  font-size: 24px !important;
}

main[data-template="product"]
.bb-product-description-card__content h4 {
  font-size: 21px !important;
}

main[data-template="product"]
.bb-product-description-card__content a {
  color: var(--bb-product-purple, #482683) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

@media screen and (min-width: 750px) and (max-width: 989px) {
  main[data-template="product"]
  .bb-product-description-card {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 12px !important;
    padding: 20px 22px 22px !important;
    border-radius: 18px !important;
    overflow: visible !important;
  }

  main[data-template="product"]
  .bb-product-description-card__heading {
    margin-bottom: 12px !important;
    font-size: 30px !important;
  }

  main[data-template="product"]
  .bb-product-description-card__content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-right: 0 !important;
    overflow: visible !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
  }
}

@media screen and (max-width: 749px) {
  main[data-template="product"]
  .bb-product-description-card {
    display: block !important;
    width: calc(100% - 20px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 20px 10px 0 !important;
    padding: 20px 18px 22px !important;
    border: 0 !important;
    border-radius: 14px !important;
    overflow: visible !important;
  }

  main[data-template="product"]
  .bb-product-description-card__heading {
    margin-bottom: 12px !important;
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: .96 !important;
  }

  main[data-template="product"]
  .bb-product-description-card__content {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    font-size: clamp(16px, 4.4vw, 18px) !important;
    line-height: 1.35 !important;
    scrollbar-width: auto;
  }

  main[data-template="product"]
  .bb-product-description-card__content p {
    margin-bottom: 16px !important;
  }
}


/* ==========================================================
   BEDTIME BESTIES REVIEWS
   Full-width reviews section

   - Cloud image selected in section customiser
   - Cloud sits over blue background
   - White review area
   - Soft 100px fade back into blue
   - Maximum 4 reviews
   - 1 / 2 / 3 / 4 reviews centred
   - No cards
   - No dividers
========================================================== */


/* ==========================================================
   SECTION
========================================================== */

.bb-reviews-section {
  position: relative;

  width: 100%;

  /*
    Keep the blue breathing space between the
    benefits card and the cloud transition.
  */
  margin: 100px 0 0;

  /*
    Review content spacing + shortened bottom fade.
  */
  padding: 62px 0 100px;

  box-sizing: border-box;

  /*
    Blue remains visible behind the lower part of the
    cloud artwork.

    White begins beneath the clouds, continues through
    the reviews, then fades back into blue over 100px.
  */
  background:
    linear-gradient(
      to bottom,

      transparent 0,
      transparent 52px,

      #ffffff 52px,
      #ffffff calc(100% - 100px),

      rgba(255, 255, 255, .98) calc(100% - 92px),
      rgba(255, 255, 255, .92) calc(100% - 82px),
      rgba(255, 255, 255, .78) calc(100% - 68px),
      rgba(255, 255, 255, .58) calc(100% - 52px),
      rgba(255, 255, 255, .34) calc(100% - 35px),
      rgba(255, 255, 255, .14) calc(100% - 18px),
      rgba(255, 255, 255, 0) 100%
    );

  overflow: visible;

  z-index: 1;
}


/* ==========================================================
   CLOUD DIVIDER
========================================================== */

.bb-reviews-section__clouds {
  position: absolute;

  left: 0;
  right: 0;

  /*
    Restored position from the version that had the
    correct separation from the benefits card.
  */
  top: -58px;

  width: 100%;
  height: 112px;

  margin: 0;
  padding: 0;

  line-height: 0;

  overflow: visible;

  pointer-events: none;

  z-index: 3;
}


.bb-reviews-section__cloud-image {
  position: absolute;

  left: 0;
  top: 0;

  display: block;

  width: 100%;
  max-width: none;

  height: 112px;

  margin: 0;
  padding: 0;

  object-fit: fill;
  object-position: center;

  z-index: 3;
}


/* ==========================================================
   INNER WIDTH
========================================================== */

.bb-reviews-section__inner {
  position: relative;

  z-index: 4;

  width: min(1220px, calc(100% - 40px));

  margin: 0 auto;
  padding: 0;

  box-sizing: border-box;
}


/* ==========================================================
   HEADING
========================================================== */

.bb-reviews-section__heading {
  margin: 0 0 28px;

  padding: 0;

  font-family: var(--bb-font-title);

  font-size: clamp(30px, 2.7vw, 40px);
  font-weight: 900;

  line-height: .98;

  letter-spacing: -.02em;

  text-align: center;

  color: var(--bb-product-purple, #482683);
}


/* ==========================================================
   REVIEW ROW

   Maximum four reviews.

   1 review  = centred
   2 reviews = centred pair
   3 reviews = centred group
   4 reviews = centred row
========================================================== */

.bb-reviews-grid {
  display: flex;

  flex-wrap: nowrap;

  align-items: flex-start;
  justify-content: center;

  gap: clamp(36px, 4vw, 62px);

  width: 100%;

  margin: 0 auto;
  padding: 0;

  box-sizing: border-box;
}


/* ==========================================================
   INDIVIDUAL REVIEW
========================================================== */

.bb-reviews-grid__review {
  flex: 0 1 300px;

  width: 300px;
  max-width: 300px;
  min-width: 0;

  margin: 0;
  padding: 0;

  box-sizing: border-box;

  border: 0;

  background: transparent;

  text-align: center;
}


/* ==========================================================
   STARS
========================================================== */

.bb-reviews-grid__stars {
  margin: 0 0 12px;

  padding: 0;

  color: var(--bb-review-star, #C7017F);

  font-family: Arial, Helvetica, sans-serif;

  font-size: 23px;
  font-weight: 700;

  line-height: 1;

  letter-spacing: 2px;

  white-space: nowrap;
}


.bb-reviews-grid__star {
  color: inherit;
}


.bb-reviews-grid__star--empty {
  opacity: .25;
}


/* ==========================================================
   REVIEW TEXT
========================================================== */

.bb-reviews-grid__text {
  width: 100%;

  margin: 0 auto 12px;

  padding: 0;

  font-family: var(--bb-font-display);

  font-size: clamp(17px, 1.15vw, 19px);
  font-weight: 700;

  line-height: 1.28;

  color: var(--bb-product-ink, #1d1d1b);

  text-align: center;
}


/* ==========================================================
   REVIEWER
========================================================== */

.bb-reviews-grid__reviewer {
  margin: 0;

  padding: 0;

  font-family: var(--bb-font-display);

  font-size: 16px;
  font-weight: 800;

  line-height: 1.2;

  color: var(--bb-product-ink, #1d1d1b);

  text-align: center;
}


/* ==========================================================
   TABLET
========================================================== */

@media screen and (min-width: 750px) and (max-width: 989px) {

  .bb-reviews-section {
    margin-top: 78px;

    padding: 52px 0 85px;

    background:
      linear-gradient(
        to bottom,

        transparent 0,
        transparent 40px,

        #ffffff 40px,
        #ffffff calc(100% - 85px),

        rgba(255, 255, 255, .95) calc(100% - 77px),
        rgba(255, 255, 255, .78) calc(100% - 62px),
        rgba(255, 255, 255, .52) calc(100% - 43px),
        rgba(255, 255, 255, .22) calc(100% - 22px),
        rgba(255, 255, 255, 0) 100%
      );
  }


  .bb-reviews-section__clouds {
    top: -48px;

    height: 90px;
  }


  .bb-reviews-section__cloud-image {
    height: 90px;
  }


  .bb-reviews-section__inner {
    width: min(920px, calc(100% - 32px));
  }


  .bb-reviews-section__heading {
    margin-bottom: 26px;

    font-size: 32px;
  }


  .bb-reviews-grid {
    flex-wrap: wrap;

    gap: 34px 46px;
  }


  .bb-reviews-grid__review {
    flex: 0 1 280px;

    width: 280px;
    max-width: 280px;
  }


  .bb-reviews-grid__stars {
    font-size: 22px;
  }


  .bb-reviews-grid__text {
    font-size: 17px;
  }


  .bb-reviews-grid__reviewer {
    font-size: 15px;
  }

}


/* ==========================================================
   MOBILE
========================================================== */

@media screen and (max-width: 749px) {

  .bb-reviews-section {
    margin-top: 58px;

    padding: 44px 0 70px;

    background:
      linear-gradient(
        to bottom,

        transparent 0,
        transparent 30px,

        #ffffff 30px,
        #ffffff calc(100% - 70px),

        rgba(255, 255, 255, .95) calc(100% - 63px),
        rgba(255, 255, 255, .76) calc(100% - 49px),
        rgba(255, 255, 255, .48) calc(100% - 33px),
        rgba(255, 255, 255, .18) calc(100% - 17px),
        rgba(255, 255, 255, 0) 100%
      );
  }


  /* ========================================================
     CLOUD

     Keep the cloud artwork wider than the viewport without
     compressing it.

     135% gives larger, deeper cloud shapes on mobile while
     still cropping the outer edges of the artwork.
  ======================================================== */

  .bb-reviews-section__clouds {
    top: -18px;

    width: 100%;
    height: 120px;

    overflow: hidden;

    pointer-events: none;
  }


  .bb-reviews-section__cloud-image {
    position: absolute;

    top: 0;
    left: 50%;

    display: block;

    width: 135% !important;
    max-width: none !important;

    height: auto !important;

    margin: 0 !important;

    transform: translateX(-50%);

    object-fit: initial !important;
    object-position: center;
  }


  /* ========================================================
     INNER
  ======================================================== */

  .bb-reviews-section__inner {
    width: calc(100% - 28px);
  }


  /* ========================================================
     HEADING
  ======================================================== */

  .bb-reviews-section__heading {
    margin-bottom: 26px;

    font-size: clamp(28px, 8vw, 36px);

    line-height: .98;
  }


  /* ========================================================
     REVIEWS
  ======================================================== */

  .bb-reviews-grid {
    flex-wrap: wrap;

    gap: 34px;
  }


  .bb-reviews-grid__review {
    flex: 0 1 100%;

    width: 100%;
    max-width: 420px;
  }


  /* ========================================================
     STARS
  ======================================================== */

  .bb-reviews-grid__stars {
    margin-bottom: 11px;

    font-size: 22px;
  }


  /* ========================================================
     REVIEW TEXT
  ======================================================== */

  .bb-reviews-grid__text {
    max-width: 380px;

    margin-bottom: 11px;

    font-size: 17px;

    line-height: 1.3;
  }


  /* ========================================================
     REVIEWER
  ======================================================== */

  .bb-reviews-grid__reviewer {
    font-size: 15px;
  }

}

/* ==========================================================
   16. WHY SIGN UP & SAVE

   Product-page benefits panel.

   Desktop:
   - 720px card
   - deeper compact proportions
   - centred 2 x 2 benefits
   - slightly larger body copy
========================================================== */


/* ==========================================================
   SECTION
========================================================== */

main[data-template="product"] .bb-signup-save {
  position: relative;
  z-index: 0;

  width: 100%;

  background:
    var(--bb-signup-save-bg, var(--bb-product-blue));

  overflow: clip;
}


/* ==========================================================
   SITE CANVAS
========================================================== */

main[data-template="product"]
.bb-signup-save
.bb-site-canvas {
  width: 100%;
  max-width: 1440px;

  margin-inline: auto;

  padding: 0 24px;

  box-sizing: border-box;
}


/* ==========================================================
   CARD
========================================================== */

main[data-template="product"]
.bb-signup-save__card {
  width: min(100%, 720px);

  margin: 0 auto;

  padding:
    30px
    28px
    38px;

  box-sizing: border-box;

  background:
    var(--bb-signup-save-card-bg, #ffffff);

  border: 4px solid #662d91;

  border-radius: 22px;

  box-shadow:
    var(--bb-product-panel-shadow);
}


/* ==========================================================
   HEADING
========================================================== */

main[data-template="product"]
.bb-signup-save__heading {
  margin: 0 0 24px !important;

  text-align: center;

  font-family:
    var(--bb-font-title) !important;

  font-size:
    clamp(32px, 2.8vw, 46px) !important;

  font-weight: 900 !important;

  line-height: .96 !important;

  letter-spacing: -.02em !important;

  color:
    var(
      --bb-signup-save-heading-fill,
      var(--bb-product-yellow)
    ) !important;

  -webkit-text-stroke: 7px #662d91;

  paint-order: stroke fill;

  text-shadow: none;
}


/* ==========================================================
   BENEFITS GRID
========================================================== */

main[data-template="product"]
.bb-signup-save__grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  width: min(100%, 640px);

  margin: 0 auto;

  column-gap: 28px;
  row-gap: 26px;

  align-items: start;
}


/* ==========================================================
   INDIVIDUAL BENEFIT
========================================================== */

main[data-template="product"]
.bb-signup-save__benefit {
  display: grid;

  grid-template-columns:
    66px
    minmax(0, 1fr);

  column-gap: 11px;

  align-items: center;

  min-width: 0;
}


/* ==========================================================
   ICON
========================================================== */

main[data-template="product"]
.bb-signup-save__icon-wrap {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 66px;
  height: 66px;
}


main[data-template="product"]
.bb-signup-save__icon {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* ==========================================================
   COPY
========================================================== */

main[data-template="product"]
.bb-signup-save__copy {
  width: 100%;

  min-width: 0;
  max-width: none;
}


/* ==========================================================
   BENEFIT TITLE
========================================================== */

main[data-template="product"]
.bb-signup-save__title {
  margin: 0 0 4px !important;

  font-family:
    var(--bb-font-display) !important;

  font-size:
    clamp(19px, 1.45vw, 24px) !important;

  font-weight: 900 !important;

  line-height: 1.02 !important;

  color:
    var(
      --bb-benefit-title-color,
      var(--bb-product-pink)
    ) !important;
}


/* ==========================================================
   BENEFIT BODY TEXT
========================================================== */

main[data-template="product"]
.bb-signup-save__text {
  margin: 0;

  max-width: none;

  font-family:
    var(--bb-font-display) !important;

  /*
    Slightly larger than previous version.
  */
  font-size:
    clamp(16px, 1.12vw, 19px) !important;

  font-weight: 700 !important;

  line-height: 1.2 !important;

  color:
    var(
      --bb-signup-save-copy,
      var(--bb-product-ink)
    ) !important;
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media screen and (prefers-reduced-motion: reduce) {

  main[data-template="product"]
  .bb-signup-save
  .bb-reveal {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

}


/* ==========================================================
   TABLET
========================================================== */

@media screen and (min-width: 750px) and (max-width: 989px) {

  main[data-template="product"]
  .bb-signup-save
  .bb-site-canvas {
    padding-inline: 15px;
  }


  main[data-template="product"]
  .bb-signup-save__card {
    width: min(100%, 700px);

    padding:
      26px
      24px
      32px;
  }


  main[data-template="product"]
  .bb-signup-save__heading {
    margin-bottom: 22px !important;

    font-size:
      clamp(31px, 4.6vw, 40px) !important;

    -webkit-text-stroke-width: 6px;
  }


  main[data-template="product"]
  .bb-signup-save__grid {
    width: min(100%, 620px);

    column-gap: 24px;
    row-gap: 24px;
  }


  main[data-template="product"]
  .bb-signup-save__benefit {
    grid-template-columns:
      60px
      minmax(0, 1fr);

    column-gap: 10px;
  }


  main[data-template="product"]
  .bb-signup-save__icon-wrap {
    width: 60px;
    height: 60px;
  }


  main[data-template="product"]
  .bb-signup-save__title {
    font-size:
      clamp(18px, 2.2vw, 22px) !important;
  }


  main[data-template="product"]
  .bb-signup-save__text {
    font-size:
      clamp(15px, 1.85vw, 17px) !important;

    line-height: 1.2 !important;
  }

}


/* ==========================================================
   MOBILE

   Keep stacked for now.
   We'll finesse mobile separately against the mobile scamp.
========================================================== */

@media screen and (max-width: 749px) {

  main[data-template="product"]
  .bb-signup-save
  .bb-site-canvas {
    padding-inline: 10px;
  }


  main[data-template="product"]
  .bb-signup-save__card {
    width: 100%;

    padding:
      20px
      16px
      22px;

    border-width: 3px;

    border-radius: 17px;
  }


  main[data-template="product"]
  .bb-signup-save__heading {
    margin-bottom: 18px !important;

    font-size:
      clamp(30px, 8.8vw, 40px) !important;

    -webkit-text-stroke-width: 3px;
  }


  main[data-template="product"]
  .bb-signup-save__grid {
    grid-template-columns: 1fr;

    width: 100%;

    gap: 18px;
  }


  main[data-template="product"]
  .bb-signup-save__benefit {
    grid-template-columns:
      58px
      minmax(0, 1fr);

    column-gap: 10px;
  }


  main[data-template="product"]
  .bb-signup-save__icon-wrap {
    width: 58px;
    height: 58px;
  }


  main[data-template="product"]
  .bb-signup-save__copy {
    width: 100%;

    max-width: none;
  }


  main[data-template="product"]
  .bb-signup-save__title {
    font-size:
      clamp(19px, 5.8vw, 23px) !important;
  }


  main[data-template="product"]
  .bb-signup-save__text {
    max-width: none;

    font-size:
      clamp(15px, 4.2vw, 18px) !important;

    line-height: 1.2 !important;
  }

}



/* ==========================================================
   17. RECOMMENDED PRODUCTS

   Native Shopify / Horizon recommendations section.

   - Centred "You might also like..." heading
   - Two centred image-led recommendation cards
   - Native Horizon recommendation carousel retained
   - Native Horizon arrows retained
   - Existing 1440px product-page canvas retained
   - Blue background supplied by Shopify section background
   - White cloud mask creates the transition into the footer
   - Reveal animation handled locally after async recommendations load
========================================================== */

/* ==========================================================
   RECOMMENDATIONS SECTION
========================================================== */
main[data-template="product"] .product-recommendations {
  position: relative !important;
  width: 100%;
  background: transparent !important;
  overflow: visible !important;
  padding-block: 0 20px !important;
}

/* ==========================================================
   NATIVE SHOPIFY BLUE BACKGROUND
========================================================== */
main[data-template="product"] .product-recommendations .section-background {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: var(--bb-product-blue) !important;
  pointer-events: none !important;
}

/* ==========================================================
   WHITE CLOUD MASK
========================================================== */
main[data-template="product"] .product-recommendations::after {
  content: "";
  position: absolute !important;
  left: 50%;
  bottom: -2px;
  width: 100vw;
  height: 180px;
  transform: translateX(-50%);
  z-index: 5 !important;
  background-image: url("/cdn/shop/files/WhiteCloudMASK.png?v=1789046277");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  pointer-events: none;
}

/* ==========================================================
   HORIZON PAGE-WIDTH / 1440px CANVAS
========================================================== */
main[data-template="product"] .product-recommendations .section--page-width {
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  max-width: 1440px !important;
  margin-inline: auto !important;
  padding-block: 5px 0 !important;
  padding-inline: 24px !important;
  box-sizing: border-box;
  background: transparent !important;
}

/* ==========================================================
   RECOMMENDATION CONTENT
========================================================== */
main[data-template="product"] .product-recommendations .section-resource-list__content {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

/* ==========================================================
   CENTRED HEADING
========================================================== */
main[data-template="product"] .product-recommendations .section-resource-list__content > .text-block {
  width: 100% !important;
  max-width: none !important;
  text-align: center !important;
}
main[data-template="product"] .product-recommendations h2,
main[data-template="product"] .product-recommendations h3 {
  display: block;
  width: 100%;
  margin: 0 0 24px !important;
  text-align: center !important;
  font-family: var(--bb-font-title) !important;
  font-weight: 900 !important;
  color: #01b5a5 !important;
  font-size: clamp(34px, 3vw, 48px) !important;
  line-height: 1 !important;
  letter-spacing: -.02em !important;
  -webkit-text-stroke: 5px #ffffff;
  paint-order: stroke fill;
  text-shadow: none;
}

/* ==========================================================
   TWO CENTRED RECOMMENDATION CARDS
========================================================== */
main[data-template="product"] .product-recommendations .resource-list--grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 360px)) !important;
  justify-content: center !important;
  align-items: start !important;
  column-gap: 24px !important;
  row-gap: 24px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* ==========================================================
   RESOURCE LIST ITEM
========================================================== */
main[data-template="product"] .product-recommendations .resource-list__item {
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================
   PRODUCT CARD
========================================================== */
main[data-template="product"] .product-recommendations .product-card {
  width: 100% !important;
  max-width: 360px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
main[data-template="product"] .product-recommendations .product-card__content {
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ==========================================================
   RECOMMENDATION IMAGE FRAME
========================================================== */
main[data-template="product"] .product-recommendations .card-gallery {
  position: relative !important;
  width: 100% !important;
  max-width: 360px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 auto !important;
  overflow: visible !important;
  border: 4px solid #ffffff !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 14px rgb(49 39 131 / 12%) !important;
  box-sizing: border-box !important;
}
main[data-template="product"] .product-recommendations .card-gallery slideshow-container,
main[data-template="product"] .product-recommendations .card-gallery .product-media {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: transparent !important;
}
main[data-template="product"] .product-recommendations .card-gallery .product-media__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* ==========================================================
   NATIVE HORIZON RECOMMENDATION ARROWS
========================================================== */
main[data-template="product"] .product-recommendations .card-gallery slideshow-arrows[position="center"] {
  display: flex !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 20 !important;
  pointer-events: none !important;
}
main[data-template="product"] .product-recommendations .card-gallery slideshow-arrows[position="center"] .slideshow-control--style-arrow {
  position: absolute !important;
  top: 50% !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgb(255 255 255 / 78%) !important;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%) !important;
  color: var(--bb-product-pink) !important;
  pointer-events: auto !important;
  transform: translateY(-50%) !important;
}
main[data-template="product"] .product-recommendations .card-gallery slideshow-arrows[position="center"] .slideshow-control--previous {
  left: -23px !important;
  right: auto !important;
  inset-inline-start: -23px !important;
  inset-inline-end: auto !important;
}
main[data-template="product"] .product-recommendations .card-gallery slideshow-arrows[position="center"] .slideshow-control--next {
  right: -23px !important;
  left: auto !important;
  inset-inline-end: -23px !important;
  inset-inline-start: auto !important;
}
main[data-template="product"] .product-recommendations .card-gallery slideshow-arrows[position="center"] .icon-arrow,
main[data-template="product"] .product-recommendations .card-gallery slideshow-arrows[position="center"] .icon-arrow svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  color: var(--bb-product-pink) !important;
}

/* ==========================================================
   REMOVE NATIVE CARD TEXT / PRICE / QUICK ADD
========================================================== */
main[data-template="product"] .product-recommendations .product-grid-view-zoom-out--details,
main[data-template="product"] .product-recommendations .product-card__content product-price,
main[data-template="product"] .product-recommendations .product-card__content .quick-add,
main[data-template="product"] .product-recommendations .product-card__content .product-card__info,
main[data-template="product"] .product-recommendations .product-card__content .text-block {
  display: none !important;
}

/* ==========================================================
   TABLET
========================================================== */
@media screen and (min-width: 750px) and (max-width: 989px) {
  main[data-template="product"] .product-recommendations .section--page-width {
    padding-inline: 15px !important;
    padding-block: 24px 0 !important;
  }
  main[data-template="product"] .product-recommendations .resource-list--grid {
    grid-template-columns: repeat(2, minmax(0, 330px)) !important;
    column-gap: 20px !important;
  }
  main[data-template="product"] .product-recommendations .card-gallery {
    max-width: 330px !important;
  }
  main[data-template="product"] .product-recommendations::after {
    height: 160px;
  }
}

/* ==========================================================
   MOBILE
========================================================== */

@media screen and (max-width: 749px) {

  /* ========================================================
     RECOMMENDATIONS SECTION
  ======================================================== */

  main[data-template="product"] .product-recommendations {
    position: relative !important;
    padding-bottom: 20px !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
  }

  main[data-template="product"]
  .product-recommendations
  .section--page-width {
    padding-inline: 10px !important;
    padding-block: 0 !important;
    margin-top: -10px !important;
  }

  /* ========================================================
     HEADING
  ======================================================== */

  main[data-template="product"] .product-recommendations h2,
  main[data-template="product"] .product-recommendations h3 {
    margin-bottom: 18px !important;
    font-size: clamp(30px, 8vw, 40px) !important;
    -webkit-text-stroke-width: 4px;
  }

  /* ========================================================
     TWO RECOMMENDATION CARDS
  ======================================================== */

  main[data-template="product"]
  .product-recommendations
  .resource-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 18px !important;
  }

  main[data-template="product"]
  .product-recommendations
  .product-card {
    max-width: none !important;
  }

  main[data-template="product"]
  .product-recommendations
  .card-gallery {
    max-width: none !important;
    border-width: 3px !important;
    border-radius: 13px !important;
  }

  main[data-template="product"]
  .product-recommendations
  .card-gallery slideshow-container,

  main[data-template="product"]
  .product-recommendations
  .card-gallery .product-media {
    border-radius: 10px !important;
  }

  /* ========================================================
     RECOMMENDATION ARROWS
  ======================================================== */

  main[data-template="product"]
  .product-recommendations
  .card-gallery
  slideshow-arrows[position="center"]
  .slideshow-control--style-arrow {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  main[data-template="product"]
  .product-recommendations
  .card-gallery
  slideshow-arrows[position="center"]
  .slideshow-control--previous {
    left: -20px !important;
    inset-inline-start: -20px !important;
  }

  main[data-template="product"]
  .product-recommendations
  .card-gallery
  slideshow-arrows[position="center"]
  .slideshow-control--next {
    right: -20px !important;
    inset-inline-end: -20px !important;
  }

  /* ========================================================
     WHITE CLOUD MASK

     This stays attached to the recommendations section
     and shapes the top edge of the footer clouds.
  ======================================================== */

  main[data-template="product"]
  .product-recommendations::after {
    bottom: -65px !important;
    height: 180px !important;

    background-size: 130% auto !important;
    background-position: center 0 !important;
    background-repeat: no-repeat !important;

    pointer-events: none !important;
  }

  /* ========================================================
     FOOTER CLOUD OVERLAP

     PRODUCT PAGES WITH RECOMMENDATIONS ONLY.

     Pull ONLY the actual footer cloud artwork upwards.
     The footer itself, Follow us, newsletter and footer
     links remain in their normal positions.
  ======================================================== */

  body:has(main[data-template="product"] .product-recommendations)
  .bb-footer-decor__clouds {
    top: -70px !important;
  }

}

/* ==========================================================
   STICKY ADD TO CART
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__bar {
  position: fixed !important;
  z-index: 9999 !important;
  left: 50% !important;
  bottom: 18px !important;
  width: min(720px, calc(100vw - 36px)) !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px 10px 10px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 2px solid #482683 !important;
  border-radius: 28px !important;
  color: #482683 !important;
  box-shadow: 0 8px 24px rgb(49 39 131 / 22%) !important;
}


/* ==========================================================
   PRODUCT IMAGE
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__image {
  flex: 0 0 58px !important;
  width: 58px !important;
  height: 58px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

main[data-template="product"]
.sticky-add-to-cart__image-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}


/* ==========================================================
   PRODUCT INFORMATION
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding-left: 2px !important;
  padding-right: 8px !important;
}

main[data-template="product"]
.sticky-add-to-cart__title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--bb-font-display) !important;
  font-weight: 900 !important;
  color: #482683 !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}


/* Hide empty variant area */

main[data-template="product"]
.sticky-add-to-cart__variant {
  display: none !important;
}


/* ==========================================================
   PRICE
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__price {
  flex: 0 0 auto !important;
  margin: 0 !important;
  color: #482683 !important;
  font-family: var(--bb-font-display) !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}


/* ==========================================================
   STICKY ADD TO CART BUTTON
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__button {
  flex: 0 0 auto !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-width: 190px !important;
  min-height: 50px !important;

  margin: 0 !important;
  padding: 10px 24px !important;

  border: 0 !important;
  border-radius: 26px !important;

  background: #C7017F !important;
  color: #ffffff !important;

  font-family: var(--bb-font-title) !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  line-height: 1 !important;

  box-shadow:
    0 3px 8px rgb(0 0 0 / 16%) !important;

  cursor: pointer !important;

  transform:
    translateY(0)
    scale(1);

  transition:
    transform 180ms cubic-bezier(.2, .7, .2, 1),
    box-shadow 180ms ease,
    color 180ms ease,
    filter 180ms ease !important;
}


/* ==========================================================
   STICKY ADD TO CART — HOVER
========================================================== */

@media (hover: hover) {

  main[data-template="product"]
  .sticky-add-to-cart__button:hover {
    background: #C7017F !important;
    color: #ffed00 !important;

    transform:
      translateY(-2px)
      scale(1.015);

    box-shadow:
      0 6px 12px rgb(0 0 0 / 20%) !important;

    filter: brightness(1.03);
  }

}


/* ==========================================================
   STICKY ADD TO CART — PRESS / TAP
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__button:active {
  transform:
    translateY(1px)
    scale(.97);

  box-shadow:
    0 2px 5px rgb(0 0 0 / 16%) !important;

  filter: none;

  transition-duration: 80ms !important;
}


/* ==========================================================
   STICKY ADD TO CART — KEYBOARD FOCUS
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__button:focus-visible {
  outline:
    3px solid var(--bb-product-purple) !important;

  outline-offset: 3px !important;
}


/* ==========================================================
   STICKY ADD TO CART ICON
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__button
.svg-wrapper {
  display: inline-flex !important;

  width: 20px !important;
  height: 20px !important;

  margin-right: 8px !important;
}


main[data-template="product"]
.sticky-add-to-cart__button
.svg-wrapper svg {
  width: 20px !important;
  height: 20px !important;

  color: currentColor !important;
}


/* ==========================================================
   ADDED STATE
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__button
.add-to-cart__added {
  color: #ffed00 !important;
}


/* ==========================================================
   STICKY PRODUCT INFO — DESKTOP
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__info {
  flex: 1 1 auto !important;

  min-width: 0 !important;

  overflow: visible !important;
}


/* ==========================================================
   DESKTOP PRODUCT TITLE

   Full Shopify product title.
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__title--desktop {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  font-family: var(--bb-font-title) !important;
  font-weight: 900 !important;

  color: var(--bb-product-purple) !important;

  white-space: normal !important;

  overflow: visible !important;

  text-overflow: clip !important;

  line-height: 1.1 !important;
}


/* ==========================================================
   MOBILE PRODUCT TITLE

   Hidden by default.

   Liquid supplies:
   Bedtime Besties® {{ bestie_name }}
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__title--mobile {
  display: none !important;
}


/* ==========================================================
   KEEP STICKY BAR ABOVE EVERYTHING
========================================================== */

main[data-template="product"]
.sticky-add-to-cart__bar,

main[data-template="product"]
.sticky-add-to-cart__bar * {
  position: relative;

  z-index: inherit;
}


/* ==========================================================
   TABLET
========================================================== */

@media screen and (max-width: 989px) {

  main[data-template="product"]
  .sticky-add-to-cart__bar {
    width: calc(100vw - 28px) !important;

    bottom: 14px !important;

    gap: 12px !important;
  }


  main[data-template="product"]
  .sticky-add-to-cart__title--desktop {
    font-size: 15px !important;
  }


  main[data-template="product"]
  .sticky-add-to-cart__button {
    min-width: 170px !important;

    font-family: var(--bb-font-title) !important;
    font-weight: 900 !important;
    font-size: 17px !important;
  }

}


/* ==========================================================
   MOBILE
========================================================== */

@media screen and (max-width: 749px) {

  main[data-template="product"]
  .sticky-add-to-cart__bar {
    left: 50% !important;

    bottom: 10px !important;

    width: calc(100vw - 16px) !important;

    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    padding: 7px 8px !important;

    box-sizing: border-box !important;

    border-radius: 16px !important;
  }


  /* ========================================================
     PRODUCT IMAGE
  ======================================================== */

  main[data-template="product"]
  .sticky-add-to-cart__image {
    flex: 0 0 46px !important;

    width: 46px !important;
    height: 46px !important;

    border-radius: 9px !important;

    overflow: hidden !important;
  }


  main[data-template="product"]
  .sticky-add-to-cart__image-img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
  }


  /* ========================================================
     PRODUCT INFORMATION
  ======================================================== */

  main[data-template="product"]
  .sticky-add-to-cart__info {
    flex: 1 1 auto !important;

    min-width: 0 !important;

    padding:
      0
      4px
      0
      0 !important;

    overflow: hidden !important;
  }


  /* ========================================================
     HIDE FULL DESKTOP TITLE
  ======================================================== */

  main[data-template="product"]
  .sticky-add-to-cart__title--desktop {
    display: none !important;
  }


  /* ========================================================
     SHOW SHORT MOBILE TITLE

     Bedtime Besties® Baby Elephant
     Bedtime Besties® Baby Panda
     etc.
  ======================================================== */

  main[data-template="product"]
  .sticky-add-to-cart__title--mobile {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    font-family: var(--bb-font-title) !important;
    font-weight: 900 !important;

    color: #482683 !important;

    font-size: 13px !important;
    line-height: 1.1 !important;

    white-space: normal !important;

    overflow: hidden !important;

    text-overflow: clip !important;
  }


  /* ========================================================
     HIDE VARIANT ON MOBILE
  ======================================================== */

  main[data-template="product"]
  .sticky-add-to-cart__variant {
    display: none !important;
  }


  /* ========================================================
     HIDE PRICE ON MOBILE
  ======================================================== */

  main[data-template="product"]
  .sticky-add-to-cart__price {
    display: none !important;
  }


  /* ========================================================
     MOBILE STICKY ADD TO CART

     Icon-only button.
  ======================================================== */

  main[data-template="product"]
  .sticky-add-to-cart__button {
    position: relative !important;

    flex: 0 0 48px !important;

    width: 48px !important;
    min-width: 48px !important;

    height: 42px !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    border-radius: 22px !important;

    font-size: 0 !important;
    line-height: 0 !important;

    box-sizing: border-box !important;
  }


  /* ========================================================
     MOBILE CART ICON
  ======================================================== */

  main[data-template="product"]
  .sticky-add-to-cart__button
  .svg-wrapper {
    position: absolute !important;

    left: 50% !important;
    top: 50% !important;

    width: 22px !important;
    height: 22px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform:
      translate(-50%, -50%) !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;
  }


  main[data-template="product"]
  .sticky-add-to-cart__button
  .svg-wrapper svg {
    display: block !important;

    width: 22px !important;
    height: 22px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
  }


  /* ========================================================
     ADDED STATE — MOBILE
  ======================================================== */

  main[data-template="product"]
  .sticky-add-to-cart__button
  .add-to-cart__added {
    color: #ffed00 !important;
  }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

  main[data-template="product"]
  .sticky-add-to-cart__button {
    transform: none !important;

    transition: none !important;
  }

}
/* ==========================================================
   20. PRODUCT PAGE MOTION SYSTEM

   Main product:
   Restrained page-load entrance sequence.

   Description:
   Secondary entrance sequence within the media column.

   Lower reviews:
   Uses the existing BB .bb-reveal system so the animation
   occurs when the section enters the viewport.

   The cloud transition remains static.
========================================================== */


/* ==========================================================
   KEYFRAMES
========================================================== */

@keyframes bb-product-enter-up {

  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

}


@keyframes bb-product-enter-left {

  from {
    opacity: 0;
    transform: translate3d(-18px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

}


@keyframes bb-product-enter-right {

  from {
    opacity: 0;
    transform: translate3d(18px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

}


/* ==========================================================
   DESCRIPTION KEYFRAMES
========================================================== */

@keyframes bb-product-description-heading {

  from {
    opacity: 0;

    transform:
      translate3d(0, -14px, 0)
      scale(.97);
  }

  to {
    opacity: 1;

    transform:
      translate3d(0, 0, 0)
      scale(1);
  }

}


@keyframes bb-product-description-copy {

  from {
    opacity: 0;

    transform:
      translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;

    transform:
      translate3d(0, 0, 0);
  }

}


/* ==========================================================
   MAIN PRODUCT COLUMNS
========================================================== */

main[data-template="product"]
.product-information__media {

  animation:
    bb-product-enter-left
    .62s
    cubic-bezier(.2, .7, .2, 1)
    both;

}


main[data-template="product"]
.product-details {

  animation:
    bb-product-enter-right
    .62s
    cubic-bezier(.2, .7, .2, 1)
    .08s
    both;

}


/* ==========================================================
   PRODUCT DETAILS
========================================================== */

main[data-template="product"]
.product-details h1 {

  animation:
    bb-product-enter-up
    .55s
    cubic-bezier(.2, .7, .2, 1)
    .18s
    both;

}


main[data-template="product"]
.product-details product-price {

  animation:
    bb-product-enter-up
    .5s
    cubic-bezier(.2, .7, .2, 1)
    .24s
    both;

}


main[data-template="product"]
.bb-product-selector {

  animation:
    bb-product-enter-up
    .5s
    cubic-bezier(.2, .7, .2, 1)
    .30s
    both;

}


main[data-template="product"]
.product-details rte-formatter {

  animation:
    bb-product-enter-up
    .5s
    cubic-bezier(.2, .7, .2, 1)
    .36s
    both;

}


main[data-template="product"]
.product-details
.buy-buttons-block {

  animation:
    bb-product-enter-up
    .5s
    cubic-bezier(.2, .7, .2, 1)
    .44s
    both;

}


/* ==========================================================
   PRODUCT DESCRIPTION

   The outer description card moves into the page with the
   media column.

   The heading then settles down into place, followed by
   the description copy moving gently upwards.
========================================================== */

main[data-template="product"]
.bb-product-description-card__heading {

  animation:
    bb-product-description-heading
    .58s
    cubic-bezier(.18, .8, .25, 1)
    .34s
    both;

}


main[data-template="product"]
.bb-product-description-card__content {

  animation:
    bb-product-description-copy
    .62s
    cubic-bezier(.2, .7, .2, 1)
    .44s
    both;

}


/* ==========================================================
   MOBILE PRODUCT DETAILS PANEL
========================================================== */

@media screen and (max-width: 749px) {

  main[data-template="product"]
  .product-details {

    /* Leave visible blue gutter around the white panel */
    width: calc(100% - 24px) !important;

    margin-left: 12px !important;
    margin-right: 12px !important;

    /* White mobile product card */
    background: #ffffff !important;

    border-radius:
      var(--bb-product-panel-radius, 24px) !important;

    box-shadow:
      var(
        --bb-product-panel-shadow,
        0 10px 24px rgb(49 39 131 / 12%)
      ) !important;

    /* More usable internal width for Seal + buy controls */
    padding:
      22px
      12px
      24px !important;

    box-sizing: border-box !important;

  }

}


/* ==========================================================
   MEDIA CONTROLS
========================================================== */

main[data-template="product"]
.product-information__media
slideshow-controls {

  animation:
    bb-product-enter-up
    .5s
    cubic-bezier(.2, .7, .2, 1)
    .30s
    both;

}


/* ==========================================================
   SUBSCRIPTION BENEFITS
========================================================== */

main[data-template="product"]
.bb-signup-save {

  animation:
    bb-product-enter-up
    .7s
    cubic-bezier(.2, .7, .2, 1)
    .10s
    both;

}


/* ==========================================================
   REVIEWS — SCROLL REVEAL

   bb-product-reviews.liquid carries:

   class="bb-reviews-section bb-reveal"

   The existing theme observer adds:

   .bb-reveal--visible

   when the section enters the viewport.
========================================================== */


/* ----------------------------------------------------------
   REVIEW HEADING — INITIAL STATE
---------------------------------------------------------- */

main[data-template="product"]
.bb-reviews-section
.bb-reviews-section__heading {

  opacity: 0;

  transform:
    translate3d(0, 18px, 0)
    scale(.97);

  transition:
    opacity .65s cubic-bezier(.2, .7, .2, 1),
    transform .65s cubic-bezier(.18, .8, .25, 1);

  transition-delay: .04s;

}


/* ----------------------------------------------------------
   REVIEWS — INITIAL STATE
---------------------------------------------------------- */

main[data-template="product"]
.bb-reviews-section
.bb-reviews-grid__review {

  opacity: 0;

  transition:
    opacity .68s cubic-bezier(.2, .7, .2, 1),
    transform .68s cubic-bezier(.18, .8, .25, 1);

}


/* Odd reviews arrive subtly from the left */

main[data-template="product"]
.bb-reviews-section
.bb-reviews-grid__review:nth-child(odd) {

  transform:
    translate3d(-18px, 20px, 0);

}


/* Even reviews arrive subtly from the right */

main[data-template="product"]
.bb-reviews-section
.bb-reviews-grid__review:nth-child(even) {

  transform:
    translate3d(18px, 20px, 0);

}


/* ----------------------------------------------------------
   REVIEW STAGGER
---------------------------------------------------------- */

main[data-template="product"]
.bb-reviews-section
.bb-reviews-grid__review:nth-child(1) {

  transition-delay: .12s;

}


main[data-template="product"]
.bb-reviews-section
.bb-reviews-grid__review:nth-child(2) {

  transition-delay: .20s;

}


main[data-template="product"]
.bb-reviews-section
.bb-reviews-grid__review:nth-child(3) {

  transition-delay: .28s;

}


main[data-template="product"]
.bb-reviews-section
.bb-reviews-grid__review:nth-child(4) {

  transition-delay: .36s;

}


/* ==========================================================
   REVIEWS — VISIBLE STATE
========================================================== */

main[data-template="product"]
.bb-reviews-section.bb-reveal--visible
.bb-reviews-section__heading {

  opacity: 1;

  transform:
    translate3d(0, 0, 0)
    scale(1);

}


main[data-template="product"]
.bb-reviews-section.bb-reveal--visible
.bb-reviews-grid__review {

  opacity: 1;

  transform:
    translate3d(0, 0, 0);

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media screen and (prefers-reduced-motion: reduce) {

  main[data-template="product"]
  .product-information__media,

  main[data-template="product"]
  .product-details,

  main[data-template="product"]
  .product-details h1,

  main[data-template="product"]
  .product-details product-price,

  main[data-template="product"]
  .bb-product-selector,

  main[data-template="product"]
  .product-details rte-formatter,

  main[data-template="product"]
  .product-details
  .buy-buttons-block,

  main[data-template="product"]
  .bb-product-description-card__heading,

  main[data-template="product"]
  .bb-product-description-card__content,

  main[data-template="product"]
  .product-information__media
  slideshow-controls,

  main[data-template="product"]
  .bb-signup-save {

    animation: none !important;

    transform: none !important;

    opacity: 1 !important;

  }


  main[data-template="product"]
  .bb-reviews-section
  .bb-reviews-section__heading,

  main[data-template="product"]
  .bb-reviews-section
  .bb-reviews-grid__review {

    transition: none !important;

    transform: none !important;

    opacity: 1 !important;

  }

}


/* ==========================================================
   21. PRODUCT PAGE MOTION / COMPOSITING

   Prevent white flickers between animated/composited
   elements without creating a stacking context around
   the whole page.
========================================================== */

main[data-template="product"] {

  position: relative;

  background:
    var(--bb-product-blue, #AFDEF9) !important;

}


/* ==========================================================
   STABLE COMPOSITING FOR ANIMATED ELEMENTS
========================================================== */

main[data-template="product"]
.product-information__media,

main[data-template="product"]
.product-details,

main[data-template="product"]
.product-details h1,

main[data-template="product"]
.product-details product-price,

main[data-template="product"]
.bb-product-selector,

main[data-template="product"]
.product-details rte-formatter,

main[data-template="product"]
.product-details
.buy-buttons-block,

main[data-template="product"]
.bb-product-description-card__heading,

main[data-template="product"]
.bb-product-description-card__content,

main[data-template="product"]
.product-information__media
slideshow-controls,

main[data-template="product"]
.bb-signup-save,

main[data-template="product"]
.bb-reviews-section__heading,

main[data-template="product"]
.bb-reviews-grid__review {

  backface-visibility: hidden;

  -webkit-backface-visibility: hidden;

}


/* ==========================================================
   RECOMMENDATIONS BLUE BACKGROUND
========================================================== */

.product-recommendations
.section-background {

  background:
    var(--bb-product-blue, #AFDEF9) !important;

}


/* ==========================================================
   CLOUD MASK COMPOSITING

   Both the new reviews cloud and the recommendations cloud
   remain static. These rules only stabilise rendering.
========================================================== */

main[data-template="product"]
.bb-reviews-section__clouds,

main[data-template="product"]
.bb-reviews-section__cloud-image,

.product-recommendations::after {

  backface-visibility: hidden;

  -webkit-backface-visibility: hidden;

}
/* ================================
   Bedtime Besties About hero
================================ */

.bb-about-hero-section {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.bb-about-hero {
  position: relative;
  overflow: visible;
  background: var(--bb-white, #ffffff);
}

.bb-about-hero__top {
  position: relative;
  overflow: hidden;
  height: clamp(460px, calc(100svh - 250px), 570px);
  background: var(--bb-about-bg, #482683);
  isolation: isolate;
}

/* ================================
   Night sky
================================ */

.bb-about-hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--bb-about-sky);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
}

.bb-about-hero__top .bb-site-canvas {
  position: relative;
  z-index: 4;
}

.bb-about-hero__top-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  padding-top: clamp(52px, 4vw, 65px);
  padding-bottom: clamp(170px, 13vw, 210px);
  box-sizing: border-box;
  text-align: center;
}

/* ================================
   Quote
================================ */

.bb-about-hero__quote {
  position: relative;
  z-index: 5;
  width: min(100%, 780px);
  margin: 0 auto;
  font-family: var(--bb-font-title);
  font-weight: 600;
  color: var(--bb-about-quote, #ffffff);
  font-size: clamp(29px, 2.55vw, 40px);
  line-height: 1.03;
  letter-spacing: -.01em;
  text-align: center;

  -webkit-text-stroke: 3px #13204c;
  paint-order: stroke fill;
}

/* ================================
   Attribution
================================ */

.bb-about-hero__author {
  position: relative;
  z-index: 5;
  width: min(100%, 760px);
  margin: 10px auto 0;
  font-family: var(--bb-font-display);
  font-weight: 900;
  color: var(--bb-about-author, #ffdd00);
  font-size: clamp(23px, 1.9vw, 30px);
  line-height: 1.05;
  text-align: center;
}

/* ================================
   Decorative stars
================================ */

.bb-about-hero__stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bb-about-hero__star {
  position: absolute;
  left: var(--bb-about-star-x);
  top: var(--bb-about-star-y);
  width: var(--bb-about-star-size);
  transform:
    translate(-50%, -50%)
    rotate(var(--bb-about-star-rotate));
}

.bb-about-hero__star-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ================================
   Cloud transition
================================ */

.bb-about-hero__clouds {
  position: absolute;
  left: 50%;
  bottom: -1px;
  z-index: 3;
  width: 100vw;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  line-height: 0;
}

.bb-about-hero__cloud-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ================================
   Tablet
================================ */

@media screen and (max-width: 989px) {
  .bb-about-hero__top {
    height: 540px;
  }

  .bb-about-hero__top-inner {
    padding-top: 42px;
    padding-bottom: 175px;
  }

  .bb-about-hero__quote {
    width: min(100%, 680px);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
  }

  .bb-about-hero__author {
    font-size: clamp(19px, 2.6vw, 24px);
  }

  .bb-about-hero__clouds {
    width: 100vw;
  }
}

/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  /* ================================
     Hero height
  ================================ */

  .bb-about-hero__top {
    height: 320px;
  }


  /* ================================
     Text area
  ================================ */

  .bb-about-hero__top-inner {
    padding-top: 28px;
    padding-bottom: 80px;
  }


  /* ================================
     Quote
  ================================ */

  .bb-about-hero__quote {
    width: calc(100% - 44px);
    max-width: 350px;
    margin: 0 auto;

    font-size: clamp(21px, 5.9vw, 24px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.015em;

    text-align: center;
  }


  /* ================================
     Attribution
  ================================ */

  .bb-about-hero__author {
    width: calc(100% - 60px);
    max-width: 320px;

    margin: 10px auto 0;

    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.08;

    text-align: center;
  }


  /* ================================
     Clouds
  ================================ */

  .bb-about-hero__clouds {
    width: 100vw;
    bottom: -1px;
  }


  /* ================================
     Mobile star arrangement
  ================================ */


  /* Upper left */

  .bb-about-hero__star:nth-child(1) {
    left: 7% !important;
    top: 28% !important;
    width: 30px !important;
  }


  /* Upper right */

  .bb-about-hero__star:nth-child(2) {
    left: 92% !important;
    top: 16% !important;
    width: 28px !important;
  }


  /* Lower left */

  .bb-about-hero__star:nth-child(3) {
    left: 6% !important;
    top: 70% !important;
    width: 48px !important;
  }


  /* Lower right */

  .bb-about-hero__star:nth-child(4) {
    left: 94% !important;
    top: 64% !important;
    width: 42px !important;
  }


  /* Additional stars hidden on mobile */

  .bb-about-hero__star:nth-child(5),
  .bb-about-hero__star:nth-child(6) {
    display: none !important;
  }


  /* Respect the per-star mobile setting */

  .bb-about-hero__star--hide-mobile {
    display: none !important;
  }

}
}
/* ================================
   Bedtime Besties About story
================================ */

.bb-about-story-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.bb-about-story-wrapper ~ .bb-about-story-wrapper {
  margin-top: -68px !important;
}

.bb-about-story-section {
  position: relative;
  z-index: 2;
  background: transparent;
  overflow: visible;
}

.bb-about-story {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(320px, 420px);
  align-items: start;
  gap: var(--bb-about-story-gap, 28px);
  width: min(100%, 1020px);
  margin: 0 auto;
  padding: 0 0 18px;
  box-sizing: border-box;
}

.bb-about-story--image-left {
  grid-template-columns: minmax(320px, 420px) minmax(0, 500px);
}


/* ================================
   Column positioning
================================ */

.bb-about-story--image-right .bb-about-story__copy {
  grid-column: 1;
  grid-row: 1;
}

.bb-about-story--image-right .bb-about-story__media {
  grid-column: 2;
  grid-row: 1;
}

.bb-about-story--image-left .bb-about-story__media {
  grid-column: 1;
  grid-row: 1;
}

.bb-about-story--image-left .bb-about-story__copy {
  grid-column: 2;
  grid-row: 1;
}


/* ================================
   Copy
================================ */

.bb-about-story__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 8px;
}

.bb-about-story__lead {
  margin: 0 0 18px;
  font-family: var(--bb-font-display);
  font-weight: 900;
  color: var(--bb-about-story-lead, #c7017f);
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.08;
}

.bb-about-story__lead p {
  margin: 0;
}

.bb-about-story__heading {
  margin: 0 0 6px;
  font-family: var(--bb-font-display);
  font-weight: 900;
  color: var(--bb-about-story-heading, #482683);
  font-size: clamp(23px, 1.8vw, 28px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bb-about-story__body {
  font-family: var(--bb-font-display);
  font-weight: 800;
  color: var(--bb-about-story-text, #482683);
  font-size: clamp(20px, 1.58vw, 23px);
  line-height: 1.16;
}

.bb-about-story__body p {
  margin: 0;
}

.bb-about-story__body p + p {
  margin-top: 8px;
}


/* ================================
   Framed image asset
================================ */

.bb-about-story__media {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding-bottom: 0;
}

.bb-about-story__image-frame {
  position: relative;
  width: min(100%, 420px);
  background: transparent;
  overflow: visible;
}

.bb-about-story__image {
  display: block;
  width: 100%;
  height: auto;
}


/* ================================
   Caption
================================ */

.bb-about-story__caption {
  position: absolute;
  left: var(--bb-about-caption-x, 0px);
  bottom: calc(28px - var(--bb-about-caption-y, 0px));
  z-index: 4;

  width: min(var(--bb-about-caption-width, 200px), 78%);

  padding: 10px 14px 11px;
  box-sizing: border-box;

  background: transparent;

  color: var(--bb-about-story-caption-text, #482683);

  font-family: var(--bb-font-display);
  font-weight: 900;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.06;

  text-align: left;
}

.bb-about-story__caption::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;

  background: var(--bb-about-story-caption-bg, #ffdd00);

  border-radius: 9px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 10%);

  transform:
    rotate(var(--bb-about-caption-rotate, 0deg))
    skewX(var(--bb-about-caption-skew, 0deg));

  transform-origin: center;
}

.bb-about-story__caption-text {
  position: relative;
  z-index: 1;
  transform: none;
}


/* ================================
   Tablet
================================ */

@media screen and (max-width: 989px) {

  .bb-about-story-wrapper ~ .bb-about-story-wrapper {
    margin-top: -20px !important;
  }

  .bb-about-story {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(260px, 340px);

    align-items: start;
    gap: 24px;

    width: min(100%, 900px);

    padding: 20px 0 26px;
  }

  .bb-about-story--image-left {
    grid-template-columns:
      minmax(260px, 340px)
      minmax(0, 1fr);
  }

  .bb-about-story__copy {
    padding-top: 8px;
  }

  .bb-about-story__image-frame {
    width: min(100%, 330px);
  }

  .bb-about-story__lead {
    font-size: clamp(23px, 3vw, 28px);
  }

  .bb-about-story__heading {
    font-size: clamp(21px, 3vw, 26px);
  }

  .bb-about-story__body {
    font-size: clamp(18px, 2.4vw, 21px);
  }

  .bb-about-story__caption {
    left: var(--bb-about-caption-x, 0px);
    bottom: calc(20px - var(--bb-about-caption-y, 0px));
    font-size: 14px;
  }
}


/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  /* ================================
     Section spacing
  ================================ */

  .bb-about-story-wrapper ~ .bb-about-story-wrapper {
    margin-top: 0 !important;
  }


  /* ================================
     Story layout
  ================================ */

  .bb-about-story {
    display: flex;
    flex-direction: column;

    gap: 12px;

    width: 100%;

    padding: 8px 16px 14px;

    text-align: center;
    overflow: visible;
  }


  /* ================================
     Image first on all stories
  ================================ */

  .bb-about-story--image-left .bb-about-story__media,
  .bb-about-story--image-right .bb-about-story__media {
    order: 1;
  }

  .bb-about-story--image-left .bb-about-story__copy,
  .bb-about-story--image-right .bb-about-story__copy {
    order: 2;
  }


  /* ================================
     Copy
  ================================ */

  .bb-about-story__copy {
    width: 100%;
    padding-top: 0;
  }


  /* ================================
     Lead text
  ================================ */

  .bb-about-story__lead {
    width: calc(100% + 20px);
    max-width: 390px;

    margin: 0 -10px 10px;

    font-size: clamp(23px, 6.2vw, 27px);
    line-height: 1.05;
  }


  /* ================================
     Heading
  ================================ */

  .bb-about-story__heading {
    margin: 0 0 9px;

    font-size: clamp(23px, 6.5vw, 28px);
    line-height: 1;
  }


  /* ================================
     Body copy
  ================================ */

  .bb-about-story__body {
    width: 100%;
    max-width: 380px;

    margin: 0 auto;

    font-size: clamp(20px, 5.6vw, 23px);
    line-height: 1.18;
  }

  .bb-about-story__body p {
    margin: 0;
  }

  .bb-about-story__body p + p {
    margin-top: 10px;
  }


  /* ================================
     Image / media
  ================================ */

  .bb-about-story__media {
    width: 100%;
    min-width: 0;

    padding-bottom: 18px;

    overflow: visible;
  }

  .bb-about-story__image-frame {
    width: min(84vw, 340px);
    max-width: 100%;
  }

  .bb-about-story__image {
    display: block;
    width: 100%;
    height: auto;
  }


  /* ================================
     Caption
  ================================ */

  .bb-about-story__caption {
    left:
      calc(
        50% + var(--bb-about-caption-x, 0px)
      );

    bottom:
      calc(
        18px - var(--bb-about-caption-y, 0px)
      );

    width:
      min(
        var(--bb-about-caption-width, 200px),
        calc(100% - 24px)
      );

    max-width: calc(100% - 24px);

    padding: 10px 14px 11px;
    box-sizing: border-box;

    font-size: 16px;
    line-height: 1.08;

    text-align: left;

    transform: translateX(-50%);
  }

  .bb-about-story__caption::before {
    transform:
      rotate(var(--bb-about-caption-rotate, 0deg))
      skewX(var(--bb-about-caption-skew, 0deg));
  }

}

/* ================================
   Bedtime Besties
   Transparent star overlay
================================ */

.bb-transparent-star-overlay-section {
  position: relative;
  z-index: 6;
  height: 0;
  background: transparent;
  overflow: visible;
  pointer-events: none;
}

.bb-transparent-star-overlay {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100vw;
  height: 300px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.bb-transparent-star-overlay__star {
  position: absolute;
  left: var(--bb-overlay-star-x);
  top: var(--bb-overlay-star-y);
  width: var(--bb-overlay-star-size);
  transform:
    translate(-50%, -50%)
    rotate(var(--bb-overlay-star-rotate));
  transform-origin: center center;
}

.bb-transparent-star-overlay__star-image {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 749px) {

  .bb-transparent-star-overlay {
    height: 80px !important;
    top: 100px;
  }

  .bb-transparent-star-overlay__star:nth-child(1) {
    width: 52px !important;
  }

  .bb-transparent-star-overlay__star:nth-child(2) {
    width: 38px !important;
  }

  .bb-transparent-star-overlay__star:nth-child(3) {
    width: 46px !important;
  }

  .bb-transparent-star-overlay__star:nth-child(4) {
    width: 48px !important;
  }

  .bb-transparent-star-overlay__star:nth-child(5) {
    width: 39px !important;
  }

  .bb-transparent-star-overlay__star:nth-child(6) {
    width: 55px !important;
  }
}

/* ================================
   Bedtime Besties Contact
================================ */

.bb-contact-section {
  position: relative;
  z-index: 2;
  background: transparent;
  color: var(--bb-contact-text, #482683);
  overflow: visible;
}

.bb-contact {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 24px 0 190px;
  box-sizing: border-box;
}


/* ================================
   Hero image
================================ */

.bb-contact__hero {
  width: 100%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 7px solid #ffffff;
  border-radius: 26px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 18%);
  line-height: 0;
}

.bb-contact__hero-image {
  display: block;
  width: 100%;
  height: auto;
}


/* ================================
   Intro
================================ */

.bb-contact__intro {
  text-align: center;
  margin: 0 auto 18px;
}

.bb-contact__heading {
  margin: 0 0 9px;
  color: var(--bb-contact-pink, #c7017f);
  font-family: var(--bb-font-title);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 48px);
  line-height: .98;
  letter-spacing: -.02em;
}

.bb-contact__intro-copy,
.bb-contact__faq {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: #482683;
  font-family: var(--bb-font-display);
  font-weight: 800;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.14;
}

.bb-contact__intro-copy p,
.bb-contact__faq p {
  margin: 0;
}

.bb-contact__intro-copy p + p {
  margin-top: 7px;
}

.bb-contact__faq {
  margin-top: 8px;
}

.bb-contact__faq a {
  color: #c7017f;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ================================
   Form card
================================ */

.bb-contact__form {
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  background: #482683;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 12%);
}

.bb-contact__fields {
  display: grid;
  gap: 5px;
}


/* ================================
   Individual fields
================================ */

.bb-contact__field {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 9px;
  background: #ffffff;
  border-radius: 7px;
  box-sizing: border-box;
}


/* Pink section lead-ins — Skia */

.bb-contact__field label {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #c7017f;
  font-family: var(--bb-font-title);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.08;
  white-space: nowrap;
}


/* Customer-entered text / hints — sans serif */

.bb-contact__field input,
.bb-contact__field select,
.bb-contact__field textarea {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background: #ffffff !important;
  color: #555555 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  box-sizing: border-box;
}

.bb-contact__field input {
  min-height: 34px;
  padding: 5px 5px 3px;
}

.bb-contact__field textarea {
  padding: 6px 5px 4px;
}

.bb-contact__field input::placeholder,
.bb-contact__field textarea::placeholder {
  color: #707070 !important;
  opacity: 1;
}

.bb-contact__field input:hover,
.bb-contact__field textarea:hover,
.bb-contact__field input:focus,
.bb-contact__field textarea:focus {
  background: #ffffff !important;
  color: #555555 !important;
}

.bb-contact__field input:focus,
.bb-contact__field textarea:focus {
  outline: 2px solid #c7017f;
  outline-offset: 1px;
  border-radius: 4px;
}


/* ================================
   Topic dropdown
================================ */

.bb-contact__fields .bb-contact__field.bb-contact__field--topic {
  display: grid !important;
  grid-template-columns: 285px minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 5px !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}


/* Topic — left white box */

.bb-contact__field--topic .bb-contact__topic-label {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 7px !important;
}

.bb-contact__field--topic .bb-contact__topic-label label {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #c7017f !important;
  font-family: var(--bb-font-title) !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  line-height: 1.08 !important;
  white-space: nowrap !important;
}


/* Topic — right white box */

.bb-contact__field--topic .bb-contact__topic-select {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 7px !important;
  cursor: pointer !important;
}


/* Topic — pink arrow */

.bb-contact__field--topic .bb-contact__topic-arrow {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  flex: 0 0 25px !important;
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  min-height: 25px !important;
  margin: 0 8px 0 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: #c7017f !important;
  border: 0 !important;
  border-radius: 3px !important;
  pointer-events: none !important;
}

.bb-contact__field--topic .bb-contact__topic-arrow::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 5px solid transparent !important;
  border-bottom: 5px solid transparent !important;
  border-left: 7px solid #ffffff !important;
  border-right: 0 !important;
  background: transparent !important;
  transform:
    translate(-35%, -50%)
    rotate(0deg) !important;
  transform-origin: 40% 50% !important;
  transition: transform .18s ease !important;
  pointer-events: none !important;
}

.bb-contact__field--topic
.bb-contact__topic-select:focus-within
.bb-contact__topic-arrow::after {
  transform:
    translate(-35%, -50%)
    rotate(90deg) !important;
}


/* Topic — visible selected text */

.bb-contact__field--topic .bb-contact__topic-text {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #707070 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  pointer-events: none !important;
}


/* Topic — real select */

.bb-contact__fields
.bb-contact__field--topic
.bb-contact__topic-select
select#ContactFormTopic {
  position: absolute !important;
  z-index: 10 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  outline: 0 !important;
  opacity: 1 !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
}

.bb-contact__field--topic
.bb-contact__topic-select
select#ContactFormTopic option {
  color: #555555 !important;
  -webkit-text-fill-color: #555555 !important;
  background: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
}

.bb-contact__fields
.bb-contact__field--topic
.bb-contact__topic-select
select#ContactFormTopic:hover,

.bb-contact__fields
.bb-contact__field--topic
.bb-contact__topic-select
select#ContactFormTopic:focus,

.bb-contact__fields
.bb-contact__field--topic
.bb-contact__topic-select
select#ContactFormTopic:active {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.bb-contact__field--topic
.bb-contact__topic-select:focus-within {
  outline: 2px solid #c7017f !important;
  outline-offset: 1px !important;
}


/* ================================
   Message
================================ */

.bb-contact__field--message {
  align-items: start;
  min-height: 125px;
}

.bb-contact__field--message label {
  display: block;
  padding-top: 7px;
}

.bb-contact__field textarea {
  min-height: 100px;
  resize: vertical;
}


/* ================================
   Submit
================================ */

.bb-contact__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 390px);
  min-height: 50px;
  margin: 10px auto 5px;
  padding: 8px 24px;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: #c7017f;
  color: #ffffff;
  box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
  font-family: var(--bb-font-title);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.bb-contact__submit:hover,
.bb-contact__submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgb(0 0 0 / 20%);
  background: #c7017f !important;
  color: #ffffff !important;
}


/* ================================
   Global CTA arrow
================================ */

.bb-cta-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-top: 0.38em solid transparent;
  border-bottom: 0.38em solid transparent;
  border-left: 0.62em solid currentColor;
  margin-left: 0.08em;
}


/* ================================
   Marketing checkbox
================================ */

.bb-contact__marketing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 7px;
  color: #ffffff !important;
  font-family: var(--bb-font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.bb-contact__marketing input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  padding: 0;
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  accent-color: #c7017f;
  appearance: auto;
  cursor: pointer;
}

.bb-contact__marketing input[type="checkbox"]:hover,
.bb-contact__marketing input[type="checkbox"]:focus {
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
  outline: none;
}

.bb-contact__marketing span {
  color: #ffffff !important;
}


/* ================================
   Privacy / unsubscribe
================================ */

.bb-contact__privacy {
  margin: 6px 0 0 !important;
  color: #ffffff !important;
  font-family: var(--bb-font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}


/* ================================
   Text below form
================================ */

.bb-contact__after-form {
  width: 100%;
  margin: 16px auto 0;
  color: #482683;
  font-family: var(--bb-font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  text-align: left;
}

.bb-contact__after-form p {
  margin: 0;
}

.bb-contact__after-form p + p {
  margin-top: 7px;
}

.bb-contact__after-form strong {
  color: #c7017f;
  font-weight: 900;
}

.bb-contact__family {
  margin-top: 12px !important;
  max-width: 760px;
}


/* ================================
   Errors
================================ */

.bb-contact__errors {
  margin-bottom: 7px;
  padding: 9px 10px;
  background: #ffffff;
  border-radius: 8px;
  color: #a00000;
  font-family: var(--bb-font-display);
  font-size: 15px;
  font-weight: 800;
}


/* ================================
   Success
================================ */

.bb-contact__success {
  padding: 12px 10px 14px;
  color: #ffffff;
  text-align: center;
  font-family: var(--bb-font-display);
}

.bb-contact__success-heading {
  margin: 0 0 5px;
  color: #ffdd00;
  font-family: var(--bb-font-title);
  font-weight: 900;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
}

.bb-contact__success-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}


/* ================================
   Shopify / hCaptcha challenge
================================ */

.shopify-challenge__container {
  position: relative !important;
  z-index: 2147483000 !important;
  display: block !important;
  width: 302px !important;
  max-width: calc(100% - 40px) !important;
  min-height: 169px !important;
  margin: 40px auto !important;
  padding: 18px !important;
  box-sizing: content-box !important;
  background: #ffffff !important;
  border: 5px solid #482683 !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 24px rgb(0 0 0 / 18%) !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  isolation: isolate !important;
}

.shopify-challenge__container form,
.shopify-challenge__container #captcha_form {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.shopify-challenge__message {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: #482683 !important;
  font-family: var(--bb-font-display) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.shopify-challenge__container .h-captcha,
.shopify-challenge__container #h-captcha {
  position: relative !important;
  z-index: 4 !important;
  display: block !important;
  width: 302px !important;
  height: 76px !important;
  max-width: 100% !important;
  margin: 10px auto !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.shopify-challenge__container .h-captcha iframe,
.shopify-challenge__container #h-captcha iframe {
  position: relative !important;
  z-index: 5 !important;
  display: block !important;
  width: 302px !important;
  height: 76px !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.shopify-challenge__button {
  position: relative !important;
  z-index: 4 !important;
  display: block !important;
  width: 100% !important;
  min-height: 44px !important;
  margin: 12px auto 0 !important;
  padding: 8px 20px !important;
  box-sizing: border-box !important;
  border: 3px solid #482683 !important;
  border-radius: 999px !important;
  background: #c7017f !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgb(0 0 0 / 14%) !important;
  font-family: var(--bb-font-title) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body:has(.shopify-challenge__container) #MainContent {
  position: relative !important;
  z-index: 100 !important;
  overflow: visible !important;
}

body:has(.shopify-challenge__container)
.shopify-challenge__container,
body:has(.shopify-challenge__container)
.shopify-challenge__container * {
  visibility: visible !important;
}


/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  /* Main container */

  .bb-contact {
    width: 100%;
    padding: 16px 14px 150px;
  }


  /* Hero */

  .bb-contact__hero {
    margin-bottom: 12px;
    border-width: 6px;
    border-radius: 20px;
  }


  /* Intro */

  .bb-contact__intro {
    margin-bottom: 18px;
  }

  .bb-contact__heading {
    margin-bottom: 10px;
    font-size: clamp(32px, 9.5vw, 40px);
    line-height: .98;
  }

  .bb-contact__intro-copy,
  .bb-contact__faq {
    max-width: 100%;
    font-size: 20px;
    line-height: 1.2;
  }

  .bb-contact__intro-copy p,
  .bb-contact__faq p {
    margin: 0;
  }

  .bb-contact__intro-copy p + p {
    margin-top: 8px;
  }

  .bb-contact__faq {
    margin-top: 10px;
  }


  /* Form card */

  .bb-contact__form {
    width: 100%;
    padding: 9px;
    border-radius: 15px;
  }

  .bb-contact__fields {
    gap: 5px;
  }


  /* Standard fields — stacked */

  .bb-contact__field {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 10px 11px;
    border-radius: 7px;
  }

  .bb-contact__field label {
    display: block;
    margin: 0 0 5px;
    padding: 0;
    font-family: var(--bb-font-title);
    font-size: 18px;
    line-height: 1.08;
    white-space: normal;
  }

  .bb-contact__field input,
  .bb-contact__field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
  }

  .bb-contact__field input {
    min-height: 30px;
    padding: 3px 0;
  }

  .bb-contact__field textarea {
    padding: 3px 0;
  }


  /* Topic — stacked */

  .bb-contact__fields
  .bb-contact__field.bb-contact__field--topic {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }


  /* Topic label */

  .bb-contact__field--topic
  .bb-contact__topic-label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 10px 11px !important;
    background: #ffffff !important;
    border-radius: 7px !important;
  }

  .bb-contact__field--topic
  .bb-contact__topic-label label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--bb-font-title) !important;
    font-size: 18px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
  }


  /* Topic option */

  .bb-contact__field--topic
  .bb-contact__topic-select {
    min-height: 48px !important;
    padding: 10px 11px !important;
    background: #ffffff !important;
    border-radius: 7px !important;
  }


  /* Topic arrow */

  .bb-contact__field--topic
  .bb-contact__topic-arrow {
    flex: 0 0 25px !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    margin-right: 8px !important;
  }

  .bb-contact__field--topic
  .bb-contact__topic-arrow::after {
    border-top-width: 5px !important;
    border-bottom-width: 5px !important;
    border-left-width: 7px !important;
  }


  /* Topic text */

  .bb-contact__field--topic
  .bb-contact__topic-text {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
  }


  /* Message */

  .bb-contact__field--message {
    display: block;
    min-height: 145px;
  }

  .bb-contact__field--message label {
    display: block;
    margin-bottom: 5px;
    padding-top: 0;
  }

  .bb-contact__field textarea {
    min-height: 100px;
    resize: vertical;
  }


  /* Submit */

  .bb-contact__submit {
    width: 100%;
    min-height: 50px;
    margin: 10px auto 6px;
    padding: 8px 16px;
    border-width: 3px;
    font-size: 21px;
    line-height: 1;
    white-space: nowrap;
  }


  /* Marketing checkbox */

  .bb-contact__marketing {
    gap: 7px;
    margin-top: 8px;
    padding: 0 4px;
    font-size: 17px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .bb-contact__marketing input[type="checkbox"] {
    width: 19px;
    height: 19px;
    min-width: 19px;
  }


  /* Privacy */

  .bb-contact__privacy {
    margin-top: 7px !important;
    padding: 0 8px;
    font-size: 15px;
    line-height: 1.18;
  }


  /* Success */

  .bb-contact__success {
    padding: 15px 12px 17px;
  }

  .bb-contact__success-heading {
    font-size: 30px;
  }

  .bb-contact__success-text {
    font-size: 18px;
    line-height: 1.2;
  }


  /* Text below form */

  .bb-contact__after-form {
    width: 100%;
    margin-top: 15px;
    font-size: 19px;
    line-height: 1.3;
  }

  .bb-contact__after-form p + p {
    margin-top: 8px;
  }

  .bb-contact__family {
    margin-top: 13px !important;
  }


  /* Shopify challenge — mobile */

  .shopify-challenge__container {
    width: min(302px, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px) !important;
    margin: 25px auto !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    border-width: 4px !important;
    border-radius: 14px !important;
  }

  .shopify-challenge__message {
    font-size: 15px !important;
  }

  .shopify-challenge__container .h-captcha,
  .shopify-challenge__container #h-captcha,
  .shopify-challenge__container .h-captcha iframe,
  .shopify-challenge__container #h-captcha iframe {
    max-width: 100% !important;
  }

}

/* ================================
   Bedtime Besties FAQ
================================ */

.bb-faq-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.bb-faq-section {
  position: relative;
  z-index: 2;
  background: transparent;
  color: var(--bb-faq-text, #482683);
  overflow: visible;
}

.bb-faq {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 24px 0 0;
  box-sizing: border-box;
}


/* ================================
   Main image
================================ */

.bb-faq__hero {
  width: 100%;
  margin: 0 auto 18px;
  overflow: hidden;
  border: 7px solid #ffffff;
  border-radius: 26px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 18%);
  line-height: 0;
}

.bb-faq__hero-image {
  display: block;
  width: 100%;
  height: auto;
}


/* ================================
   Intro
================================ */

.bb-faq__intro {
  width: min(100%, 820px);
  margin: 0 auto 20px;
  text-align: center;
}

.bb-faq__heading {
  margin: 0 0 10px;
  color: var(--bb-faq-pink, #c7017f);
  font-family: var(--bb-font-title);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.02em;
}

.bb-faq__intro-copy {
  color: var(--bb-faq-purple, #482683);
  font-family: var(--bb-font-display);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 800;
  line-height: 1.15;
}

.bb-faq__intro-copy p {
  margin: 0;
}


/* ================================
   Search
================================ */

.bb-faq__search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100%, 720px);
  min-height: 58px;
  margin: 0 auto 20px;
  overflow: hidden;
  background: #ffffff;
  border: 4px solid var(--bb-faq-purple, #482683);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgb(0 0 0 / 10%);
}

.bb-faq__search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bb-faq-pink, #c7017f);
  transform: translateY(-50%);
  pointer-events: none;
}

.bb-faq__search-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 10px 58px;
  box-sizing: border-box;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #555555 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  box-shadow: none !important;
}

.bb-faq__search-input::placeholder {
  color: #707070;
  opacity: 1;
}

.bb-faq__search-input::-webkit-search-cancel-button {
  display: none;
}


/* ================================
   Search clear button
================================ */

.bb-faq__search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bb-faq-pink, #c7017f);
  transform: translateY(-50%);
  cursor: pointer;
}

.bb-faq__search-clear span::before,
.bb-faq__search-clear span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.bb-faq__search-clear span::before {
  transform:
    translate(-50%, -50%)
    rotate(45deg);
}

.bb-faq__search-clear span::after {
  transform:
    translate(-50%, -50%)
    rotate(-45deg);
}


/* ================================
   Categories
================================ */

.bb-faq__categories {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 30px;
}

.bb-faq__category-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 22px;
  border: 3px solid var(--bb-faq-purple, #482683);
  border-radius: 999px;
  background: #ffffff;
  color: var(--bb-faq-purple, #482683) !important;

  font-family: var(--bb-font-title);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;

  text-decoration: none !important;
  box-shadow: 0 4px 8px rgb(0 0 0 / 8%);

  transition:
    transform .15s ease,
    background .15s ease,
    color .15s ease;
}

.bb-faq__category-button:hover,
.bb-faq__category-button:focus {
  background: var(--bb-faq-purple, #482683);
  color: #ffffff !important;
  transform: translateY(-1px);
}


/* ================================
   FAQ category groups
================================ */

.bb-faq__group {
  scroll-margin-top: 150px;
  margin: 0 0 34px;
}

.bb-faq__category-heading {
  margin: 0 0 12px;
  color: var(--bb-faq-pink, #c7017f);
  font-family: var(--bb-font-title);
  font-size: clamp(28px, 2.5vw, 34px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}


/* ================================
   FAQ items
================================ */

.bb-faq__items {
  display: grid;
  gap: 9px;
}

.bb-faq__item {
  width: 100%;
  overflow: hidden;
  border: 4px solid var(--bb-faq-purple, #482683);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 5px 12px rgb(0 0 0 / 7%);
}


/* ================================
   Question
================================ */

.bb-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 11px 16px;
  border: 0;
  background: var(--bb-faq-purple, #482683);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
}

.bb-faq__question:hover,
.bb-faq__question:focus {
  background: var(--bb-faq-purple, #482683);
  color: #ffffff;
}

.bb-faq__question-text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--bb-font-display);
  font-size: clamp(19px, 1.65vw, 23px);
  font-weight: 900;
  line-height: 1.12;
}


/* ================================
   Question arrow
================================ */

.bb-faq__arrow {
  display: block;
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid var(--bb-faq-yellow, #ffdd00);
  transform: rotate(0deg);
  transition: transform .18s ease;
}

.bb-faq__question[aria-expanded="true"]
.bb-faq__arrow {
  transform: rotate(90deg);
}


/* ================================
   Answer
================================ */

.bb-faq__answer {
  background: #ffffff;
}

.bb-faq__answer-inner {
  padding: 18px 20px 20px;
  color: var(--bb-faq-text, #482683);
  font-family: var(--bb-font-display);
  font-size: clamp(18px, 1.45vw, 21px);
  font-weight: 800;
  line-height: 1.25;
}

.bb-faq__answer-inner p {
  margin: 0;
}

.bb-faq__answer-inner p + p {
  margin-top: 10px;
}

.bb-faq__answer-inner ul,
.bb-faq__answer-inner ol {
  margin: 10px 0 0;
  padding-left: 25px;
}

.bb-faq__answer-inner li + li {
  margin-top: 5px;
}

.bb-faq__answer-inner a {
  color: var(--bb-faq-pink, #c7017f);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ================================
   No search results
================================ */

.bb-faq__no-results {
  width: min(100%, 720px);
  margin: 5px auto 30px;
  padding: 18px 22px;
  box-sizing: border-box;
  background: var(--bb-faq-purple, #482683);
  border-radius: 14px;
  color: #ffffff;
  font-family: var(--bb-font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}


/* ================================
   Footer copy
================================ */

.bb-faq__footer {
  width: min(100%, 760px);
  margin: 30px auto 0;
  color: var(--bb-faq-purple, #482683);
  font-family: var(--bb-font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.bb-faq__footer p {
  margin: 0;
}

.bb-faq__footer a {
  color: var(--bb-faq-pink, #c7017f);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ================================
   Mobile
================================ */

@media screen and (max-width: 749px) {

  /* Main FAQ container */

  .bb-faq {
    width: 100%;
    padding: 16px 14px 0;
  }


  /* ================================
     Main image
  ================================= */

  .bb-faq__hero {
    margin-bottom: 15px;
    border-width: 6px;
    border-radius: 20px;
  }


  /* ================================
     Intro
  ================================= */

  .bb-faq__intro {
    margin-bottom: 16px;
  }

  .bb-faq__heading {
    margin-bottom: 9px;
    font-size: clamp(31px, 9vw, 39px);
    line-height: .98;
  }

  .bb-faq__intro-copy {
    font-size: 21px;
    line-height: 1.18;
  }


  /* ================================
     Search
  ================================= */

  .bb-faq__search {
    min-height: 54px;
    margin-bottom: 16px;
    border-width: 3px;
  }

  .bb-faq__search-icon {
    left: 16px;
  }

  .bb-faq__search-icon svg {
    width: 21px;
    height: 21px;
  }

  .bb-faq__search-input {
    min-height: 50px;
    padding: 9px 50px 9px 48px;
    font-size: 17px;
  }

  .bb-faq__search-clear {
    right: 10px;
    width: 31px;
    height: 31px;
  }


  /* ================================
     Category buttons
  ================================= */

  .bb-faq__categories {
    gap: 7px;
    margin-bottom: 25px;
  }

  .bb-faq__category-button {
    min-height: 42px;
    padding: 8px 15px;
    border-width: 2px;
    font-size: 18px;
  }


  /* ================================
     Category groups
  ================================= */

  .bb-faq__group {
    margin-bottom: 28px;
    scroll-margin-top: 100px;
  }

  .bb-faq__category-heading {
    margin-bottom: 10px;
    font-size: 29px;
    text-align: center;
  }


  /* ================================
     FAQ items
  ================================= */

  .bb-faq__items {
    gap: 7px;
  }

  .bb-faq__item {
    border-width: 3px;
    border-radius: 10px;
  }


  /* ================================
     Questions
  ================================= */

  .bb-faq__question {
    gap: 14px;
    min-height: 58px;
    padding: 11px 13px;
  }

  .bb-faq__question-text {
    font-size: 20px;
    line-height: 1.12;
  }


  /* ================================
     Question arrow
  ================================= */

  .bb-faq__arrow {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 9px;
  }


  /* ================================
     Answers
  ================================= */

  .bb-faq__answer-inner {
    padding: 16px 15px 18px;
    font-size: 19px;
    line-height: 1.25;
  }


  /* ================================
     No search results
  ================================= */

  .bb-faq__no-results {
    margin-bottom: 25px;
    padding: 15px 16px;
    font-size: 18px;
  }


  /* ================================
     Footer help text
  ================================= */

  .bb-faq__footer {
    margin-top: 27px;
    font-size: 19px;
    line-height: 1.22;
  }

}

/* ==========================================================
   POLICY PAGES
========================================================== */

.shopify-policy__container {
  width: min(100% - 40px, 1000px) !important;
  max-width: 1000px !important;

  margin: 0 auto !important;

  padding: 42px 0 220px !important;

  box-sizing: border-box !important;
}


/* ==========================================================
   POLICY TITLE
========================================================== */

.shopify-policy__title {
  margin: 0 0 34px !important;

  text-align: center !important;
}

.shopify-policy__title h1 {
  margin: 0 !important;

  color: #c7017f !important;

  font-family: var(--bb-font-title) !important;

  font-size: clamp(38px, 4vw, 58px) !important;

  font-weight: 900 !important;

  line-height: 1 !important;

  letter-spacing: -0.02em !important;
}


/* ==========================================================
   POLICY BODY
========================================================== */

.shopify-policy__body {
  color: #1d1d1b !important;

  font-family: var(--bb-font-body) !important;

  font-size: 17px !important;

  line-height: 1.6 !important;
}


/* ==========================================================
   POLICY HEADINGS
========================================================== */

.shopify-policy__body h2,
.shopify-policy__body h3 {
  margin: 34px 0 12px !important;

  color: #482683 !important;

  font-family: var(--bb-font-title) !important;

  font-weight: 900 !important;

  line-height: 1.05 !important;
}

.shopify-policy__body h2 {
  font-size: 30px !important;
}

.shopify-policy__body h3 {
  font-size: 26px !important;
}


/* ==========================================================
   POLICY COPY
========================================================== */

.shopify-policy__body p {
  margin: 0 0 18px !important;
}

.shopify-policy__body strong {
  font-weight: 700 !important;
}

.shopify-policy__body a {
  color: #c7017f !important;

  font-weight: 700 !important;

  text-decoration: underline !important;

  text-underline-offset: 2px !important;

  text-decoration-thickness: 1px !important;
}


/* ==========================================================
   POLICY LISTS
========================================================== */

.shopify-policy__body ul,
.shopify-policy__body ol {
  margin: 0 0 20px !important;

  padding-left: 26px !important;
}

.shopify-policy__body li {
  margin-bottom: 7px !important;
}


/* ==========================================================
   POLICY PAGES - MOBILE
========================================================== */

@media screen and (max-width: 749px) {

  .shopify-policy__container {
    width: auto !important;
    max-width: none !important;

    margin: 0 !important;

    padding: 30px 20px 150px !important;

    box-sizing: border-box !important;
  }


  .shopify-policy__title {
    margin: 0 0 26px !important;

    text-align: center !important;
  }


  .shopify-policy__title h1 {
    margin: 0 !important;

    font-size: 38px !important;

    line-height: 1 !important;
  }


  .shopify-policy__body,
  .shopify-policy__body p,
  .shopify-policy__body li {
    font-size: 16px !important;

    line-height: 1.55 !important;
  }


  .shopify-policy__body p {
    margin: 0 0 18px !important;
  }


  .shopify-policy__body h2,
  .shopify-policy__body h3 {
    margin: 28px 0 10px !important;

    line-height: 1.05 !important;
  }


  .shopify-policy__body h2 {
    font-size: 27px !important;
  }


  .shopify-policy__body h3 {
    font-size: 24px !important;
  }


  .shopify-policy__body ul,
  .shopify-policy__body ol {
    padding-left: 22px !important;
  }


  /* ========================================================
     POLICY FOOTER CLOUDS - MOBILE

     Keep the normal oversized mobile cloud artwork.

     The wrapper remains within the viewport and hides only
     the excess cloud artwork at the left/right edges.

     This avoids horizontal page overflow without shrinking
     the clouds or clipping the Policies dropdown.
  ======================================================== */

  body:has(.shopify-policy__container)
  .bb-footer-decor__clouds {
    left: 0 !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    transform: none !important;

    overflow: hidden !important;
  }


  body:has(.shopify-policy__container)
  .bb-footer-decor__cloud-image {
    position: relative !important;

    left: 50% !important;

    display: block !important;

    width: auto !important;
    min-width: 840px !important;
    max-width: none !important;
    height: auto !important;

    transform: translateX(-50%) !important;
  }

}


/* ==========================================================
   CANCELLATION POLICY MODAL
========================================================== */

top-level-modal[title="Cancellation policy"] > h3 {
  margin: 24px 0 10px !important;

  font-family: var(--bb-font-title) !important;

  font-size: 24px !important;

  font-weight: 900 !important;

  line-height: 1.05 !important;

  color: #482683 !important;
}

top-level-modal[title="Cancellation policy"] > h3:first-of-type {
  margin-top: 4px !important;
}

top-level-modal[title="Cancellation policy"] > p {
  margin: 0 0 16px !important;

  font-family: var(--bb-font-body) !important;

  font-size: 16px !important;

  line-height: 1.5 !important;

  color: #222 !important;
}

top-level-modal[title="Cancellation policy"] > p strong {
  font-weight: 700 !important;
}

top-level-modal[title="Cancellation policy"] > p a {
  color: #c7017f !important;

  font-weight: 700 !important;

  text-decoration: underline !important;

  text-underline-offset: 2px;
}


/* ==========================================================
   CANCELLATION POLICY MODAL - MOBILE
========================================================== */

@media screen and (max-width: 749px) {

  top-level-modal[title="Cancellation policy"] > h3 {
    margin: 20px 0 8px !important;

    font-size: 21px !important;
  }


  top-level-modal[title="Cancellation policy"] > p {
    margin-bottom: 14px !important;

    font-size: 15px !important;

    line-height: 1.45 !important;
  }

}

/* ==========================================================
   BEDTIME BESTIES - CART PAGE
========================================================== */

#MainContent[data-template="cart"] .cart-page {
  --cart-item-media-width-min: 150px !important;
  --cart-item-media-width-max: 150px !important;
  --cart-items-gap: 24px !important;

  gap: 20px 48px !important;

  padding-top: 42px !important;
  padding-bottom: 42px !important;
}


/* ==========================================================
   CART TITLE
========================================================== */

#MainContent[data-template="cart"] .cart-page__title {
  margin: 0 !important;
}

#MainContent[data-template="cart"] .cart-title {
  margin: 0 !important;
}

#MainContent[data-template="cart"] .cart-title h1 {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;

  margin: 0 !important;

  color: #c7017f !important;

  font-family: var(--bb-font-title) !important;
  font-size: clamp(42px, 4vw, 56px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
}


/* ==========================================================
   CART COUNT
========================================================== */

#MainContent[data-template="cart"] .cart-title .cart-bubble {
  position: relative !important;

  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;

  margin: 0 !important;

  transform: none !important;
}

#MainContent[data-template="cart"] .cart-title .cart-bubble__background {
  background: #482683 !important;
  border-radius: 50% !important;
}

#MainContent[data-template="cart"] .cart-title .cart-bubble__text {
  color: #ffffff !important;

  font-family: var(--bb-font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}


/* ==========================================================
   CART ITEMS AREA
========================================================== */

#MainContent[data-template="cart"] .cart-page__items {
  min-width: 0 !important;
}

#MainContent[data-template="cart"] .cart-items__wrapper,
#MainContent[data-template="cart"] .cart-form,
#MainContent[data-template="cart"] .cart-items,
#MainContent[data-template="cart"] .cart-items__table {
  width: 100% !important;
}


/* ==========================================================
   CART PRODUCT ROW
========================================================== */

#MainContent[data-template="cart"] .cart-items__table-row {
  position: relative !important;
}

#MainContent[data-template="cart"] .cart-items__table-row > td {
  padding-top: 18px !important;
  padding-bottom: 24px !important;

  border: 0 !important;

  background: transparent !important;

  vertical-align: middle !important;
}

#MainContent[data-template="cart"]
.cart-items__table-row:not(:last-child) > td {
  border-bottom: 1px solid rgb(72 38 131 / 14%) !important;
}


/* ==========================================================
   CART PRODUCT IMAGE
========================================================== */

#MainContent[data-template="cart"] .cart-items__media {
  padding-right: 0 !important;
}

#MainContent[data-template="cart"] .cart-items__media-container {
  display: block !important;

  width: 150px !important;
  height: 150px !important;

  aspect-ratio: 1 / 1 !important;

  overflow: hidden !important;

  border: 3px solid #482683 !important;
  border-radius: 18px !important;

  background: #ffffff !important;

  box-shadow: 0 5px 14px rgb(72 38 131 / 10%) !important;
}

#MainContent[data-template="cart"] .cart-items__media-image {
  display: block !important;

  width: 100% !important;
  height: 100% !important;

  object-fit: cover !important;
  object-position: center !important;

  border: 0 !important;
  border-radius: 15px !important;
}


/* ==========================================================
   CART PRODUCT DETAILS
========================================================== */

#MainContent[data-template="cart"] .cart-items__details {
  padding-left: 0 !important;
  padding-right: 24px !important;

  vertical-align: middle !important;
}

#MainContent[data-template="cart"] .cart-items__product-info {
  display: flex !important;
  flex-direction: column !important;

  gap: 8px !important;
}

#MainContent[data-template="cart"] .cart-items__title {
  display: block !important;

  max-width: 360px !important;

  color: #482683 !important;

  font-family: var(--bb-font-body) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;

  text-decoration: none !important;
}

#MainContent[data-template="cart"] .cart-items__title:hover {
  color: #c7017f !important;
}

#MainContent[data-template="cart"] .cart-items__unit-price-wrapper {
  display: block !important;

  margin-top: 2px !important;

  color: #1d1d1b !important;

  font-family: var(--bb-font-body) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}


/* ==========================================================
   CART QUANTITY
========================================================== */

#MainContent[data-template="cart"] .cart-items__quantity {
  padding-left: 12px !important;
  padding-right: 12px !important;

  vertical-align: middle !important;
}

#MainContent[data-template="cart"] .cart-items__quantity-controls {
  display: flex !important;
  align-items: center !important;

  gap: 12px !important;
}

#MainContent[data-template="cart"]
.cart-items__quantity .quantity-selector {
  display: flex !important;
  align-items: center !important;

  min-height: 46px !important;

  overflow: hidden !important;

  border: 2px solid #482683 !important;
  border-radius: 999px !important;

  background: #ffffff !important;
  color: #482683 !important;
}

#MainContent[data-template="cart"]
.cart-items__quantity .quantity-selector button {
  width: 38px !important;
  height: 42px !important;
  min-width: 38px !important;

  padding: 0 !important;

  color: #482683 !important;
}

#MainContent[data-template="cart"]
.cart-items__quantity .quantity-selector button:hover:not(:disabled) {
  color: #c7017f !important;
}

#MainContent[data-template="cart"]
.cart-items__quantity .quantity-selector button:disabled {
  opacity: 0.35 !important;
}

#MainContent[data-template="cart"]
.cart-items__quantity .quantity-selector input {
  width: 38px !important;
  min-width: 38px !important;

  padding: 0 !important;

  border: 0 !important;

  background: transparent !important;
  color: #482683 !important;

  font-family: var(--bb-font-body) !important;
  font-size: 16px !important;
  font-weight: 700 !important;

  text-align: center !important;
}


/* ==========================================================
   REMOVE BUTTON
========================================================== */

#MainContent[data-template="cart"] .cart-items__remove {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;

  padding: 0 !important;

  border: 0 !important;
  border-radius: 50% !important;

  background: rgb(199 1 127 / 8%) !important;
  color: #c7017f !important;
}

#MainContent[data-template="cart"] .cart-items__remove:hover {
  background: #c7017f !important;
  color: #ffffff !important;
}


/* ==========================================================
   CART PRODUCT TOTAL
========================================================== */

#MainContent[data-template="cart"] .cart-items__price {
  padding-left: 18px !important;

  color: #482683 !important;

  font-family: var(--bb-font-body) !important;
  font-size: 18px !important;
  font-weight: 700 !important;

  white-space: nowrap !important;

  vertical-align: middle !important;
}


/* ==========================================================
   SUMMARY COLUMN
========================================================== */

#MainContent[data-template="cart"] .cart-page__summary {
  align-self: start !important;

  height: auto !important;
  min-height: 0 !important;

  padding: 0 !important;
}


/* ==========================================================
   SUMMARY CARD
========================================================== */

#MainContent[data-template="cart"] .cart-summary {
  position: relative !important;
  top: auto !important;

  display: block !important;

  height: auto !important;
  min-height: 0 !important;

  overflow: hidden !important;

  border: 3px solid #482683 !important;
  border-radius: 22px !important;

  background: #ffffff !important;
  color: #1d1d1b !important;

  box-shadow: 0 10px 28px rgb(72 38 131 / 12%) !important;
}

#MainContent[data-template="cart"] .cart-summary__inner {
  position: relative !important;
  top: auto !important;

  align-self: start !important;

  height: auto !important;
  min-height: 0 !important;

  padding: 24px 28px !important;

  background: #ffffff !important;
}


/* ==========================================================
   ORDER SUMMARY HEADING
========================================================== */

#MainContent[data-template="cart"] .bb-cart-summary__heading {
  width: 100% !important;
}

#MainContent[data-template="cart"] .bb-cart-summary__heading h2 {
  margin: 0 !important;

  color: #c7017f !important;

  font-family: var(--bb-font-title) !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
}


/* ==========================================================
   DISCOUNT
========================================================== */

#MainContent[data-template="cart"] .cart-discount {
  color: #482683 !important;
}

#MainContent[data-template="cart"] .cart-discount__summary {
  padding: 0 0 16px !important;

  border-bottom: 1px solid rgb(72 38 131 / 18%) !important;

  color: #482683 !important;

  cursor: pointer !important;
}

#MainContent[data-template="cart"] .cart-discount__label {
  color: #482683 !important;

  font-family: var(--bb-font-body) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

#MainContent[data-template="cart"] .cart-totals__icon {
  color: #c7017f !important;
}


/* ==========================================================
   DISCOUNT FORM
========================================================== */

#MainContent[data-template="cart"] .cart-discount__content {
  padding-top: 16px !important;
}

#MainContent[data-template="cart"] .cart-discount__form {
  display: flex !important;

  gap: 8px !important;
}

#MainContent[data-template="cart"] .cart-discount__input {
  flex: 1 1 auto !important;

  min-width: 0 !important;
  min-height: 44px !important;

  padding: 10px 14px !important;

  border: 2px solid #482683 !important;
  border-radius: 999px !important;

  background: #ffffff !important;
  color: #1d1d1b !important;

  font-family: var(--bb-font-body) !important;

  outline: none !important;
}

#MainContent[data-template="cart"] .cart-discount__input:focus {
  border-color: #c7017f !important;
}

#MainContent[data-template="cart"] .cart-discount__button {
  min-height: 44px !important;

  padding: 8px 20px !important;

  border: 2px solid #482683 !important;
  border-radius: 999px !important;

  background: #482683 !important;
  color: #ffffff !important;

  font-family: var(--bb-font-body) !important;
  font-weight: 700 !important;
}


/* ==========================================================
   TOTALS
========================================================== */

#MainContent[data-template="cart"] .cart-totals__container {
  padding-top: 20px !important;
}

#MainContent[data-template="cart"] .cart-totals__total {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  gap: 20px !important;
}

#MainContent[data-template="cart"] .cart-totals__total-label {
  color: #482683 !important;

  font-family: var(--bb-font-title) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

#MainContent[data-template="cart"] .cart-totals__total-value {
  color: #482683 !important;

  font-family: var(--bb-font-body) !important;
  font-size: 18px !important;
  font-weight: 800 !important;

  white-space: nowrap !important;
}


/* ==========================================================
   TAX / SHIPPING NOTE
========================================================== */

#MainContent[data-template="cart"] .cart-totals__tax-note {
  margin-top: 16px !important;

  color: #555555 !important;

  font-family: var(--bb-font-body) !important;
  line-height: 1.45 !important;
}

#MainContent[data-template="cart"] .cart-totals__tax-note small {
  font-size: 13px !important;
}


/* ==========================================================
   CHECKOUT BUTTON
========================================================== */

#MainContent[data-template="cart"] .cart__ctas {
  margin-top: 22px !important;
}

#MainContent[data-template="cart"] .cart__checkout-button {
  width: 100% !important;

  min-height: 56px !important;

  padding: 12px 24px !important;

  border: 3px solid #c7017f !important;
  border-radius: 999px !important;

  background: #c7017f !important;
  color: #ffffff !important;

  box-shadow: 0 5px 12px rgb(199 1 127 / 18%) !important;
}

#MainContent[data-template="cart"] .cart__checkout-button .button-text {
  color: #ffffff !important;

  font-family: var(--bb-font-title) !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

#MainContent[data-template="cart"] .cart__checkout-button:hover {
  border-color: #482683 !important;
  background: #482683 !important;
}


/* ==========================================================
   CHECKOUT REASSURANCE
========================================================== */

#MainContent[data-template="cart"] .bb-cart-summary__reassurance {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;

  gap: 10px 20px !important;

  width: 100% !important;
}

#MainContent[data-template="cart"] .bb-cart-summary__reassurance-item {
  display: inline-flex !important;
  align-items: center !important;

  gap: 7px !important;

  color: #482683 !important;

  font-family: var(--bb-font-body) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

#MainContent[data-template="cart"] .bb-cart-summary__reassurance-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;

  border-radius: 50% !important;

  background: #482683 !important;
  color: #ffffff !important;

  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}


/* ==========================================================
   YOU MAY ALSO LIKE
   Keep Horizon's recommendation media/layout native.
========================================================== */


/* ==========================================================
   RECOMMENDATION HEADING
========================================================== */

#MainContent[data-template="cart"] .section-resource-list__header {
  margin-bottom: 20px !important;
}

#MainContent[data-template="cart"] .section-resource-list__header h3 {
  margin: 0 !important;

  color: #482683 !important;

  font-family: var(--bb-font-title) !important;
  font-size: clamp(34px, 3vw, 42px) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
}


/* ==========================================================
   RECOMMENDATION PRODUCT TEXT
========================================================== */

#MainContent[data-template="cart"]
.resource-list__item
.product-card__content > a.contents.user-select-text {
  color: #482683 !important;

  text-decoration: none !important;
}

#MainContent[data-template="cart"]
.resource-list__item
.product-card__content > a.contents.user-select-text p {
  color: #482683 !important;

  font-family: var(--bb-font-body) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

#MainContent[data-template="cart"]
.resource-list__item
.product-card__content > a.contents.user-select-text:hover p {
  color: #c7017f !important;
}


/* ==========================================================
   RECOMMENDATION PRICE
========================================================== */

#MainContent[data-template="cart"]
.resource-list__item product-price {
  color: #c7017f !important;
}

#MainContent[data-template="cart"]
.resource-list__item product-price .price {
  color: #c7017f !important;

  font-family: var(--bb-font-body) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}


/* ==========================================================
   DESKTOP CART GRID
========================================================== */

@media screen and (min-width: 750px) {

  #MainContent[data-template="cart"] .cart-page {
    grid-template-columns:
      minmax(0, 1fr)
      min(420px, 32vw) !important;

    grid-template-rows: min-content !important;

    column-gap: 48px !important;
    row-gap: 0 !important;

    align-items: start !important;
  }


  /* CART TITLE */

  #MainContent[data-template="cart"] .cart-page__title {
    grid-column: 1 !important;
    grid-row: 1 !important;

    align-self: start !important;

    margin: 0 !important;

    position: relative !important;
    z-index: 2 !important;
  }


  /* CART PRODUCTS */

  #MainContent[data-template="cart"] .cart-page__items {
    grid-column: 1 !important;
    grid-row: 1 !important;

    align-self: start !important;

    margin: 0 !important;

    padding-top: 76px !important;

    height: auto !important;
    min-height: 0 !important;
  }

  #MainContent[data-template="cart"] .cart-items,
  #MainContent[data-template="cart"] .cart-items__wrapper,
  #MainContent[data-template="cart"] .cart-form,
  #MainContent[data-template="cart"] .cart-items__table {
    height: auto !important;
    min-height: 0 !important;

    align-self: start !important;
  }


  /* PRODUCT TEXT ALIGNMENT */

  #MainContent[data-template="cart"] .cart-items__details {
    position: relative !important;

    left: 34px !important;
  }


  /* SUMMARY */

  #MainContent[data-template="cart"] .cart-page__summary {
    grid-column: 2 !important;
    grid-row: 1 !important;

    align-self: start !important;

    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  #MainContent[data-template="cart"] .cart-summary {
    display: block !important;

    position: relative !important;
    top: auto !important;

    grid-row: auto !important;

    align-self: start !important;

    height: auto !important;
    min-height: 0 !important;
  }

  #MainContent[data-template="cart"] .cart-summary__inner {
    position: relative !important;
    top: auto !important;

    grid-row: auto !important;

    align-self: start !important;

    height: auto !important;
    min-height: 0 !important;
  }

}


/* ==========================================================
   TABLET
========================================================== */

@media screen and (min-width: 750px) and (max-width: 989px) {

  #MainContent[data-template="cart"] .cart-page {
    --cart-item-media-width-min: 120px !important;
    --cart-item-media-width-max: 120px !important;

    grid-template-columns:
      minmax(0, 1fr)
      min(360px, 40vw) !important;

    column-gap: 28px !important;
  }

  #MainContent[data-template="cart"] .cart-page__items {
    padding-top: 72px !important;
  }

  #MainContent[data-template="cart"] .cart-items__media-container {
    width: 120px !important;
    height: 120px !important;
  }

  #MainContent[data-template="cart"] .cart-items__details {
    left: 24px !important;
  }

  #MainContent[data-template="cart"] .cart-items__title {
    max-width: 260px !important;

    font-size: 16px !important;
  }

  #MainContent[data-template="cart"] .cart-summary__inner {
    padding: 22px !important;
  }

  #MainContent[data-template="cart"] .bb-cart-summary__heading h2 {
    font-size: 27px !important;
  }

  #MainContent[data-template="cart"]
  .resource-list__item
  .product-card__content > a.contents.user-select-text p {
    font-size: 15px !important;
  }

}


/* ==========================================================
   MOBILE
========================================================== */

@media screen and (max-width: 749px) {

  #MainContent[data-template="cart"] .cart-page {
    --cart-item-media-width-min: 100px !important;
    --cart-item-media-width-max: 100px !important;

    display: block !important;

    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }


  /* CART TITLE */

  #MainContent[data-template="cart"] .cart-title h1 {
    font-size: 38px !important;
  }

  #MainContent[data-template="cart"] .cart-title .cart-bubble {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
  }


  /* CART ITEMS */

  #MainContent[data-template="cart"] .cart-page__items {
    margin-top: 22px !important;
  }

  #MainContent[data-template="cart"] .cart-items__table,
  #MainContent[data-template="cart"] .cart-items__table tbody,
  #MainContent[data-template="cart"] .cart-items__table-row {
    display: block !important;

    width: 100% !important;
  }

  #MainContent[data-template="cart"] .cart-items__table-row {
    display: grid !important;

    grid-template-columns:
      100px minmax(0, 1fr) !important;

    gap: 0 14px !important;

    margin-bottom: 18px !important;

    padding: 0 0 18px !important;

    border-bottom:
      1px solid rgb(72 38 131 / 16%) !important;
  }

  #MainContent[data-template="cart"] .cart-items__table-row > td {
    display: block !important;

    width: auto !important;
    min-width: 0 !important;

    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;
  }


  /* IMPORTANT:
     Horizon adds .hidden to this cell when there is no
     cart error. The rule above would otherwise force it
     back to display:block and reveal the red error icon.
  */

  #MainContent[data-template="cart"]
  .cart-items__table-row > td.cart-items__error.hidden {
    display: none !important;
  }


  /* CART IMAGE */

  #MainContent[data-template="cart"] .cart-items__media {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;

    width: 100px !important;
    min-width: 100px !important;

    padding: 0 !important;
  }

  #MainContent[data-template="cart"] .cart-items__media-container {
    width: 100px !important;
    height: 100px !important;

    aspect-ratio: 1 / 1 !important;

    border-width: 2px !important;
    border-radius: 14px !important;
  }

  #MainContent[data-template="cart"] .cart-items__media-image {
    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: 12px !important;
  }


  /* CART DETAILS */

  #MainContent[data-template="cart"] .cart-items__details {
    grid-column: 2 !important;

    position: static !important;

    left: auto !important;

    width: auto !important;
    min-width: 0 !important;

    padding: 0 !important;
  }

  #MainContent[data-template="cart"] .cart-items__title {
    max-width: none !important;

    font-size: 15px !important;
    line-height: 1.3 !important;
  }

  #MainContent[data-template="cart"] .cart-items__unit-price-wrapper {
    margin-top: 4px !important;

    font-size: 15px !important;
  }


  /* CART QUANTITY */

  #MainContent[data-template="cart"] .cart-items__quantity {
    grid-column: 2 !important;

    margin-top: 12px !important;

    padding: 0 !important;
  }

  #MainContent[data-template="cart"]
  .cart-items__quantity .quantity-selector {
    min-height: 38px !important;
  }

  #MainContent[data-template="cart"]
  .cart-items__quantity .quantity-selector button {
    width: 34px !important;
    height: 36px !important;
    min-width: 34px !important;
  }

  #MainContent[data-template="cart"]
  .cart-items__quantity .quantity-selector input {
    width: 32px !important;
    min-width: 32px !important;

    font-size: 14px !important;
  }

  #MainContent[data-template="cart"] .cart-items__remove {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }


  /* CART TOTAL */

  #MainContent[data-template="cart"] .cart-items__price {
    grid-column: 2 !important;

    margin-top: 10px !important;

    padding: 0 !important;

    font-size: 16px !important;
  }


  /* SUMMARY */

  #MainContent[data-template="cart"] .cart-page__summary {
    margin-top: 24px !important;
  }

  #MainContent[data-template="cart"] .cart-summary {
    position: relative !important;
    top: auto !important;

    border-width: 2px !important;
    border-radius: 18px !important;
  }

  #MainContent[data-template="cart"] .cart-summary__inner {
    position: relative !important;
    top: auto !important;

    padding: 20px !important;
  }

  #MainContent[data-template="cart"] .bb-cart-summary__heading h2 {
    font-size: 27px !important;
  }

  #MainContent[data-template="cart"] .cart-totals__total-label {
    font-size: 20px !important;
  }

  #MainContent[data-template="cart"] .cart-totals__total-value {
    font-size: 16px !important;
  }

  #MainContent[data-template="cart"] .cart__checkout-button {
    min-height: 52px !important;
  }

  #MainContent[data-template="cart"] .cart__checkout-button .button-text {
    font-size: 19px !important;
  }

  #MainContent[data-template="cart"] .bb-cart-summary__reassurance {
    gap: 8px 16px !important;
  }

  #MainContent[data-template="cart"] .bb-cart-summary__reassurance-item {
    font-size: 12px !important;
  }


  /* ========================================================
     RECOMMENDATIONS - MOBILE
  ======================================================== */

  #MainContent[data-template="cart"] .section-resource-list__header {
    margin-bottom: 16px !important;
  }

  #MainContent[data-template="cart"] .section-resource-list__header h3 {
    font-size: 30px !important;
  }

  #MainContent[data-template="cart"]
  .resource-list__item
  .product-card__content > a.contents.user-select-text p {
    font-size: 15px !important;
  }

  #MainContent[data-template="cart"]
  .resource-list__item product-price .price {
    font-size: 15px !important;
  }

}

/* ==========================================================
   BEDTIME BESTIES — DAYTIME ACTIVITY PACKS
========================================================== */

.bb-activity-packs-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.bb-activity-packs {
  --bb-purple: #312783;
  --bb-pink: #e6007e;
  --bb-yellow: #ffed00;
  --bb-sky: #afdef9;

  position: relative;
  width: 100%;

  background: var(--bb-sky);

  overflow: hidden;
}


/* ==========================================================
   PAGE / CANVAS
========================================================== */

.bb-activity-packs__canvas {
  position: relative;

  width: 100%;

  padding:
    45px
    24px
    0;

  box-sizing: border-box;
}

.bb-activity-packs__inner {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1100px;

  margin: 0 auto;
}


/* ==========================================================
   MAIN CONTENT AREA
========================================================== */

.bb-activity-packs__card {
  position: relative;

  width: 100%;
  max-width: 1050px;

  margin: 0 auto;

  padding:
    0
    30px
    55px;

  background: transparent;

  border: 0;
  border-radius: 0;

  box-sizing: border-box;

  color: var(--bb-purple);

  text-align: center;

  overflow: visible;
}


/* ==========================================================
   TOP BANNER

   Framed to match the Contact page.
========================================================== */

.bb-activity-packs__artwork {
  width: 100%;
  max-width: 920px;

  margin:
    0
    auto
    30px;

  padding: 0;

  box-sizing: border-box;
}

.bb-activity-packs__image {
  display: block;

  width: 100%;
  height: auto;

  margin: 0 auto;

  border:
    7px
    solid
    #ffffff;

  border-radius: 26px;

  box-sizing: border-box;

  box-shadow:
    0 8px 24px rgba(49, 39, 131, 0.18);
}


/* ==========================================================
   STATES
========================================================== */

.bb-activity-packs__state {
  width: 100%;
}

.bb-activity-packs__state[hidden] {
  display: none !important;
}


/* ==========================================================
   EYEBROW / FREE WITH EVERY BESTIE
========================================================== */

.bb-activity-packs__eyebrow {
  margin:
    0
    0
    12px;

  color: var(--bb-pink);

  font-family: var(--bb-font-display);

  font-size: 32px;
  line-height: 1.05;

  font-weight: 700;
}


/* ==========================================================
   MAIN TITLE

   Yellow with Bedtime Besties purple outline.
========================================================== */

.bb-activity-packs__title {
  margin:
    0
    0
    20px;

  color: var(--bb-yellow);

  font-family: var(--bb-font-title);

  font-size:
    clamp(
      46px,
      5vw,
      68px
    );

  line-height: 0.95;

  font-weight: 900;

  letter-spacing: -1.5px;

  -webkit-text-stroke:
    3px
    var(--bb-purple);

  paint-order: stroke fill;

  text-shadow:
    2px 2px 0 var(--bb-purple);
}


/* ==========================================================
   BODY COPY
========================================================== */

.bb-activity-packs__copy,
.bb-activity-packs__gift-intro,
.bb-activity-packs__claimed-copy,
.bb-activity-packs__state--error > p {
  width: 100%;
  max-width: 760px;

  margin:
    0
    auto
    24px;

  color: var(--bb-purple);

  font-family: var(--bb-font-display);

  font-size: 21px;
  line-height: 1.35;

  font-weight: 500;
}

.bb-activity-packs__copy p,
.bb-activity-packs__gift-intro p {
  margin: 0;
}


/* ==========================================================
   CTA BUTTON
========================================================== */

.bb-activity-packs__button {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 500px;
  min-height: 62px;

  margin:
    28px
    auto
    0;

  padding:
    13px
    32px;

  box-sizing: border-box;

  background: var(--bb-pink);

  border:
    4px
    solid
    #ffffff;

  border-radius: 999px;

  color: #ffffff !important;

  font-family: var(--bb-font-display);

  font-size: 24px;
  line-height: 1.1;

  font-weight: 700;

  text-align: center;
  text-decoration: none !important;

  cursor: pointer;

  box-shadow:
    0 6px 0 rgba(49, 39, 131, 0.18);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.bb-activity-packs__button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 8px 0 rgba(49, 39, 131, 0.18);
}

.bb-activity-packs__button:active {
  transform: translateY(2px);

  box-shadow:
    0 3px 0 rgba(49, 39, 131, 0.18);
}


/* ==========================================================
   ACCOUNT NOTE
========================================================== */

.bb-activity-packs__account-note {
  width: 100%;
  max-width: 680px;

  margin:
    20px
    auto
    0;

  color: var(--bb-purple);

  font-family: var(--bb-font-display);

  font-size: 17px;
  line-height: 1.35;

  font-weight: 500;
}


/* ==========================================================
   GIFT MESSAGE
========================================================== */

.bb-activity-packs__gift-message {
  position: relative;

  width: 100%;
  max-width: 620px;

  margin:
    26px
    auto;

  padding:
    22px
    28px;

  box-sizing: border-box;

  background: #ffffff;

  border:
    4px
    solid
    var(--bb-purple);

  border-radius: 20px;

  color: var(--bb-purple);

  font-family: var(--bb-font-display);

  font-size: 20px;
  line-height: 1.4;

  font-weight: 700;
  font-style: normal;

  box-shadow:
    0 6px 18px rgba(49, 39, 131, 0.12);
}

.bb-activity-packs__gift-message::before {
  content: "“";
}

.bb-activity-packs__gift-message::after {
  content: "”";
}


/* ==========================================================
   LOADING STATE
========================================================== */

.bb-activity-packs__state--loading {
  min-height: 160px;
}


/* ==========================================================
   CLOUD TRANSITION

   Separate image selected in Theme Editor.
========================================================== */

.bb-activity-packs__cloud-transition {
  position: relative;
  z-index: 1;

  width: 100vw;

  margin-left:
    calc(50% - 50vw);

  /*
    Pull the cloud artwork slightly into the blue section
    so there is no hard horizontal join.
  */
  margin-top: -10px;

  line-height: 0;

  overflow: hidden;

  pointer-events: none;
}

.bb-activity-packs__cloud-image {
  display: block;

  width: 100%;
  max-width: none;
  height: auto;

  margin: 0;
  padding: 0;
}


/* ==========================================================
   MOBILE
========================================================== */

@media screen and (max-width: 749px) {

  .bb-activity-packs__canvas {
    padding:
      22px
      12px
      0;
  }


  /* --------------------------------------------------------
     CONTENT
  -------------------------------------------------------- */

  .bb-activity-packs__card {
    padding:
      0
      4px
      38px;
  }


  /* --------------------------------------------------------
     BANNER
  -------------------------------------------------------- */

  .bb-activity-packs__artwork {
    width: 100%;

    margin:
      0
      auto
      24px;
  }

  .bb-activity-packs__image {
    width: 100%;

    border-width: 4px;
    border-radius: 18px;

    box-shadow:
      0 6px 18px rgba(49, 39, 131, 0.16);
  }


  /* --------------------------------------------------------
     EYEBROW
  -------------------------------------------------------- */

  .bb-activity-packs__eyebrow {
    margin-bottom: 9px;

    font-size: 24px;
    line-height: 1.05;
  }


  /* --------------------------------------------------------
     TITLE
  -------------------------------------------------------- */

  .bb-activity-packs__title {
    margin-bottom: 16px;

    font-size:
      clamp(
        36px,
        11vw,
        50px
      );

    line-height: 0.96;

    letter-spacing: -1px;

    -webkit-text-stroke:
      2px
      var(--bb-purple);

    text-shadow:
      1px 1px 0 var(--bb-purple);
  }


  /* --------------------------------------------------------
     BODY COPY
  -------------------------------------------------------- */

  .bb-activity-packs__copy,
  .bb-activity-packs__gift-intro,
  .bb-activity-packs__claimed-copy,
  .bb-activity-packs__state--error > p {
    max-width: 100%;

    margin-bottom: 20px;

    padding:
      0
      8px;

    box-sizing: border-box;

    font-size: 18px;
    line-height: 1.35;
  }


  /* --------------------------------------------------------
     BUTTON
  -------------------------------------------------------- */

  .bb-activity-packs__button {
    width:
      calc(100% - 16px);

    max-width: 440px;
    min-height: 56px;

    margin-top: 22px;

    padding:
      11px
      18px;

    border-width: 3px;

    font-size: 20px;

    box-shadow:
      0 5px 0 rgba(49, 39, 131, 0.18);
  }

  .bb-activity-packs__button:hover {
    box-shadow:
      0 7px 0 rgba(49, 39, 131, 0.18);
  }


  /* --------------------------------------------------------
     ACCOUNT NOTE
  -------------------------------------------------------- */

  .bb-activity-packs__account-note {
    max-width: 100%;

    margin-top: 18px;

    padding:
      0
      12px;

    box-sizing: border-box;

    font-size: 15px;
    line-height: 1.35;
  }


  /* --------------------------------------------------------
     GIFT MESSAGE
  -------------------------------------------------------- */

  .bb-activity-packs__gift-message {
    width:
      calc(100% - 16px);

    margin:
      22px
      auto;

    padding:
      18px
      20px;

    border-width: 3px;
    border-radius: 16px;

    font-size: 17px;
    line-height: 1.35;
  }


  /* --------------------------------------------------------
     CLOUD TRANSITION

     Keep natural aspect ratio so the cloud artwork is never
     stretched or squashed.
  -------------------------------------------------------- */

  .bb-activity-packs__cloud-transition {
    width: 100vw;

    margin-left:
      calc(50% - 50vw);

    margin-top: -5px;

    overflow: hidden;
  }

  .bb-activity-packs__cloud-image {
    display: block;

    /*
      Slight crop on mobile rather than distorting the image.
    */
    width: 115%;
    max-width: none;
    height: auto;

    margin-left: -7.5%;
  }

}

/* ==========================================================
   SHOPIFY COOKIE BANNER
========================================================== */

#shopify-pc__banner.shopify-pc__banner__dialog {
  border: 3px solid #482683 !important;
  border-radius: 22px !important;

  background: #ffffff !important;

  box-shadow:
    0 14px 40px rgb(72 38 131 / 22%) !important;

  overflow: hidden !important;
}


/* ==========================================================
   COOKIE BANNER INNER
========================================================== */

#shopify-pc__banner .shopify-pc__banner__wrapper {
  padding: 24px !important;
}


/* ==========================================================
   COOKIE BANNER TITLE
========================================================== */

#shopify-pc__banner__body-title {
  margin: 0 0 12px !important;

  color: #c7017f !important;

  font-family: var(--bb-font-title) !important;

  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}


/* ==========================================================
   COOKIE BANNER BODY COPY
========================================================== */

#shopify-pc__banner .shopify-pc__banner__body p {
  color: #1d1d1b !important;

  font-family: var(--bb-font-body) !important;

  font-size: 16px !important;
  line-height: 1.5 !important;
}


/* ==========================================================
   COOKIE BANNER LINKS
========================================================== */

#shopify-pc__banner .shopify-pc__banner__body a {
  color: #c7017f !important;

  font-family: var(--bb-font-body) !important;

  font-weight: 700 !important;

  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}


/* ==========================================================
   COOKIE BANNER BUTTONS
========================================================== */

#shopify-pc__banner .shopify-pc__banner__btns button {
  min-height: 44px !important;

  padding:
    10px
    20px !important;

  border:
    2px
    solid
    #482683 !important;

  border-radius: 999px !important;

  background: #ffffff !important;

  color: #482683 !important;

  font-family: var(--bb-font-display) !important;

  font-size: 15px !important;
  font-weight: 700 !important;

  box-shadow: none !important;

  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease !important;
}


/* Accept = primary pink action */

#shopify-pc__banner #shopify-pc__banner__btn-accept {
  border-color: #c7017f !important;

  background: #c7017f !important;

  color: #ffffff !important;
}


/* Secondary hover */

#shopify-pc__banner .shopify-pc__banner__btns button:hover {
  border-color: #c7017f !important;

  color: #c7017f !important;
}


/* Keep primary action pink on hover */

#shopify-pc__banner #shopify-pc__banner__btn-accept:hover {
  border-color: #c7017f !important;

  background: #c7017f !important;

  color: #ffffff !important;
}


/* ==========================================================
   SHOPIFY COOKIE PREFERENCES DIALOG
========================================================== */

#shopify-pc__prefs.shopify-pc__prefs {
  font-family: var(--bb-font-body) !important;
}


/* ==========================================================
   PREFERENCES PANEL
========================================================== */

#shopify-pc__prefs .shopify-pc__prefs__dialog {
  border:
    3px
    solid
    #482683 !important;

  border-radius: 22px !important;

  background: #ffffff !important;

  box-shadow:
    0 14px 40px rgb(72 38 131 / 22%) !important;

  overflow: hidden !important;
}


/* ==========================================================
   PREFERENCES HEADER
========================================================== */

#shopify-pc__prefs header {
  border-bottom:
    1px
    solid
    rgb(72 38 131 / 15%) !important;

  background: #ffffff !important;
}


/* Main preferences heading */

#shopify-pc__prefs header h2,
#shopify-pc__prefs .shopify-pc__prefs__header-title {
  color: #c7017f !important;

  font-family: var(--bb-font-title) !important;

  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}


/* ==========================================================
   PREFERENCES SECTION HEADINGS
========================================================== */

#shopify-pc__prefs .shopify-pc__prefs__intro h3 {
  color: #482683 !important;

  font-family: var(--bb-font-title) !important;

  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
}


/* ==========================================================
   PREFERENCES BODY COPY
========================================================== */

#shopify-pc__prefs p {
  color: #1d1d1b !important;

  font-family: var(--bb-font-body) !important;

  font-size: 16px !important;
  line-height: 1.5 !important;
}


/* ==========================================================
   PREFERENCES LINKS
========================================================== */

#shopify-pc__prefs a {
  color: #c7017f !important;

  font-family: var(--bb-font-body) !important;

  font-weight: 700 !important;

  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}


/* ==========================================================
   PREFERENCE OPTION LABELS
========================================================== */

#shopify-pc__prefs .shopify-pc__prefs__option label {
  color: #482683 !important;

  font-family: var(--bb-font-display) !important;

  font-size: 16px !important;
  font-weight: 700 !important;
}


/* ==========================================================
   PREFERENCES BUTTONS
========================================================== */

#shopify-pc__prefs button {
  border:
    2px
    solid
    #482683 !important;

  border-radius: 999px !important;

  background: #ffffff !important;

  color: #482683 !important;

  font-family: var(--bb-font-display) !important;

  font-weight: 700 !important;

  box-shadow: none !important;

  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease !important;
}


/* Secondary hover */

#shopify-pc__prefs button:hover {
  border-color: #c7017f !important;

  color: #c7017f !important;
}


/* Accept / primary buttons */

#shopify-pc__prefs button[id*="accept"] {
  border-color: #c7017f !important;

  background: #c7017f !important;

  color: #ffffff !important;
}


#shopify-pc__prefs button[id*="accept"]:hover {
  border-color: #c7017f !important;

  background: #c7017f !important;

  color: #ffffff !important;
}


/* ==========================================================
   PREFERENCES CHECKBOXES
========================================================== */

#shopify-pc__prefs input[type="checkbox"] {
  accent-color: #c7017f !important;
}


/* ==========================================================
   SHOPIFY COOKIE UI — MOBILE
========================================================== */

@media screen and (max-width: 749px) {

  /* --------------------------------------------------------
     PANELS
  -------------------------------------------------------- */

  #shopify-pc__banner.shopify-pc__banner__dialog,
  #shopify-pc__prefs .shopify-pc__prefs__dialog {
    border-width: 2px !important;

    border-radius: 18px !important;
  }


  /* --------------------------------------------------------
     BANNER INNER
  -------------------------------------------------------- */

  #shopify-pc__banner .shopify-pc__banner__wrapper {
    padding: 18px !important;
  }


  /* --------------------------------------------------------
     MAIN TITLES
  -------------------------------------------------------- */

  #shopify-pc__banner__body-title,
  #shopify-pc__prefs header h2,
  #shopify-pc__prefs .shopify-pc__prefs__header-title {
    font-size: 26px !important;
  }


  /* --------------------------------------------------------
     BODY COPY
  -------------------------------------------------------- */

  #shopify-pc__banner .shopify-pc__banner__body p,
  #shopify-pc__prefs p {
    font-size: 15px !important;

    line-height: 1.45 !important;
  }


  /* --------------------------------------------------------
     PREFERENCE SUBHEADING
  -------------------------------------------------------- */

  #shopify-pc__prefs .shopify-pc__prefs__intro h3 {
    font-size: 21px !important;
  }


  /* --------------------------------------------------------
     BUTTON GROUP
  -------------------------------------------------------- */

  #shopify-pc__banner .shopify-pc__banner__btns {
    gap: 8px !important;
  }


  /* --------------------------------------------------------
     BUTTONS
  -------------------------------------------------------- */

  #shopify-pc__banner .shopify-pc__banner__btns button {
    min-height: 42px !important;

    padding:
      9px
      14px !important;

    font-size: 14px !important;
  }

}