/* BaltTrade shell: announcement bar, header, mega menu, predictive search, menu drawer, localization, footer, cookie banner.
   Source: design-system/ui_kits/storefront/Shell.jsx, App.jsx, kit.css; components/overlays/CookieBanner.jsx. */

/* Header tiers (static per screen class, never on scroll):
   phone < 768 — announcement in one or two lines (offset counts two), logo row (menu, logo, globe, account, cart) + search row; compact (768–1023, or >= 1024 with height <= 860) — one row with the menu button;
   tall desktop (>= 1024 and height >= 861) — bar + departments nav row. Any width: height <= 650 hides the announcement, <= 500 unsticks the header. */
:root {
  --bt-announcement-h: calc(var(--fs-caption) * 1.35 * 2 + var(--space-1) * 2);
  --bt-announcement-offset: var(--bt-announcement-h);
  --bt-header-offset: calc(var(--space-0-5) + var(--touch-target) + var(--space-1) + var(--space-10) + var(--space-2) + 1px);
}

@media (min-width: 768px) {
  :root {
    --bt-announcement-h: var(--space-7);
    --bt-header-offset: var(--space-14);
  }
}

@media (min-width: 1024px) and (min-height: 861px) {
  :root {
    --bt-announcement-h: var(--announcement-h);
    --bt-header-offset: calc(var(--header-h) + 1px);
  }

  :root:has(.bt-header__nav) {
    --bt-header-offset: calc(var(--header-h) + var(--space-12) + 1px);
  }
}

@media (max-height: 650px) {
  :root {
    --bt-announcement-offset: 0px;
  }
}

@media (max-height: 500px) {
  :root {
    --bt-header-offset: 0px;
  }
}

/* ── Announcement bar ── */
.bt-announcement {
  background: var(--announcement-bg);
  color: var(--announcement-fg);
  font-size: var(--fs-caption);
  line-height: 1.35;
}

.bt-announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  min-height: var(--bt-announcement-h);
  padding-block: var(--space-1);
  text-align: center;
}

.bt-announcement__item {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: calc(var(--space-2) + var(--space-0-5));
  min-width: 0;
  white-space: nowrap;
}

.bt-announcement__icon {
  flex: none;
  color: var(--bt-gold-400);
}

.bt-announcement__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bt-announcement__link,
.bt-announcement__link:hover {
  color: inherit;
  text-underline-offset: 0.2em;
}

.bt-announcement__link {
  padding-block: var(--space-1);
  margin-block: calc(var(--space-1) * -1);
}

/* Phones: the first announcement in full at its natural height, one or two lines (grows rather than cuts a longer merchant text). */
@media (max-width: 767px) {
  .bt-announcement__inner {
    min-height: var(--space-7);
  }

  .bt-announcement__item {
    white-space: normal;
    text-wrap: balance;
  }

  .bt-announcement__text {
    overflow: visible;
  }

  .bt-announcement__item ~ .bt-announcement__item {
    display: none;
  }
}

@media (max-width: 359px) {
  .bt-announcement__inner {
    padding-inline: var(--space-2);
  }

  .bt-announcement__icon {
    display: none;
  }
}

@media (max-height: 650px) {
  .bt-announcement {
    display: none;
  }
}

/* ── Header ── */
.shopify-section-group-header-group:has(.bt-header) {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}

@media (max-height: 500px) {
  .shopify-section-group-header-group:has(.bt-header) {
    position: relative;
  }
}

.bt-header {
  position: relative;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  color: var(--text-primary);
}

.bt-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-0-5);
  row-gap: var(--space-1);
  padding-block: var(--space-0-5) var(--space-2);
}

.bt-header__menu-btn {
  margin-inline-start: calc((var(--space-2) + var(--space-0-5)) * -1);
}

.bt-header__logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  margin-inline-end: auto;
}

.bt-header__logo .bt-logo {
  height: var(--bt-logo-height-mobile, 26px);
}

