/* Storefront catalog / PDP / articles / cart / member — app feature styles (layout only) */

.gb-catalog__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .gb-catalog__header { margin-top: 2.5rem; }
}

.gb-catalog__header > .gb-type { margin: 0; }

.gb-catalog__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.gb-catalog__content {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gb-color-border-muted);
}

.gb-catalog__sidebar {
  flex: 0 0 284px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--gb-color-border-muted);
  border-radius: var(--gb-radius-sm);
  background: var(--gb-color-surface);
}

.gb-catalog__sidebar-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gb-color-border-muted);
}

.gb-catalog__sidebar-header h2 {
  margin: 0;
  font-family: var(--gb-font-brand);
  font-size: 1rem;
  font-weight: 600;
}

.gb-catalog__main {
  flex: 1 1 320px;
  min-width: 0;
}

.gb-catalog__result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gb-catalog__result-count {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
}

.gb-catalog__filter-open { display: inline-flex; }

.gb-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Default card width when no column variant is set */
.gb-product-grid > * {
  flex: 1 1 200px;
  max-width: 260px;
  min-width: 0;
}

/*
 * Product list grids — flex columns matching getbookie2026:
 * recommended: always one row of 5 on xl (limit 5 items)
 * catalog: 2 → 3 → 4 → 5 cols, page size 35
 */
.gb-product-grid--recommend > *,
.gb-product-grid--catalog > * {
  flex: 0 0 calc((100% - 0.75rem) / 2);
  max-width: calc((100% - 0.75rem) / 2);
}

@media (min-width: 640px) {
  .gb-product-grid--recommend > *,
  .gb-product-grid--catalog > * {
    flex-basis: calc((100% - 1.5rem) / 3);
    max-width: calc((100% - 1.5rem) / 3);
  }
}

@media (min-width: 768px) {
  .gb-product-grid--recommend > *,
  .gb-product-grid--catalog > * {
    flex-basis: calc((100% - 2.25rem) / 4);
    max-width: calc((100% - 2.25rem) / 4);
  }
}

@media (min-width: 1280px) {
  .gb-product-grid--recommend > *,
  .gb-product-grid--catalog > * {
    /* 5 columns: 4 gaps × 0.75rem */
    flex-basis: calc((100% - 3rem) / 5);
    max-width: calc((100% - 3rem) / 5);
  }
}

.gb-catalog__section-title {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
}

/* Active filters — layout only; removable tags use shared GDS `.gb-web-tag`. */
.gb-catalog__pills {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: var(--space-2) var(--space-3);
  overflow-x: auto;
  border-radius: var(--gb-radius-sm);
  background: var(--gb-color-surface-muted);
}

.gb-catalog__pills-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.gb-filter-panel {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--gb-color-surface);
}

.gb-filter-panel__group {
  padding: 1rem 0;
  border-bottom: 1px solid var(--gb-color-border-muted);
}

.gb-filter-panel__group:first-child { padding-top: 0; }
.gb-filter-panel__group:last-of-type { border-bottom: 0; }

.gb-filter-panel__label {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--gb-color-text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}

.gb-filter-panel__choices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gb-filter-panel .gb-choice,
.gb-filter-panel [data-gb-choice] {
  color: var(--gb-color-text);
  font-size: 1rem;
  line-height: 1.5;
}

.gb-filter-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  padding-top: 1rem;
}

/* Category tree — click name/radio filters immediately; chevron toggles children */
.gb-filter-panel__categories {
  gap: 0;
}

.gb-filter-category {
  min-width: 0;
}

.gb-filter-category__row {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: var(--gb-radius-sm);
  transition: background-color var(--gb-duration-fast) var(--gb-ease);
}

.gb-filter-category__row:hover {
  background: var(--gb-color-surface-muted);
}

.gb-filter-panel__categories .gb-filter-category__row > .gb-choice,
.gb-filter-panel__categories .gb-filter-category__row > [data-gb-choice] {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.25rem;
  margin: 0;
  padding: 0.375rem 0;
  gap: var(--space-2);
  cursor: pointer;
}

.gb-filter-panel__categories .gb-filter-category__row > .gb-choice > span:last-child,
.gb-filter-panel__categories .gb-filter-category__row > [data-gb-choice] > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.gb-filter-category[data-depth="1"] > .gb-filter-category__row .gb-choice > span:last-child,
.gb-filter-category[data-depth="1"] > .gb-filter-category__row [data-gb-choice] > span:last-child,
.gb-filter-category[data-depth="2"] > .gb-filter-category__row .gb-choice > span:last-child,
.gb-filter-category[data-depth="2"] > .gb-filter-category__row [data-gb-choice] > span:last-child,
.gb-filter-category[data-depth="3"] > .gb-filter-category__row .gb-choice > span:last-child,
.gb-filter-category[data-depth="3"] > .gb-filter-category__row [data-gb-choice] > span:last-child {
  font-weight: 400;
}

.gb-filter-category__toggle {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: var(--gb-radius-sm);
  background: transparent;
  color: var(--gb-color-text-muted);
  cursor: pointer;
}

.gb-filter-category__toggle:hover {
  background: var(--gb-color-surface-muted);
  color: var(--gb-color-text);
}

.gb-filter-category__chevron {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--gb-duration) var(--gb-ease);
}

.gb-filter-category[data-open="true"] > .gb-filter-category__row .gb-filter-category__chevron {
  transform: rotate(90deg);
}

.gb-filter-category__children {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  padding-inline-start: 1rem;
}

.gb-filter-category__children[hidden] {
  display: none;
}

.gb-category-nav {
  margin-bottom: 2rem;
}

