/**
 * TG Iwata Sticky Bar
 * Fixed promo bar pinned to the bottom of the viewport, riding over everything.
 * Desktop/tablet: single row (info blocks · product · Buy Now).
 * Mobile: two badge blocks on top, product info, full-width Buy Now.
 * z-index is set inline from the Advanced > Sticky Bar setting (default 9999).
 */
.tg-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* background, text color, and border color all come from Advanced > Colors
     (applied to .tg-sticky-bar via the inline style at the bottom of instance.mvt) */
}
.tg-sticky-bar__inner {
  display: flex;
  align-items: stretch;
  min-height: 56px;
}

/* ---- Info blocks (icon + text) ---- */
.tg-sticky-bar__block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.tg-sticky-bar__icon { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.tg-sticky-bar__text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
}
/* Responsive copy: show one text variant per breakpoint
   (mobile <48em · tablet 48–60em · desktop ≥60em). The template fills unused
   tiers by falling back to the previous one, so a blank field is never shown. */
.tg-sticky-bar__text--tablet,
.tg-sticky-bar__text--desktop { display: none; }
@media (min-width: 48em) {
  .tg-sticky-bar__text--mobile  { display: none; }
  .tg-sticky-bar__text--tablet  { display: inline; }
}
@media (min-width: 60em) {
  .tg-sticky-bar__text--tablet  { display: none; }
  .tg-sticky-bar__text--desktop { display: inline; }
}

/* ---- Product (sku + name + price flow as ONE text unit, not stacked columns) ---- */
.tg-sticky-bar__product {
  flex: 1;
  align-self: center;   /* center the text unit vertically in the bar (block stays inline-flow) */
  padding: 0.75rem 1.75rem;
  font-size: 0.92rem;
  font-family: var(--secondary-font-family);   /* name/sku/price in secondary font */
  text-align: right;
  line-height: 1.35;
}
.tg-sticky-bar__sku,
.tg-sticky-bar__name,
.tg-sticky-bar__price { display: inline; }
.tg-sticky-bar__sku { font-weight: 700; }
.tg-sticky-bar__price { color: var(--theme-primary-color, #F6EC23); font-weight: 700; white-space: nowrap; }

/* ---- Buy Now (add-to-cart form; fills bar height, flush right) ---- */
.tg-sticky-bar__buy-form { align-self: stretch; display: flex; margin: 0; }
.tg-sticky-bar__buy {
  align-self: stretch;
  height: 100%;              /* fill the bar height even when the product name wraps */
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
}

/* ---- Mid-desktop (60–87.5em / ~960–1400px): the long desktop badge copy sits
   on one wide line and crowds the product on narrower desktops — cap the badge
   text so it wraps to 2 lines and the product name/price keeps the bulk ---- */
@media (min-width: 60em) and (max-width: 87.49em) {
  .tg-sticky-bar__block { padding: 0.7rem 1.3rem; }
  .tg-sticky-bar__text { max-width: 18ch; }
}

/* ---- Tablet (48–60em): shrink the two badge blocks so the product name/price
   claims the bulk of the bar (design: sticky-bar-md.jpg) ---- */
@media (min-width: 48em) and (max-width: 59.99em) {
  .tg-sticky-bar__block { padding: 0.6rem 1rem; gap: 0.5rem; }
  .tg-sticky-bar__icon { width: 22px; height: 22px; }
  .tg-sticky-bar__text { font-size: 0.62rem; max-width: 9ch; letter-spacing: 0.04em; }  /* wrap to a narrow ~3-line column */
  .tg-sticky-bar__product { text-align: left; }   /* product reads left-to-right into the freed space */
}

/* ---- Mobile: stacked (badges row -> product -> full-width button) ---- */
@media (max-width: 47.99em) {
  .tg-sticky-bar__inner { flex-wrap: wrap; }
  .tg-sticky-bar__block {
    flex: 1 1 50%;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .tg-sticky-bar__block:nth-child(2n) { border-right: none; }
  .tg-sticky-bar__product {
    flex: 1 1 100%;
    text-align: center;   /* center the sku/name/price on mobile */
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .tg-sticky-bar__buy-form { flex: 1 1 100%; }
  .tg-sticky-bar__buy { width: 100%; }
}