.bt-header__search {
  order: 1;
  flex: 1 0 100%;
  min-width: 0;
}

.bt-header__search .bt-search-field__box {
  height: var(--space-10);
}

/* Phone bar: the logo takes the free space of the first row and scales down there, so a taller logo setting never pushes the icons to a new row;
   the language menu hangs from that row, right-aligned to the content edge, over the search row. */
@media (max-width: 767px) {
  .bt-header__bar {
    position: relative;
  }

  .bt-header__logo {
    flex: 1 1 0;
    min-width: 0;
  }

  .bt-header__logo .bt-logo {
    min-width: 0;
    max-width: 100%;
  }

  .bt-header__loc .bt-loc-pop {
    inset-inline-end: var(--bt-container-pad);
    top: calc(var(--space-0-5) + var(--touch-target) + var(--space-1));
    max-width: calc(100% - var(--bt-container-pad) * 2);
  }
}

.bt-header__search .bt-search-field__input {
  text-overflow: ellipsis;
}

@media (max-width: 359px) {
  .bt-header__search .bt-search-field__box {
    gap: var(--space-2);
    padding-inline-start: var(--space-3);
  }
}

.bt-header__loc {
  display: block;
}

.bt-header__wishlist {
  display: none;
}

.bt-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-0-5);
  margin-inline-end: calc((var(--space-2) + var(--space-0-5)) * -1);
}

.bt-header__nav-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-1-5);
  min-height: var(--touch-target);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.bt-header__nav-btn:hover {
  color: var(--text-primary);
}

@media (hover: hover) {
  .bt-header__nav-btn:hover {
    background: var(--bt-sand-100);
  }
}