.gb-category-nav__title {
  font-size: 1rem;
  font-family: var(--gb-font-brand);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.gb-category-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gb-category-nav__link {
  display: flex;
  box-sizing: border-box;
  min-width: 0;
  min-height: 2.75rem;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gb-color-border-muted);
  border-radius: var(--gb-radius-sm);
  background: var(--gb-color-surface);
  text-decoration: none;
  color: inherit;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gb-category-nav__link:hover,
.gb-category-nav__link:focus-visible {
  border-color: var(--gb-color-primary);
  background: var(--gb-color-surface-muted);
  color: var(--gb-color-primary-text);
}

.gb-category-nav__link.is-active {
  background: var(--gb-color-primary);
  border-color: transparent;
  font-weight: 600;
}

.gb-category-nav__more {
  display: flex;
  width: 100%;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  border: 0;
  border-radius: var(--gb-radius-sm);
  background: transparent;
  color: var(--gb-color-primary-text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.gb-category-nav__more:hover,
.gb-category-nav__more:focus-visible { background: var(--gb-color-surface-muted); }

.gb-catalog__pagination {
  margin-top: 1.5rem;
}

.gb-catalog-error {
  text-align: center;
  padding: 3rem 1rem;
}

/* ── PDP — parity with getbookie2026 ProductDetailPage (flex, not CSS Grid) ── */
.gb-pdp__wrap {
  position: relative;
}

.gb-pdp__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: flex-start;
}

.gb-pdp__gallery {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
}

.gb-pdp__info {
  flex: 1 1 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .gb-pdp__layout {
    margin-top: 0.75rem;
    gap: 1.5rem;
  }

  .gb-pdp__gallery {
    flex: 1 1 48%;
    max-width: 540px;
  }

  .gb-pdp__info {
    flex: 1 1 42%;
    max-width: 420px;
  }
}

/* Gallery chrome lives in GDS `.gb-image-gallery` (getbookie.css + gds-ui.js) */

/* Code chip */
.gb-pdp__code-chip {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--gb-color-primary, #8ee800) 35%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--gb-color-primary, #8ee800) 5%, #fff);
}

.gb-pdp__code-chip-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: #000;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.gb-pdp__code-chip-value {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-left: 1px solid color-mix(in srgb, var(--gb-color-primary, #8ee800) 25%, transparent);
  color: var(--gb-color-primary-text, #3f7f00);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
}

.gb-pdp__code-chip-value span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ribbons */
.gb-pdp__ribbons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.gb-pdp__ribbon--clearance {
  width: 118px;
  height: auto;
  user-select: none;
}

.gb-pdp__ribbon--new {
  width: 132px;
  height: auto;
  user-select: none;
}

@media (min-width: 768px) {
  .gb-pdp__ribbon--clearance { width: 138px; }
  .gb-pdp__ribbon--new { width: 154px; }
}

/* Title */
.gb-pdp__title {
  margin: 0;
  color: #000;
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .gb-pdp__title {
    font-size: 2rem;
    line-height: 1;
  }
}

/* Pricing */
.gb-pdp__pricing {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .gb-pdp__pricing { margin-top: 1.25rem; }
}

.gb-pdp__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.gb-pdp__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
  margin-top: 0.5rem;
}

.gb-pdp__price {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

@media (min-width: 768px) {
  .gb-pdp__price { font-size: 1.875rem; }
}

.gb-pdp__discount-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.gb-pdp__list-price {
  color: #e53935;
  font-size: 1.25rem;
  text-decoration: line-through;
}

@media (min-width: 768px) {
  .gb-pdp__list-price { font-size: 1.5rem; }
}

/* Actions */
.gb-pdp__actions--desktop {
  display: none;
  margin-top: 1.25rem;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gb-pdp__actions--desktop {
    display: flex;
  }

  .gb-pdp__actions--desktop > [data-gb-button] {
    min-width: 0;
    flex: 1 1 0;
  }
}

/* Facts strip */
.gb-pdp__facts {
  display: flex;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gb-color-primary, #8ee800) 10%, #fff);
  color: var(--gb-color-primary-text, #3f7f00);
}

.gb-pdp__fact {
  display: flex;
  min-width: 0;
  flex: 1 1 0;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem;
}

.gb-pdp__fact--mid {
  border-left: 1px solid color-mix(in srgb, var(--gb-color-primary, #8ee800) 25%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--gb-color-primary, #8ee800) 25%, transparent);
}

.gb-pdp__fact-label {
  font-size: 0.75rem;
  font-weight: 500;
}

.gb-pdp__fact-value {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}

/* Detail rows */
.gb-pdp__rows {
  max-width: 420px;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .gb-pdp__rows { margin-top: 2rem; }
}

.gb-pdp__row {
  display: flex;
  min-height: 40px;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border, #eee8e8);
  font-size: 0.875rem;
}

.gb-pdp__row-label {
  flex: 0 0 40%;
  padding-top: 0.25rem;
  font-weight: 600;
}

.gb-pdp__row-value {
  flex: 1 1 0;
  min-width: 0;
}

.gb-pdp__detail {
  padding-top: 0.5rem;
}

.gb-pdp__detail-title {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.gb-pdp__detail-body {
  color: #666;
  line-height: 1.75;
  white-space: pre-line;
}

/* Related */
.gb-pdp__related {
  margin-top: 1.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .gb-pdp__related { margin-top: 1.75rem; }
}

.gb-pdp__related-title {
  margin: 0 0 1rem;
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.25rem;
  font-weight: 600;
}

.gb-product-grid--pdp-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gb-product-grid--pdp-related > * {
  flex: 0 0 calc((100% - 0.75rem) / 2);
  max-width: calc((100% - 0.75rem) / 2);
  min-width: 0;
}

@media (min-width: 640px) {
  .gb-product-grid--pdp-related > * {
    flex-basis: calc((100% - 1.5rem) / 3);
    max-width: calc((100% - 1.5rem) / 3);
  }
}

@media (min-width: 768px) {
  .gb-product-grid--pdp-related > * {
    flex-basis: calc((100% - 2.25rem) / 4);
    max-width: calc((100% - 2.25rem) / 4);
  }
}

/* Help landing — search hero, highlighted topics and FAQ. */
.gb-help {
  padding-bottom: 3rem;
}

.gb-help__inner {
  display: flex;
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  flex-direction: column;
  gap: 3rem;
}

.gb-help__default-content:empty {
  display: none;
}

.gb-help__default-content {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.gb-help-search-results {
  width: 100%;
}

.gb-help-search-results__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.gb-help-search-results__row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  color: var(--gb-color-text);
  text-decoration: none;
  transition:
    background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
    color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.gb-help-search-results__row:hover,
.gb-help-search-results__row:focus-visible {
  background: color-mix(in srgb, var(--md-sys-color-surface-container-lowest) 68%, transparent);
}

.gb-help-search-results__media {
  width: 10rem;
  aspect-ratio: 16 / 9;
  flex: 0 0 10rem;
  overflow: hidden;
  border-radius: 8px;
  background: var(--md-sys-color-surface-container);
}

.gb-help-search-results__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-help-search-results__copy {
  min-width: 0;
  flex: 1;
}

.gb-help-search-results__copy h3 {
  margin: 0;
  color: var(--gb-color-text);
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.gb-help-search-results__copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.5rem 0 0;
  color: var(--gb-color-text-subtle);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gb-help-search-results__copy span {
  display: inline-block;
  margin-top: 0.625rem;
  color: var(--gb-color-primary-text);
  font-weight: 600;
}

.gb-help__highlights {
  margin-top: calc(0px - var(--space-8));
}

.gb-help-faq {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gb-help-faq__title {
  margin: 0;
  color: var(--gb-color-secondary);
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  text-align: center;
}

.gb-help-faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.gb-help-faq__item {
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.gb-help-faq__question {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--gb-color-text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
}

.gb-help-faq__question::-webkit-details-marker {
  display: none;
}

.gb-help-faq__question:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--gb-color-primary-text);
  outline-offset: 4px;
}

.gb-help-faq__toggle {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  color: var(--gb-color-primary-text);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 150ms ease;
}

.gb-help-faq__item[open] .gb-help-faq__toggle {
  transform: rotate(45deg);
}

.gb-help-faq__answer {
  max-width: 48rem;
  padding: 0 3rem 1.5rem 0;
  color: var(--gb-color-text-subtle);
  line-height: 1.75;
}

.gb-help-faq__answer p {
  margin: 0;
  white-space: pre-line;
}

.gb-help-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gb-help-content__header {
  text-align: center;
}

.gb-help-content__header h2 {
  margin: 0;
  color: var(--gb-color-secondary);
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.gb-help-content__header p {
  margin: 0.5rem 0 0;
  color: var(--gb-color-text-subtle);
}

.gb-help-content__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gb-help-content__cards > [data-gb-help-card] {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .gb-help-content__cards > [data-gb-help-card] {
    flex-basis: calc((100% - 1.5rem) / 2);
    max-width: calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 768px) {
  .gb-help-content__cards > [data-gb-help-card] {
    flex-basis: calc((100% - 3rem) / 3);
    max-width: calc((100% - 3rem) / 3);
  }
}

.gb-help__empty {
  padding: 3rem 1.5rem;
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: 8px;
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--gb-color-text-subtle);
  font-size: 1rem;
  text-align: center;
}

@media (max-width: 599px) {
  .gb-help-faq__answer {
    padding-right: 0;
  }

  .gb-help-search-results__row {
    align-items: flex-start;
    gap: 0.875rem;
  }

  .gb-help-search-results__media {
    width: 7rem;
    flex-basis: 7rem;
  }

  .gb-help-search-results__copy h3 {
    font-size: 1rem;
  }

  .gb-help-search-results__copy p {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }

  .gb-help-search-results__copy span {
    margin-top: 0.375rem;
    font-size: 0.875rem;
  }
}

/* Help documentation layout — persistent topic navigation + centered reading column. */
.gb-help-docs {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}

.gb-help-docs__sidebar {
  width: 15rem;
  flex: 0 0 15rem;
}

.gb-help-docs__sidebar-inner {
  position: sticky;
  top: 7rem;
  max-height: calc(100dvh - 8.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5rem 0;
}

.gb-help-docs__nav-title {
  margin: 0 0 0.75rem;
  color: var(--gb-color-text);
  font-family: var(--md-ref-typeface-brand);
  font-size: 1rem;
  font-weight: 600;
}

.gb-help-docs__nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 0.125rem;
  list-style: none;
}

.gb-help-docs__nav-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--gb-color-text-subtle);
  font-size: 0.9375rem;
  line-height: 1.45;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.gb-help-docs__nav-link:hover {
  background: var(--md-sys-color-surface-container-low);
  color: var(--gb-color-text);
}

.gb-help-docs__nav-link[aria-current="page"] {
  border-left-color: var(--gb-color-primary);
  background: color-mix(in srgb, var(--gb-color-primary) 10%, transparent);
  color: var(--gb-color-primary-text);
  font-weight: 600;
}

.gb-help-docs__nav-link:focus-visible {
  outline: 2px solid var(--gb-color-primary-text);
  outline-offset: 2px;
}

.gb-help-docs__main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.gb-help-docs__content {
  width: 100%;
  max-width: 48rem;
  min-width: 0;
}

.gb-help-detail__header {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border, #eee8e8);
}

.gb-help-detail__header h1 {
  margin: 0 0 var(--space-4);
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(var(--gb-type-heading-1-size), 4vw, 2.25rem);
  font-weight: 600;
  line-height: var(--gb-type-heading-1-line-height);
}
@media (min-width: 768px) {
  .gb-help-detail__header h1 {
    font-size: var(--gb-type-heading-1-size);
    line-height: var(--gb-type-heading-1-line-height);
  }
}

.gb-help-detail__dek {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--gb-type-body-lg-size);
  line-height: var(--gb-type-body-lg-line-height);
}

@media (max-width: 900px) {
  .gb-help-docs {
    flex-direction: column;
    gap: 1.5rem;
  }

  .gb-help-docs__sidebar {
    width: 100%;
    flex-basis: auto;
    border-bottom: 1px solid var(--color-border, #eee8e8);
  }

  .gb-help-docs__sidebar-inner {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 1rem 0;
  }

  .gb-help-docs__nav-list {
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .gb-help-docs__nav-list li {
    flex: 0 0 auto;
  }

  .gb-help-docs__nav-link {
    padding: 0.625rem 0.75rem;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    white-space: nowrap;
  }

  .gb-help-docs__nav-link[aria-current="page"] {
    border-bottom-color: var(--gb-color-primary);
  }
}

/* .gb-markdown type scale lives in the shared GetBookie UI stylesheet. Do not redeclare sizes here. */

/* Cart sidebar — slides in from the right (getbookie2026 Sheet side=right) */
.gb-cart-sidebar[hidden] {
  display: none !important;
}

.gb-cart-sidebar {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.gb-cart-sidebar__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #000 45%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.gb-cart-sidebar.is-open .gb-cart-sidebar__backdrop {
  opacity: 1;
}

.gb-cart-sidebar:not(.is-open) .gb-cart-sidebar__backdrop {
  transition-duration: 0.2s;
  transition-timing-function: ease-in;
}

.gb-cart-sidebar__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(440px, 100%);
  height: 100%;
  flex-direction: column;
  background: var(--gb-color-surface);
  box-shadow: -8px 0 24px color-mix(in srgb, #000 12%, transparent);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.gb-cart-sidebar.is-open .gb-cart-sidebar__panel {
  transform: translate3d(0, 0, 0);
}

.gb-cart-sidebar:not(.is-open) .gb-cart-sidebar__panel {
  transition-duration: 0.2s;
  transition-timing-function: ease-in;
}

@media (prefers-reduced-motion: reduce) {
  .gb-cart-sidebar__backdrop,
  .gb-cart-sidebar__panel {
    transition: none;
  }
}

.gb-cart-sidebar__header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gb-color-gray-light);
}

/* Order summary drawer — getbookie2026 OrderSummaryDrawer: lime, rounded-t-16 */
.gb-cart-sidebar__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0;
  background: var(--gb-color-primary, #8ee800);
  color: var(--color-text, #000);
}

.gb-cart-sidebar__summary-title {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
}

.gb-cart-sidebar__heading { min-width: 0; flex: 1; }
.gb-cart-sidebar__heading h2 { margin: 0; font-family: var(--gb-font-brand); font-size: 1.375rem; font-weight: 600; }
.gb-cart-sidebar__heading p { margin: 2px 0 0; color: var(--gb-color-text-subtle); font-size: 0.875rem; }
/*
 * Header actions — same outer height (40px) for orders chip + close.
 * Designed close SVG is already 40×40 with chrome; render full size so it matches.
 */
.gb-cart-sidebar__header-actions {
  --gb-cart-header-action-h: 40px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.gb-cart-sidebar__close {
  box-sizing: border-box;
  display: inline-grid;
  width: var(--gb-cart-header-action-h);
  height: var(--gb-cart-header-action-h);
  min-width: var(--gb-cart-header-action-h);
  min-height: var(--gb-cart-header-action-h);
  max-width: var(--gb-cart-header-action-h);
  max-height: var(--gb-cart-header-action-h);
  flex: 0 0 var(--gb-cart-header-action-h);
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}
.gb-cart-sidebar__close:hover {
  background: var(--gb-color-card-hover, #f5f7f1);
}
.gb-cart-sidebar__close-icon {
  display: block;
  width: var(--gb-cart-header-action-h);
  height: var(--gb-cart-header-action-h);
  object-fit: contain;
}

.gb-cart-sidebar__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
}

.gb-cart-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Cart line card — parity with getbookie2026 CartSidebarItem + ProductCardHorizontalSmall compact/mini */
.gb-cart-sidebar__item {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--gb-color-gray-light);
  border-radius: 8px;
  background: var(--gb-color-surface);
}

/* getbookie2026 maps success border to primary lime for selected cart cards */
.gb-cart-sidebar__item.is-selected { border-color: var(--gb-color-primary, #8ee800); }
/* Dim what the shopper can no longer act on, never the way out: opacity on the
   row would cap the "สินค้าใกล้เคียง" button too and make it read as disabled. */
.gb-cart-sidebar__item.is-unavailable { background: var(--gb-color-surface-muted); }
.gb-cart-sidebar__item.is-unavailable .gb-cart-sidebar__item-image,
.gb-cart-sidebar__item.is-unavailable .gb-cart-sidebar__item-meta,
.gb-cart-sidebar__item.is-unavailable .gb-cart-sidebar__item-title { opacity: 0.55; }

/*
 * GDS checkbox sits on the card corner (absolute, like CheckBoxInput in getbookie2026).
 * Two-class selector beats later-loaded `.gb-choice { position: relative }` from base/getbookie.css
 * (Nuxt injects the GDS layer after this public catalog.css link).
 */
.gb-choice.gb-cart-sidebar__item-check {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 10;
}

.gb-cart-sidebar__product {
  display: flex;
  min-width: 0;
  align-items: stretch;
  gap: 8px;
  overflow: hidden;
}

/* Full-height image slot — compact 120px / mini 88px (getbookie2026 ProductCardHorizontalSmall). */
.gb-cart-sidebar__item-image {
  position: relative;
  display: block;
  width: 120px;
  min-height: 120px;
  flex: 0 0 120px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 8px;
  background: #e4e4e4;
  text-decoration: none;
}
.gb-cart-sidebar__item--mini .gb-cart-sidebar__item-image {
  width: 88px;
  min-height: 88px;
  flex: 0 0 88px;
}
.gb-cart-sidebar__item-image img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  border-radius: 8px;
  background: #e4e4e4;
}
.gb-cart-sidebar__similar {
  align-self: flex-start;
  margin-top: auto;
}
.gb-cart-sidebar__item-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 8px 40px 8px 0;
}
.gb-cart-sidebar__item-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gb-color-text);
  font-family: var(--gb-font-brand);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.25rem;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.gb-cart-sidebar__item-meta {
  overflow: hidden;
  color: var(--gb-color-text-subtle);
  font-size: 0.75rem;
  font-weight: 300;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gb-cart-sidebar__item-price {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
}
.gb-cart-sidebar__item-list-price {
  color: var(--gb-color-danger);
  font-size: 0.75rem;
  text-decoration: line-through;
}
.gb-cart-sidebar__item-price strong {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5rem;
}

/* Designed trash asset (icon-trash-border-color.svg) — not Lucide. */
.gb-cart-sidebar__remove {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 20;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.gb-cart-sidebar__remove:hover {
  background: color-mix(in srgb, var(--gb-color-danger-soft) 70%, transparent);
}
.gb-cart-sidebar__remove-icon {
  display: block;
  width: 32px;
  height: 32px;
}

.gb-cart-sidebar__selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.gb-cart-sidebar__select-all {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gb-cart-sidebar__select-all-checkbox > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.gb-cart-sidebar__unavailable {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gb-color-gray-light);
}
.gb-cart-sidebar__unavailable-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gb-cart-sidebar__unavailable-head > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.gb-cart-sidebar__unavailable-head > div > span { color: var(--gb-color-text-subtle); font-size: 0.875rem; }
.gb-cart-sidebar__clear-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.gb-cart-sidebar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

.gb-cart-sidebar__row--total {
  margin-top: 0;
  font-size: 1.5rem; /* 24px — getbookie2026 text-[24px] */
}
.gb-cart-sidebar__row--total span,
.gb-cart-sidebar__row--total strong {
  font-weight: 600;
}

.gb-cart-sidebar__summary {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
}
.gb-cart-sidebar__row--discount[hidden],
.gb-cart-sidebar__row--after-discount[hidden] {
  display: none !important;
}
.gb-cart-sidebar__shipping-note {
  width: 100%;
  margin: -4px 0 0;
  color: var(--gb-color-text, #000);
  font-size: 0.75rem;
  font-weight: 300;
  text-align: center;
}
/* Empty cart layout; visual content is owned by GbEmptyState. */
.gb-cart-sidebar__empty { display: flex; min-height: 360px; align-items: center; justify-content: center; }

/* `display: flex` on empty/list/footer beats the UA `[hidden]` rule — force hide. */
.gb-cart-sidebar__empty[hidden],
.gb-cart-sidebar__selection[hidden],
.gb-cart-sidebar__list[hidden],
.gb-cart-sidebar__unavailable[hidden],
.gb-cart-sidebar__clear-wrap[hidden],
.gb-cart-sidebar__footer[hidden] {
  display: none !important;
}

/* Checkout — parity with getbookie2026 CheckoutPage + OrderSummaryDrawer */
.gb-checkout {
  padding-bottom: 32px;
}

.gb-checkout__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 280px;
}

.gb-checkout__main {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Login first (getbookie2026 yellow banner) */
.gb-checkout__login-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 16px;
  border-radius: 8px;
  background: #fefce8; /* yellow-50 */
  color: var(--gb-color-text, #1a1a1a);
  text-align: center;
}

.gb-checkout__login-notice-title {
  margin: 0 0 8px;
  font-weight: 500;
}

.gb-checkout__title {
  margin: 8px 0 0;
  color: var(--gb-color-text);
  text-align: center;
}

.gb-checkout__empty-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 32px 0;
  color: #9ca3af;
  text-align: center;
}

.gb-checkout__empty-center-text {
  margin: 0;
}

.gb-checkout__options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gb-checkout__empty-center[hidden],
.gb-checkout__options[hidden],
[data-gb-checkout-selection-content][hidden] {
  display: none !important;
}

.gb-checkout__section {
  margin: 0;
}

.gb-checkout__section > .gb-checkout__section-title {
  margin: 0 0 16px;
  color: var(--gb-color-text);
  font-weight: 600;
}

.gb-checkout__section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gb-checkout__section-heading {
  justify-content: space-between;
  margin-bottom: 16px;
}

.gb-checkout__section-heading .gb-checkout__section-title {
  margin-bottom: 0;
}

/* Address editor stack (dialog + checkout): even vertical rhythm between fields. */
.gb-address-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.gb-address-form [data-gb-address-structured]:not([hidden]),
.gb-address-form [data-gb-address-custom]:not([hidden]),
.gb-address-form__location {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.gb-checkout__payment-email {
  margin-top: 12px;
}

.gb-checkout__receipt-custom {
  margin-top: var(--space-3);
}

.gb-checkout__receipt-tax {
  margin-top: var(--space-3);
}

.gb-checkout__empty-option {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
}

.gb-checkout__surface,
.gb-checkout__address-choice {
  display: block;
  padding: 16px;
  border: 1px solid var(--gb-color-gray-light, #e5e5e5);
  border-radius: 16px;
  background: var(--md-sys-color-surface, #fff);
}

.gb-checkout__address-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--gb-color-text);
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.gb-checkout__address-choice:hover,
.gb-checkout__address-choice:focus-visible {
  border-color: var(--gb-color-primary);
  background: var(--gb-color-card-hover, #f7f7f7);
  outline: 0;
}

.gb-checkout__address-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gb-checkout__address-copy strong { font-weight: 500; }
.gb-checkout__address-copy span {
  color: var(--gb-color-text-subtle, #6b7280);
  font-size: 0.875rem;
  line-height: 1.5;
}
.gb-checkout__chevron {
  color: var(--gb-color-text-subtle, #6b7280);
  font-size: 2rem;
  line-height: 1;
}

.gb-checkout__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gb-checkout__section[data-gb-checkout-products] .gb-checkout__surface {
  padding: 8px 12px;
}

.gb-checkout__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gb-color-gray-light, #e5e5e5);
}

.gb-checkout__item:first-child { padding-top: 0; }
.gb-checkout__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.gb-checkout__item-image {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  overflow: hidden;
  border-radius: 8px;
  background: #e4e4e4;
}
.gb-checkout__item-image img { width: 100%; height: 100%; object-fit: contain; }
.gb-checkout__item-copy { min-width: 0; flex: 1; }
.gb-checkout__item-code {
  margin: 0;
  overflow: hidden;
  color: var(--gb-color-text-subtle, #6b7280);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gb-checkout__item-name {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--gb-color-text);
  font-weight: 500;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.gb-checkout__item-price {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.gb-checkout__item-list-price {
  margin: 0;
  color: var(--gb-color-text-subtle, #6b7280);
  font-weight: 400;
  text-decoration: line-through;
}
.gb-checkout__item-sale-price {
  margin: 0;
  color: var(--gb-color-primary-text, #3f7f00);
  font-weight: 600;
}
.gb-checkout__item-remove {
  flex: 0 0 auto;
  opacity: 0;
  pointer-events: none;
}
.gb-checkout__item:hover .gb-checkout__item-remove,
.gb-checkout__item:focus-within .gb-checkout__item-remove {
  opacity: 1;
  pointer-events: auto;
}
@media (hover: none) {
  .gb-checkout__item-remove {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Order summary (lime primary drawer) */
.gb-checkout__summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--gb-color-primary, #8ee800);
  color: var(--gb-color-text, #1a1a1a);
}

.gb-checkout__summary-heading {
  width: 100%;
  margin: 0;
  font-weight: 500;
  text-align: center;
}

.gb-checkout__summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gb-checkout__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.gb-checkout__summary-row--total {
  font-weight: 600;
}

.gb-checkout__summary-row--total span:first-child {
  font-weight: 600;
}

.gb-checkout__terms {
  margin: 0;
  color: var(--gb-color-text);
  text-align: center;
}

.gb-checkout__terms-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.gb-checkout__terms-link:hover {
  opacity: 0.85;
}

.gb-checkout__submit-hint {
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--md-sys-color-error, #ba1a1a);
  text-align: center;
}

.gb-checkout__submit-hint[hidden] {
  display: none !important;
}

/* Read before order (inline notice) */
.gb-checkout__read-before {
  margin-top: 16px;
  padding: 16px 0;
  color: var(--md-sys-color-error, #ba1a1a);
}

.gb-checkout__read-before-title {
  margin: 0 0 16px;
  color: var(--md-sys-color-error, #ba1a1a);
  text-align: center;
}

.gb-checkout__read-before-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gb-checkout__read-before-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--gb-color-gray-light, #e5e5e5);
  border-radius: 8px;
}

.gb-checkout__read-before-list {
  margin: 0;
  padding: 0 0 0 1.5rem;
  color: var(--md-sys-color-error, #ba1a1a);
}

.gb-checkout__read-before-list li {
  padding-bottom: 12px;
}

.gb-checkout__read-before-list li:last-child {
  padding-bottom: 0;
}

/* Desktop sticky summary; hide mobile twin */
.gb-checkout__summary--desktop {
  flex: 0 0 360px;
  position: sticky;
  top: 104px;
  align-self: flex-start;
}

.gb-checkout__summary--mobile {
  display: none;
}

@media (max-width: 1023px) {
  .gb-checkout__layout {
    padding-bottom: 280px;
  }

  .gb-checkout__summary--desktop {
    display: none;
  }

  .gb-checkout__summary--mobile {
    display: flex;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    max-height: min(320px, 50dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px color-mix(in srgb, #000 12%, transparent);
  }
}

@media (min-width: 1024px) {
  .gb-checkout__layout {
    padding-bottom: 32px;
  }

}

.gb-member__section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 12px;
}

.gb-member__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gb-member__muted {
  color: #777;
}

.gb-member__auth-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 1.5rem;
}

/* Auth — getbookie2026 LoginPage parity */
.gb-auth {
  width: 100%;
}

.gb-auth__frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 360px;
  min-height: calc(100vh - 72px);
  margin-inline: auto;
  padding-bottom: 2rem;
  overflow-x: clip;
}

.gb-auth__frame--recovery-success {
  max-width: 520px;
  overflow: visible;
}

.gb-auth__top {
  padding-top: 48px;
}

.gb-auth__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gb-auth__logo-visual {
  display: block;
  height: 96px;
  width: auto;
}

.gb-auth__logo-text {
  display: block;
  height: 74px;
  width: auto;
  margin-top: -4px;
}

.gb-auth__title {
  margin: 2rem 0 1.5rem;
  color: var(--color-text, #1a1a1a);
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

/* Auth method ↔ email: one-viewport track, slide + soft fade.
   Each panel is exactly 100% of the viewport; track shifts by -100%.
   Avoid width:200% + translate(-50%) — flex min-content can blow panel width
   and make the slide look offset / partial.
   Motion matches GDS gallery: gentle ease-out, no hard ease-out snap. */
.gb-auth__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  /* Height set inline by JS to active panel — smooth expand/collapse with slide */
  transition: height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.gb-auth__panels {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.gb-auth__panels.is-email {
  transform: translate3d(-100%, 0, 0);
}

.gb-auth__panels.is-animating {
  pointer-events: none;
}

.gb-auth__panel {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* Prevent wide form/button min-content from stretching the slide */
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Soft crossfade: leaving panel fades early, entering stays readable mid-slide */
.gb-auth__panels.is-email .gb-auth__panel--methods,
.gb-auth__panels:not(.is-email) .gb-auth__panel--email {
  opacity: 0;
}

.gb-auth__panel--methods {
  padding-right: 0;
}

.gb-auth__panel--email {
  padding-left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .gb-auth__viewport,
  .gb-auth__panels,
  .gb-auth__panel {
    transition: none;
  }
}

.gb-auth__stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gb-auth__method-btn {
  display: flex !important;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0 1rem !important;
  border-radius: 8px !important;
  font-family: var(--md-ref-typeface-brand);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.gb-auth__method-icon {
  display: inline-flex;
  width: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: flex-start;
}

.gb-auth__method-icon .gb-icon {
  width: 24px;
  height: 24px;
}

.gb-auth__method-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.gb-auth__method-label {
  flex: 1 1 auto;
  text-align: center;
}

.gb-auth__method-label--solo {
  width: 100%;
}

.gb-auth__method-spacer {
  width: 28px;
  flex: 0 0 28px;
}

.gb-auth__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gb-auth__field {
  display: flex;
  width: 100%;
  margin: 0;
  flex-direction: column;
  gap: 0.35rem;
}

.gb-auth__field-label {
  display: block;
  width: 100%;
  margin: 0;
}

.gb-auth__input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 1rem;
  border: 1px solid #e8e0d8;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: #1e2618;
  font-family: var(--md-ref-typeface-plain);
  font-size: 1rem;
  line-height: 1.25;
}

.gb-auth__input::placeholder {
  color: #8f867d;
}

.gb-auth__input:focus,
.gb-auth__input:focus-visible {
  border-color: var(--gb-color-primary-text, #3f7f00);
  outline: none;
  box-shadow: none;
}

.gb-auth__field[data-state="error"] .gb-auth__input,
.gb-auth__input[aria-invalid="true"] {
  border-color: var(--md-sys-color-error, #ba1a1a);
}

.gb-auth__field-error {
  margin: 0;
  color: var(--md-sys-color-error, #ba1a1a);
  font-family: var(--md-ref-typeface-brand);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.gb-auth__terms[data-state="error"] {
  outline: 1px solid color-mix(in srgb, var(--md-sys-color-error, #ba1a1a) 45%, transparent);
  outline-offset: 4px;
  border-radius: 8px;
}

.gb-auth__terms .gb-auth__field-error {
  flex: 1 1 100%;
  width: 100%;
}

.gb-auth__forgot {
  align-self: flex-end;
  color: var(--gb-color-primary-text, #3f7f00);
  font-family: var(--md-ref-typeface-brand);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.gb-auth__forgot:hover {
  color: var(--color-text, #1a1a1a);
}

.gb-auth__submit {
  width: 100%;
  min-height: 54px !important;
  margin-top: 0.5rem;
  border-radius: 10px !important;
  font-family: var(--md-ref-typeface-brand);
  font-size: 1rem;
  font-weight: 600;
}

.gb-auth__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.gb-auth__or-line {
  flex: 1 1 auto;
  height: 1px;
  background: #e5ddd5;
}

.gb-auth__or-text {
  flex: 0 0 auto;
  color: #b5aea6;
  font-family: var(--md-ref-typeface-brand);
  font-size: 1rem;
}

.gb-auth__legal-wrap {
  padding-top: 0.5rem;
}

.gb-auth__legal {
  margin: 0;
  padding: 0 0.5rem;
  color: #d0c6bd;
  font-family: var(--md-ref-typeface-brand);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.gb-auth__legal a {
  color: #39402f;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 2px;
}

.gb-auth__legal a:hover {
  text-decoration: underline;
}

.gb-auth__social-notice:not([hidden]) {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #ffe0a3;
  border-radius: 8px;
  background: #fff8e6;
  color: #6b4e00;
  font-size: 0.9rem;
}

.gb-auth__card {
  max-width: 420px;
  margin: 1rem auto;
  padding: 1.25rem;
  border: 1px solid #eee;
  border-radius: 12px;
}

/* Register — getbookie2026 RegisterPage */
.gb-auth__title--register {
  margin: 0 0 1.5rem;
  text-align: left;
}

.gb-auth__form--register {
  gap: 1.25rem;
}

.gb-auth__field-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gb-auth__terms {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 0.75rem;
}

.gb-auth__terms-check {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--gb-color-primary, #8ee800);
  cursor: pointer;
}

.gb-auth__terms-label {
  min-width: 0;
  flex: 1 1 auto;
  color: #39402f;
  font-family: var(--md-ref-typeface-brand);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}

.gb-auth__terms-link {
  color: var(--gb-color-primary-text, #3f7f00);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 2px;
}

.gb-auth__terms-link:hover {
  text-decoration: underline;
}

.gb-auth__form--register .gb-auth__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .gb-catalog__sidebar {
    flex-basis: 100%;
  }

  .gb-product-grid--recommend > *,
  .gb-product-grid--catalog > * {
    max-width: calc((100% - 0.75rem) / 2);
    flex-basis: calc((100% - 0.75rem) / 2);
  }
}

@media (max-width: 599px) {
  .gb-category-nav__list > li {
    flex: 0 0 calc(50% - 0.25rem);
    max-width: calc(50% - 0.25rem);
    min-width: 0;
  }

  .gb-category-nav__link {
    width: 100%;
  }

  .gb-category-nav__item--extra { display: none; }
  .gb-category-nav.is-expanded .gb-category-nav__item--extra { display: block; }
}

@media (min-width: 600px) {
  .gb-category-nav__list > li {
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 0;
  }

  .gb-category-nav__link { min-height: 2.5rem; justify-content: center; padding-inline: 1rem; }
  .gb-category-nav__more { display: none; }
}

@media (min-width: 1280px) {
  .gb-catalog__sidebar { display: block; }
  .gb-catalog__filter-open { display: none; }
  /*
   * On desktop the result bar only held the (now hidden) mobile filter button.
   * Its leftover margin pushed WebTags below the filter sidebar top edge.
   */
  .gb-catalog__result-bar { display: none; }
}

@media (max-width: 1279px) {
  .gb-catalog__sidebar { display: none; }
}

.gb-member__signed-out {
  padding: 1rem;
  border-radius: 10px;
  background: #fff8e6;
  border: 1px solid #ffe0a3;
}

.gb-member__hint {
  font-size: 0.875rem;
  color: #8f867d;
  margin: 0.35rem 0 0;
}

.gb-member__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Bank list styles moved to the design system: .gb-payment-accounts /
   .gb-copy-field in src/libs/controller/gds/assets/styles/getbookie.css. */

.gb-order-payment__icons img {
  max-width: 100%;
  height: auto;
  margin-top: 0.5rem;
}

.gb-auth__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.gb-auth__links a {
  color: #5c5c5c;
}

/* Legacy flash classes — prefer GDS .gb-form-message (data-gb-form-message). */
.gb-member__flash {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.gb-member__flash--ok {
  background: #eef8d4;
  border: 1px solid #b7e07a;
  color: #2f4a00;
}
.gb-member__flash--err {
  background: #fdecea;
  border: 1px solid #ef9a9a;
  color: #8b1c1c;
}

/* Checkout: centered manage-address action below the address radio list. */
.gb-checkout__address-manage {
  display: flex;
  justify-content: center;
  margin-top: var(--space-3);
}

/* Legal / policy pages (privacy, terms, cookie).
   Document pages also use .gb-container — do not set padding-block on the
   shared element or it overrides container top inset and pins breadcrumbs. */
.gb-legal:not(.gb-legal--document) {
  padding-block: 1rem 3rem;
}

.gb-legal__article {
  max-width: 48rem;
  margin-inline: auto;
}

.gb-legal__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.gb-legal__title {
  margin: 0 0 0.75rem;
  font-family: var(--md-ref-typeface-brand);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 500;
  color: #1e2618;
}

.gb-legal__subtitle,
.gb-legal__lead {
  margin: 0 0 1.25rem;
  color: #8f867d;
  font-size: 0.95rem;
  line-height: 1.6;
}

.gb-legal__section {
  margin-top: 1.75rem;
}

.gb-legal__section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--md-ref-typeface-brand);
  font-size: 1.15rem;
  font-weight: 500;
  color: #1e2618;
}

.gb-legal__section h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e2618;
}

.gb-legal__section p,
.gb-legal__section li {
  margin: 0.35rem 0 0;
  line-height: 1.65;
  color: #2a3224;
}

.gb-legal__section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.gb-legal__section a {
  color: #39402f;
  font-weight: 500;
  text-underline-offset: 2px;
}

.gb-legal__note {
  color: var(--md-sys-color-on-surface-variant) !important;
  font-size: var(--gb-type-small-size);
}

.gb-legal__updated {
  margin-top: 1rem !important;
  color: #8f867d !important;
  font-size: 0.875rem;
}

.gb-legal__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.gb-legal__contacts > div {
  flex: 1 1 14rem;
  min-width: 0;
}

.gb-legal__contact-title {
  font-weight: 600;
  margin-bottom: 0.35rem !important;
}

.gb-legal__cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.gb-legal__card {
  padding: var(--space-5);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-lowest);
}

.gb-legal__card p {
  margin-top: var(--space-2) !important;
  color: var(--md-sys-color-on-surface-variant) !important;
}

/* Legal documents — shared navigation + focused reading measure.
   Top inset comes from .gb-container + GDS .gb-breadcrumbs only (no page override).
   Hero gap after breadcrumbs matches the shared .gb-page-hero. */
.gb-legal--document {
  padding-bottom: var(--space-12);
}

.gb-legal__document-header {
  max-width: 64rem;
  margin: 1.5rem auto 0;
  padding: var(--space-10) var(--space-8);
  border-radius: var(--md-sys-shape-corner-large);
  background: var(--md-sys-color-surface-container-low);
  text-align: center;
}

.gb-legal__document-header .gb-legal__title {
  margin-bottom: var(--space-3);
  color: var(--md-sys-color-on-surface);
  font-size: clamp(var(--gb-type-heading-1-size), 4vw, 2.25rem);
  font-weight: 600;
}

.gb-legal__document-header .gb-legal__lead {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--gb-type-small-size);
  line-height: var(--gb-type-small-line-height);
}

.gb-legal__document-kicker {
  margin: 0 0 var(--space-2);
  color: var(--gb-color-primary-text);
  font-size: var(--gb-type-small-size);
  font-weight: 600;
}

.gb-legal__document-layout {
  display: flex;
  max-width: 64rem;
  margin: var(--space-10) auto 0;
  align-items: flex-start;
  gap: var(--space-12);
}

.gb-legal__document-nav {
  position: sticky;
  top: 7rem;
  width: 14rem;
  max-height: calc(100dvh - 8rem);
  flex: 0 0 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: var(--space-2);
}

.gb-legal__document-nav-title {
  margin: 0 0 var(--space-3);
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-ref-typeface-brand);
  font-size: var(--gb-type-body-size);
  font-weight: 500;
}

.gb-legal__document-nav ol {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: var(--space-1);
  counter-reset: document-nav;
  list-style: none;
}

.gb-legal__document-nav li {
  counter-increment: document-nav;
}

.gb-legal__document-nav a {
  display: flex;
  min-height: var(--space-12);
  padding: var(--space-2) var(--space-3);
  align-items: center;
  gap: var(--space-2);
  border-left: 2px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--gb-type-small-size);
  line-height: var(--gb-type-small-line-height);
  text-decoration: none;
  transition:
    border-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
    background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
    color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.gb-legal__document-nav a::before {
  content: counter(document-nav, decimal-leading-zero);
  color: var(--gb-color-primary-text);
  font-size: var(--gb-type-caption-size);
  font-weight: 600;
}

.gb-legal__document-nav a:hover {
  border-left-color: var(--gb-color-primary);
  background: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
}

.gb-legal__document-nav a:focus-visible {
  outline: 2px solid var(--gb-color-primary-text);
  outline-offset: 2px;
}

.gb-legal__document-article {
  max-width: 46rem;
  margin: 0;
  flex: 1 1 auto;
}

.gb-legal__document-section {
  margin-top: 0;
  padding: 0 0 var(--space-10);
  scroll-margin-top: 7rem;
}

.gb-legal__document-section + .gb-legal__document-section {
  padding-top: var(--space-10);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.gb-legal__document-section-header {
  display: flex;
  margin-bottom: var(--space-4);
  align-items: baseline;
  gap: var(--space-3);
}

.gb-legal__document-section-header span {
  color: var(--gb-color-primary-text);
  font-family: var(--md-ref-typeface-brand);
  font-size: var(--gb-type-small-size);
  font-weight: 600;
}

.gb-legal__document-section .gb-legal__document-section-header h2 {
  margin: 0;
  color: var(--md-sys-color-on-surface);
  font-size: var(--gb-type-heading-4-size);
  font-weight: 600;
  line-height: var(--gb-type-heading-4-line-height);
}

.gb-legal__document-section p,
.gb-legal__document-section li {
  color: var(--md-sys-color-on-surface-variant);
  font-size: var(--gb-type-body-size);
  line-height: calc(var(--gb-type-body-line-height) + var(--space-1));
}

.gb-legal__document-section p + p {
  margin-top: var(--space-4);
}

.gb-legal__document-section ul {
  margin-top: var(--space-4);
  padding-left: var(--space-6);
}

.gb-legal__document-section li + li {
  margin-top: var(--space-2);
}

.gb-legal__document-section .gb-legal__contacts {
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.gb-legal__document-section .gb-legal__contacts > div {
  padding: var(--space-5);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-low);
}

.gb-legal__document-section .gb-legal__contact-title {
  color: var(--md-sys-color-on-surface);
}

.gb-legal__document-section .gb-legal__card h3 {
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-ref-typeface-brand);
  font-size: var(--gb-type-body-size);
  font-weight: 600;
  line-height: var(--gb-type-body-line-height);
}

.gb-legal__document-section .gb-legal__updated {
  margin-top: var(--space-5) !important;
  color: var(--md-sys-color-on-surface-variant) !important;
}

.gb-legal__document-contact {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.gb-legal__document-contact p {
  margin: 0;
  font-weight: 500;
}

@media (max-width: 839px) {
  .gb-legal__document-header {
    padding: var(--space-8) var(--space-6);
  }

  .gb-legal__document-layout {
    flex-direction: column;
    margin-top: var(--space-8);
    gap: var(--space-8);
  }

  .gb-legal__document-nav {
    position: static;
    width: 100%;
    max-height: none;
    flex-basis: auto;
    overflow: visible;
    padding-right: 0;
  }

  .gb-legal__document-nav ol {
    flex-direction: row;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-2);
  }

  .gb-legal__document-nav li {
    flex: 0 0 auto;
  }

  .gb-legal__document-nav a {
    min-height: var(--space-12);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-small);
    background: var(--md-sys-color-surface-container-lowest);
  }

  .gb-legal__document-nav a:hover {
    border-color: var(--gb-color-primary);
  }
}

@media (max-width: 599px) {
  .gb-legal__document-header {
    /* Keep breadcrumb → hero gap equal to desktop / help (1.5rem). */
    padding: var(--space-6) var(--space-4);
  }

  .gb-legal__document-layout {
    margin-top: var(--space-6);
  }

  .gb-legal__document-section {
    padding-bottom: var(--space-8);
  }

  .gb-legal__document-section + .gb-legal__document-section {
    padding-top: var(--space-8);
  }

  .gb-legal__document-contact {
    padding: var(--space-4);
  }
}

/* Order detail — parity with getbookie2026 OrderDetailPage (no account tab bar). */
.gb-order-detail {
  padding-bottom: var(--space-8, 32px);
}

.gb-order-detail__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
  padding-top: var(--space-4, 16px);
  text-align: center;
}

.gb-order-detail__eyebrow {
  color: var(--color-text-subtle, #666);
}

.gb-order-detail__code {
  margin: 0.25rem 0 0;
  color: var(--color-text, #000);
}

.gb-order-detail__guest-alert {
  margin: var(--space-4, 16px) 0 0;
}

.gb-order-detail__muted {
  color: var(--color-text-subtle, #666);
  font-size: var(--gb-type-small-size);
  line-height: var(--gb-type-small-line-height);
}

.gb-order-detail__value {
  margin-top: 0.25rem;
  color: var(--color-text, #000);
  font-size: var(--gb-type-body-size);
  font-weight: 500;
  line-height: var(--gb-type-body-line-height);
  word-break: break-word;
}

.gb-order-detail__pre { white-space: pre-line; }

.gb-order-detail__stack-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
}

/* Holds the shared .gb-copy-field; the tracking code itself is styled there. */
.gb-order-detail__tracking-box {
  min-width: 0;
}

.gb-order-detail__address {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gb-order-detail__product-thumb {
  display: block;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: var(--gb-radius-sm);
}

.gb-order-detail__product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gb-order-detail__product-code {
  color: var(--color-text-subtle, #666);
  word-break: break-all;
}

.gb-order-detail__product-name {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-text, #000);
  text-decoration: none;
  word-break: break-word;
}

.gb-order-detail__product-name:hover { text-decoration: underline; }

.gb-order-detail__price-was {
  color: var(--color-text-subtle, #666);
  font-weight: 400;
  text-decoration: line-through;
}

.gb-order-detail__price-now {
  color: var(--color-text, #000);
  word-break: break-all;
}

.gb-order-detail__summary-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gb-order-detail__summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
}

.gb-order-detail__discount { color: var(--md-sys-color-error, #ba1a1a); }

.gb-order-detail__summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: inherit;
  font-weight: 600;
}

.gb-order-detail__cancel-wrap {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .gb-order-detail__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: var(--space-6, 24px);
    text-align: left;
  }
  .gb-order-detail__stack-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }
  .gb-order-detail__stack-row .gb-order-detail__value { text-align: right; }
}

/* Order payment slip upload / notice */
.gb-order-payment__notice {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--gb-status-success, #24734d) 25%, transparent);
  border-radius: 10px;
  background: var(--gb-status-success-container, #d8f1e2);
  color: var(--gb-status-on-success-container, #123d28);
}
.gb-order-payment__notice strong { font-weight: 600; }
.gb-order-payment__notice p { margin: 0; color: inherit; opacity: 0.9; }

.gb-order-payment__notices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.gb-order-payment__notice-card {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface-container-lowest);
}

.gb-order-payment__notice-rows {
  display: flex;
  flex-direction: column;
}

.gb-order-payment__notice-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}
.gb-order-payment__notice-row:first-child { padding-top: 0; }
.gb-order-payment__notice-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.gb-order-payment__notice-row strong {
  min-width: 0;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* Slip preview: the customer needs to confirm they attached the right image,
   which a bare text link never let them do. */
.gb-order-payment__slip-preview {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
  text-decoration: none;
}

.gb-order-payment__slip-image {
  display: block;
  width: 100%;
  max-height: 320px;
  border: 1px solid var(--color-border);
  border-radius: var(--md-sys-shape-corner-small);
  background: var(--md-sys-color-surface-container-low);
  object-fit: contain;
}

.gb-order-payment__slip-link {
  display: inline-flex;
  color: var(--gb-color-primary-text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gb-order-payment__form-wrap {
  margin-top: 0.75rem;
}
.gb-order-payment__form-wrap[hidden] { display: none !important; }

.gb-order-payment__form-divider {
  width: 100%;
  margin: 0 0 var(--space-4);
  border: 0;
  border-top: 1px solid var(--color-border);
}

.gb-order-payment__upload {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0;
}

button.gb-order-payment__action-btn[data-gb-order-slip-add] {
  margin-top: 0.75rem;
}

.gb-order-payment__transfer-reminder {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid color-mix(in srgb, var(--gb-color-primary-strong) 18%, transparent);
  border-radius: var(--md-sys-shape-corner-medium);
  background: color-mix(
    in srgb,
    var(--gb-color-primary) 7%,
    var(--md-sys-color-surface)
  );
  color: var(--color-text);
}

/* The illustration carries this notice — keep it large enough to read as art,
   not as an icon. Source asset is 384×384. */
.gb-order-payment__transfer-reminder-visual {
  display: flex;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  align-items: center;
  justify-content: center;
}

.gb-order-payment__transfer-reminder-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gb-order-payment__transfer-reminder-body {
  min-width: 0;
}

.gb-order-payment__transfer-reminder-body h3 {
  margin: 0 0 var(--space-1);
  color: var(--gb-color-primary-strong);
  font-family: var(--md-ref-typeface-brand);
  font-size: var(--gb-type-body-size);
  line-height: var(--gb-type-small-line-height);
}

.gb-order-payment__transfer-reminder-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.gb-order-payment__transfer-reminder-row + .gb-order-payment__transfer-reminder-row {
  margin-top: var(--space-1);
}

.gb-order-payment__transfer-reminder-row p {
  min-width: 0;
  margin: 0;
  font-size: var(--gb-type-small-size);
  line-height: var(--gb-type-small-line-height);
}

.gb-order-payment__transfer-reminder-row-icon {
  display: flex;
  width: var(--space-6);
  height: var(--space-6);
  flex: 0 0 var(--space-6);
  align-items: center;
  justify-content: center;
  border-radius: var(--md-sys-shape-corner-full);
  background: color-mix(in srgb, var(--gb-color-primary) 20%, transparent);
  color: var(--gb-color-primary-strong);
}

/* Wider column: give the illustration the room it earns. */
@media (min-width: 640px) {
  .gb-order-payment__transfer-reminder-visual {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
  }
}

.gb-order-payment__transfer-reminder-row-icon .gb-icon {
  width: var(--space-4);
  height: var(--space-4);
}

.gb-order-payment__transfer-reminder + .gb-order-payment__actions {
  margin-top: 0;
}

.gb-order-payment__actions {
  display: flex;
  width: 100%;
  margin-top: 0.75rem;
}

.gb-order-payment__action-btn {
  width: 100%;
  justify-content: center;
}