.bt-header__nav-btn[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.bt-header__chevron {
  transition: transform var(--dur-base) var(--ease-standard);
}

[aria-expanded="true"] > .bt-header__chevron {
  transform: rotate(180deg);
}

.bt-header__nav,
.bt-header__mega {
  display: none;
}

@media (min-width: 768px) {
  .bt-header__bar {
    flex-wrap: nowrap;
    column-gap: var(--space-3);
    min-height: calc(var(--space-14) - 1px);
    padding-block: 0;
  }

  .bt-header__logo {
    margin-inline-end: 0;
  }

  .bt-header__logo .bt-logo {
    height: var(--bt-logo-height, 32px);
  }

  .bt-header__search {
    order: 0;
    flex: 1 1 auto;
    padding-inline: var(--space-2);
  }

  .bt-header__search .bt-psearch__panel {
    inset-inline: var(--space-2);
  }

  .bt-header__loc {
    position: relative;
  }

  .bt-header__wishlist {
    display: inline-flex;
  }
}

/* Phone and tablet bar: the locale button keeps only the globe (the summary stays in its accessible name), so the search field fits its full hint. */
@media (max-width: 1023px) {
  .bt-header__loc > .bt-header__nav-btn {
    justify-content: center;
    min-width: var(--touch-target);
    padding-inline: var(--space-2);
  }

  .bt-header__loc-summary {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .bt-header__loc .bt-header__chevron {
    display: none;
  }
}

@media (min-width: 1024px) {
  .bt-header__search {
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (min-width: 1024px) and (min-height: 861px) {
  .bt-header__bar {
    min-height: var(--header-h);
    padding-block: var(--space-3);
  }

  .bt-header__search .bt-search-field__box {
    height: var(--space-12);
  }

  .bt-header__menu-btn {
    display: none;
  }

  .bt-header__nav {
    display: block;
  }

  .bt-header__mega {
    display: contents;
  }

  .bt-header__nav-inner {
    display: flex;
    align-items: center;
    gap: var(--space-0-5);
    min-height: var(--space-12);
  }

  .bt-header__dept-btn {
    margin-inline-start: calc(var(--space-3) * -1);
  }

  .bt-header__links {
    display: flex;
    flex: 1;
    align-items: center;
    gap: var(--space-0-5);
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .bt-header__links::-webkit-scrollbar {
    display: none;
  }

  .bt-header__link:focus-visible {
    outline-offset: calc(var(--focus-ring-width) * -1);
  }

  .bt-header__supplier {
    margin-inline: auto calc(var(--space-3) * -1);
    color: var(--text-link);
  }

  .bt-header__supplier:hover {
    color: var(--text-link-hover);
  }

  .bt-header__links + .bt-header__supplier {
    margin-inline-start: 0;
  }
}

/* ── Mega menu (desktop) ── */
.bt-mega {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: var(--z-dropdown);
  max-height: calc(100dvh - var(--bt-header-offset) - var(--bt-announcement-offset));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
}

.bt-mega__grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  grid-template-rows: repeat(var(--bt-mega-rows, 1), auto) minmax(0, 1fr);
  padding-block: var(--space-5) var(--space-7);
}

.bt-mega__grid--promos {
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr) minmax(0, 280px);
}

.bt-mega__dept {
  display: contents;
}

.bt-mega__dept > .bt-category-card {
  grid-column: 1;
}

.bt-mega__panel {
  display: none;
  grid-column: 2;
  grid-row: 1 / -1;
  min-width: 0;
  padding: var(--space-2) var(--space-8) 0;
}

/* Active department: current by default, then hover, then keyboard focus (focus wins). */
.bt-mega__dept--current > .bt-mega__panel {
  display: block;
}

.bt-mega__dept--current > .bt-category-card {
  background: var(--bt-sand-100);
}

.bt-mega__grid:has(> .bt-mega__dept:hover) .bt-mega__panel {
  display: none;
}

.bt-mega__grid:has(> .bt-mega__dept:hover) .bt-category-card {
  background: transparent;
}

.bt-mega__grid > .bt-mega__dept:hover > .bt-mega__panel {
  display: block;
}

.bt-mega__grid > .bt-mega__dept:hover > .bt-category-card {
  background: var(--bt-sand-100);
}

.bt-mega__grid:has(> .bt-mega__dept:focus-within) .bt-mega__panel {
  display: none;
}

.bt-mega__grid:has(> .bt-mega__dept:focus-within) .bt-category-card {
  background: transparent;
}

.bt-mega__grid > .bt-mega__dept:focus-within > .bt-mega__panel {
  display: block;
}

.bt-mega__grid > .bt-mega__dept:focus-within > .bt-category-card {
  background: var(--bt-sand-100);
}

.bt-mega__title {
  margin: 0 0 var(--space-1);
}

.bt-mega__meta {
  margin-bottom: var(--space-4);
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
}

.bt-mega__subs {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: var(--space-6);
}

.bt-mega__sub {
  break-inside: avoid;
}

.bt-mega__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  text-decoration: none;
}

.bt-mega__link:hover,
.bt-mega__link[aria-current="page"] {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.bt-mega__all {
  margin-top: var(--space-3);
  margin-inline-start: calc(var(--space-3) * -1);
}

.bt-mega__promos {
  display: flex;
  flex-direction: column;
  grid-column: 3;
  grid-row: 1 / -1;
  gap: var(--space-6);
  min-width: 0;
}

.bt-mega__promo {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-2) + var(--space-0-5));
}

.bt-mega__promo-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--media-bg);
}

.bt-mega__promo-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

.bt-mega__promo-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: var(--space-1-5);
  min-height: var(--space-8);
  color: var(--text-link);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.bt-mega__promo-link:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ── Predictive search ── */
.bt-psearch {
  position: relative;
  display: block;
}

.bt-psearch--loading .bt-search-field__icon {
  stroke: transparent;
  background: currentColor;
  -webkit-mask: var(--btc-glyph-spinner) center / contain no-repeat;
  mask: var(--btc-glyph-spinner) center / contain no-repeat;
  animation: bt-spin 0.9s linear infinite;
}

.bt-psearch__panel {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + var(--space-1-5));
  z-index: var(--z-dropdown);
  max-height: min(520px, 70dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  text-align: start;
}

.bt-psearch__idle,
.bt-psearch__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bt-psearch__heading {
  display: block;
  margin-bottom: var(--space-1-5);
  color: var(--text-secondary);
}

.bt-psearch__chips {
  --bt-gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-psearch__depts,
.bt-psearch__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-0-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-psearch__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.bt-psearch__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: var(--space-12);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
}

.bt-psearch__row:hover {
  color: var(--text-primary);
}

@media (hover: hover) {
  .bt-psearch__row:hover {
    background: var(--surface-hover);
  }
}

.bt-psearch__row--compact {
  min-height: var(--touch-target);
}

.bt-psearch__row-icon {
  color: var(--icon-secondary);
}

.bt-psearch__option--active > .bt-psearch__row,
.bt-psearch__option--active > .bt-category-card,
.bt-psearch__option--active > .bt-btn {
  background: var(--surface-hover);
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
}

.bt-psearch__thumb {
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--media-bg);
}

.bt-psearch__thumb > .bt-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bt-psearch__thumb > .bt-media-ph {
  padding: 0;
}

.bt-psearch__thumb .bt-icon {
  width: 18px;
  height: 18px;
}

.bt-psearch__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-0-5);
  min-width: 0;
}

.bt-psearch__title {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

.bt-psearch__meta {
  font-size: var(--fs-micro);
  color: var(--text-secondary);
}

.bt-psearch__query {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
}

.bt-psearch__query mark {
  background: none;
  color: inherit;
  font-weight: var(--fw-regular);
}

.bt-psearch__row > .bt-price {
  flex: none;
}

.bt-psearch__foot {
  margin-top: var(--space-5);
  padding-top: calc(var(--space-2) + var(--space-0-5));
  border-top: 1px solid var(--border-subtle);
}

.bt-psearch__all {
  margin-inline-start: calc(var(--space-3) * -1);
  text-align: start;
}

.bt-psearch__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(var(--space-2) + var(--space-0-5));
}

.bt-psearch__empty-icon {
  color: var(--icon-secondary);
}

.bt-psearch__empty-title {
  font-weight: var(--fw-bold);
}

.bt-psearch__empty-body,
.bt-psearch__error {
  font-size: var(--fs-body-sm);
  color: var(--text-secondary);
}

.bt-psearch__chips:empty {
  display: none;
}

@media (min-width: 768px) {
  .bt-psearch__depts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bt-psearch__cols {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .bt-psearch__cols--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .bt-psearch__panel {
    min-width: 560px;
  }
}

/* ── Localization ── */
.bt-localization {
  display: block;
}

.bt-localization__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bt-localization__hint {
  margin-top: var(--space-1-5);
}

.bt-loc-pop {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + var(--space-2));
  z-index: var(--z-dropdown);
  width: 320px;
  max-width: calc(100vw - var(--space-8));
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  --focus-ring: var(--border-focus);
}

.bt-loc-pop .bt-select__control {
  min-height: var(--control-h-sm);
  font-size: var(--fs-body-sm);
}

/* Language menu: every item submits the localization form with its own locale_code, so one tap switches the language. */
.bt-loc-pop--menu {
  width: max-content;
  min-width: 13rem;
  padding: var(--space-2);
}

.bt-loc-langs__title {
  margin: 0;
  padding: var(--space-1) var(--space-3) var(--space-1-5);
  color: var(--text-secondary);
}

.bt-loc-langs {
  display: flex;
  flex-direction: column;
  gap: var(--space-0-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-loc-langs__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: var(--touch-target);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  line-height: 1.2;
  text-align: start;
  cursor: pointer;
}

.bt-loc-langs__btn[aria-current="true"] {
  font-weight: var(--fw-semibold);
}

.bt-loc-langs__btn[aria-busy="true"] {
  background: var(--bt-sand-100);
  cursor: progress;
}

.bt-loc-langs__btn[aria-busy="true"] .bt-loc-langs__check {
  display: none;
}

.bt-loc-langs__btn[aria-busy="true"]::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--btc-glyph-spinner) center / contain no-repeat;
  mask: var(--btc-glyph-spinner) center / contain no-repeat;
  animation: bt-spin 0.9s linear infinite;
}

.bt-loc-langs:has([aria-busy="true"]) .bt-loc-langs__btn:not([aria-busy="true"]) {
  opacity: 0.5;
  pointer-events: none;
}

.bt-loc-langs__check {
  flex: none;
  color: var(--text-brand);
}

@media (hover: hover) {
  .bt-loc-langs__btn:hover {
    background: var(--bt-sand-100);
  }
}

.bt-localization__langs + .bt-localization__form {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.bt-loc-pop--up {
  inset-inline: 0 auto;
  top: auto;
  bottom: calc(100% + var(--space-2));
}

@media (min-width: 768px) {
  .bt-loc-pop--up {
    inset-inline: auto 0;
  }
}

/* ── Menu drawer (mobile and tablet) ── */
.bt-menu-drawer > .bt-drawer__panel {
  width: min(92%, 400px);
}

.bt-menu-drawer__panel > .bt-drawer__header .bt-logo {
  height: 24px;
}

.bt-menu-drawer__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-5);
}

.bt-menu-drawer__overline {
  display: block;
  padding: 0 var(--space-2);
  color: var(--text-secondary);
}

.bt-menu-drawer__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-menu-drawer__section {
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

.bt-menu-drawer__link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--space-12);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.bt-menu-drawer__link:hover {
  color: var(--text-primary);
}

@media (hover: hover) {
  .bt-menu-drawer__link:hover {
    background: var(--surface-hover);
  }
}

.bt-menu-drawer__link[aria-current="page"] {
  background: var(--bt-sand-100);
}

/* Pinned under the scrolling list: the supplier link stays in view at any window height. */
.bt-menu-drawer__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.bt-menu-drawer__supplier {
  justify-content: space-between;
  gap: var(--space-2);
  width: auto;
  min-height: var(--touch-target);
  margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) 0;
  color: var(--text-link);
}

.bt-menu-drawer__supplier:hover {
  color: var(--text-link-hover);
}

/* ── Footer ── */
.bt-footer {
  position: relative;
  margin-top: var(--section-y);
  background: var(--footer-bg);
  color: var(--footer-fg);
}

.bt-footer__motif {
  display: none;
}

.bt-footer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding-block: clamp(2.5rem, 5cqi, 4.5rem) var(--space-6);
}

.bt-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 520px;
}

.bt-footer__logo {
  display: inline-flex;
}

.bt-footer__tagline {
  font-size: var(--fs-lede);
  line-height: 1.3;
  color: var(--footer-fg-secondary);
}

.bt-footer__main,
.bt-footer__menus {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.bt-footer__main {
  gap: var(--space-10);
}

.bt-footer__menus {
  gap: var(--space-7);
}

.bt-footer__heading {
  margin: 0 0 calc(var(--space-2) + var(--space-0-5));
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-body);
}

.bt-footer__list,
.bt-footer__legal,
.bt-footer__pay-list,
.bt-footer__social {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bt-footer__link,
.bt-footer__legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--footer-fg-secondary);
  font-size: var(--fs-body-sm);
  text-decoration: none;
}

.bt-footer__link:hover,
.bt-footer__legal-link:hover,
.bt-footer__link[aria-current="page"] {
  color: var(--footer-fg);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.bt-footer__news-form {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-2) + var(--space-0-5));
}

.bt-footer__news-label {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
}

.bt-footer__news-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.bt-footer__news-input {
  flex: 1 1 200px;
  min-width: 0;
  height: var(--control-h-md);
  padding: 0 var(--space-3);
  border: 1px solid var(--btc-white-40);
  border-radius: var(--radius-md);
  background: var(--btc-white-8);
  color: var(--footer-fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

.bt-footer__news-input::placeholder {
  color: var(--bt-navy-300);
  opacity: 1;
}

.bt-footer__news-input[aria-invalid="true"] {
  border-color: var(--bt-red-200);
}

.bt-footer__news-msg {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1-5);
  font-size: var(--fs-body-sm);
}

.bt-footer__news-msg > .bt-icon {
  margin-top: var(--space-0-5);
  color: var(--bt-gold-400);
}

.bt-footer__news-msg--error,
.bt-footer__news-msg--error > .bt-icon {
  color: var(--bt-red-200);
}

.bt-footer__news-note {
  font-size: var(--fs-micro);
  color: var(--footer-fg-secondary);
}

.bt-footer__news-note a,
.bt-footer__news-note a:hover {
  color: inherit;
}

.bt-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-inverse);
}

.bt-footer__pay,
.bt-footer__pay-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.bt-footer__pay-label {
  margin-inline-end: var(--space-1);
  font-size: var(--fs-micro);
  color: var(--footer-fg-secondary);
}

.bt-footer__pay-icon {
  display: block;
  width: 38px;
  height: 24px;
}

.bt-footer__social {
  display: flex;
  gap: var(--space-1);
}

.bt-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  font-size: var(--fs-caption);
  color: var(--footer-fg-secondary);
}

.bt-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-5);
}

.bt-footer__legal-link {
  font-size: var(--fs-caption);
}

.bt-footer__legal-btn {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.bt-footer__loc {
  position: relative;
  display: block;
}

.bt-footer__loc-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  min-height: var(--touch-target);
  padding: 0;
  border: 0;
  background: none;
  color: var(--footer-fg-secondary);
  font-family: inherit;
  font-size: var(--fs-caption);
  cursor: pointer;
}

.bt-footer__loc-btn:hover {
  color: var(--footer-fg);
}

.bt-footer__loc-chevron {
  transition: transform var(--dur-base) var(--ease-standard);
}

.bt-footer__loc-btn[aria-expanded="true"] > .bt-footer__loc-chevron {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .bt-footer__menus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bt-footer__loc {
    margin-inline-start: auto;
  }
}

@media (min-width: 1024px) {
  .bt-footer__motif {
    position: absolute;
    top: var(--space-10);
    right: 0;
    display: block;
    width: min(44%, 560px);
    opacity: 0.9;
    pointer-events: none;
  }

  .bt-footer__main--split {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .bt-footer__menus {
    grid-template-columns: repeat(var(--bt-footer-cols, 4), minmax(0, 1fr));
  }
}

/* ── Cookie banner ── */
.bt-cookie {
  position: fixed;
  inset-inline: var(--space-4);
  bottom: calc(var(--space-4) + var(--bt-toast-offset, 0px));
  z-index: var(--z-cookie);
  display: block;
  max-width: 960px;
  margin-inline: auto;
  animation: bt-rise var(--dur-slow) var(--ease-enter);
}

.bt-cookie[data-view="preferences"] {
  max-width: 560px;
}

.bt-cookie__panel {
  max-height: calc(100dvh - var(--space-8) - var(--bt-toast-offset, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
}

.bt-cookie__head {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--space-3) + var(--space-0-5));
}

.bt-cookie__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--radius-md);
  background: var(--surface-accent-subtle);
  color: var(--bt-gold-700);
}

.bt-cookie__intro {
  flex: 1;
  min-width: 0;
}

.bt-cookie__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
}

.bt-cookie__title:focus {
  outline: 0;
}

.bt-cookie__title:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.bt-cookie__body {
  margin-top: var(--space-1-5);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.bt-cookie__prefs {
  margin-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.bt-cookie__prefs > .bt-switch {
  border-bottom: 1px solid var(--border-subtle);
}

.bt-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.bt-cookie__actions > .bt-btn {
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  .bt-cookie__actions > .bt-btn {
    flex: 0 0 auto;
  }
}
