/* Site Header — Frontend styles */
.wp-block-bantrab-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 50;
  background: transparent;
  transition: transform 300ms ease, background-color 300ms ease;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'TT Interphases Pro Trl', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
@media (min-width: 1025px) {
  .wp-block-bantrab-site-header {
    margin-bottom: var(--bantrab-margin-bottom, 0);
  }
}

/* Admin-bar offset handled via JS (initAdminBarOffset) */

/* Spacer to prevent content from hiding behind fixed header */
.wp-block-bantrab-site-header+* {
  scroll-margin-top: 120px;
}

.wp-block-bantrab-site-header.header-hidden {
  transform: translateY(-100%);
}

/* ── Main wrapper ── */
.bantrab-header__inner {
  max-width: 1344px;
  margin: 0 auto;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: visible;
  background: #FCFCFC;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  width: 100%;
  box-sizing: border-box;
}

/* ── Top bar (desktop only) ── */
.bantrab-header__topbar {
  display: none;
  background: #FCFCFC;
  border-bottom: 1px solid #D9DBE9;
}

.bantrab-header__topbar-inner {
  display: none;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
}

.bantrab-header__exchange {
  font-size: 14px;
  color: #3a3d3b;
  white-space: nowrap;
}

.bantrab-header__exchange-label {
  font-weight: 600;
}

.bantrab-header__exchange-values {
  margin-left: 4px;
}

.bantrab-header__topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (min-width: 1280px) {
  .bantrab-header__topbar-right {
    flex-grow: 1;
    justify-content: flex-end;
  }
}

/* ── Search ── */
.bantrab-header__search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
}

@media (min-width: 1280px) {
  .bantrab-header__search {
    flex-grow: 1;
    justify-content: center;
    margin-left: 24px;
  }
}

.bantrab-header__search-container {
  position: relative;
  width: 100%;
  max-width: 494px;
  height: 44px;
}

.bantrab-header__search-input {
  width: 100%;
  max-width: 169px;
  height: 44px;
  padding: 10px 40px 10px 16px;
  font-size: 17px;
  color: #3a3d3b;
  background: #eff0f6;
  border: none;
  border-radius: 52px;
  outline: none;
  transition: box-shadow 200ms ease;
}

@media (min-width: 1280px) {
  .bantrab-header__search-input {
    font-size: 15px !important;
  }
}
@media (max-width: 1024px) {
  .bantrab-header__search-input {
    max-width: 494px;
  }
}

.bantrab-header__search-input::placeholder {
  color: #6E7191;
}

.bantrab-header__search-input:focus {
  box-shadow: 0 0 0 2px #00b4ae;
}

.bantrab-header__search-input:focus,
.bantrab-header__search-input:focus-visible,
.bantrab-header__search-input:hover,
.bantrab-header__search-input:active {
  box-shadow: 0 0 0 2px #14142B;
  background-color: #FCFCFC;
}

@media (min-width: 1280px) {

  .bantrab-header__search-input:focus,
  .bantrab-header__search-input:focus-visible,
  .bantrab-header__search-input:hover,
  .bantrab-header__search-input:active {
    box-shadow: 0 0 0 2px #14142B;
    background-color: #FCFCFC;
  }
}

.bantrab-header__search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #00b4ae;
  padding: 0;
}

.bantrab-header__search-btn:hover {
  color: #14142B;
}

.bantrab-header__search-input:focus+.bantrab-header__search-btn,
.bantrab-header__search-input:focus-visible+.bantrab-header__search-btn,
.bantrab-header__search-input:hover+.bantrab-header__search-btn,
.bantrab-header__search-input:active+.bantrab-header__search-btn {
  color: #14142B;
}

/* ── Bantrab en línea CTA ── */
.bantrab-header__cta-online {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  flex-shrink: 0;
  min-height: 42px;
  /* Narrow enough to break the label into two lines: "Bantrab en Línea" / "Personas". */
  max-width: 150px;
  padding: 2px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #00b4ae;
  background: transparent;
  border: 2px solid #00b4ae;
  border-radius: 48px;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}

.bantrab-header__cta-online:hover {
  background: #00b4ae;
  color: #fff;
}

/* Desktop version hidden on mobile, mobile version hidden on desktop */
.bantrab-header__cta-online--desktop {
  display: none;
}

.bantrab-header__cta-online--mobile {
  display: inline-flex;
  min-height: 25px;
  max-width: 110px;
  padding: 4px 14px;
  border: 1.143px solid var(--Bantrab-cyan, #00B4AE);
  font-size: 9.143px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
}

/* Tablet-only elements: hidden by default (mobile and desktop) */
.bantrab-header__exchange--tablet,
.bantrab-header__cta-online--tablet {
  display: none;
}

/* ── Tablet (768px – 1279px): single-row navbar with hamburger + topbar elements ── */
@media (min-width: 768px) and (max-width: 1279px) {
  .bantrab-header__cta-online--tablet {
    display: inline-flex;
  }

  .bantrab-header__cta-online--phone {
    display: none;
  }

  .bantrab-header__exchange--tablet {
    display: block;
    font-family: 'TT Interphases Pro Trl', 'Interphase', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #3a3d3b;
    white-space: nowrap;
  }

  /* Single-row layout: hamburger | exchange | logo (center) | both buttons */
  .bantrab-header__nav-inner {
    gap: 16px;
    padding: 14px 24px;
  }

  .bantrab-header__nav-inner {
    position: relative;
    display: flex !important;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
  }

  .bantrab-header__hamburger {
    flex-shrink: 0;
  }

  .bantrab-header__exchange--tablet {
    flex-shrink: 0;
  }

  /* Logo absolutely centered in the navbar */
  .bantrab-header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1;
  }

  .bantrab-header__logo-img {
    width: 103px;
    height: 24px;
  }

  .bantrab-header__cta-online--tablet-first {
    flex-shrink: 0;
    margin-left: auto;
  }

  /* Reduce nav-inner gap on smaller tablets */
  .bantrab-header__nav-inner {
    gap: 12px;
    padding: 12px 16px;
  }

  /* Smaller exchange text on tight tablets */
  .bantrab-header__exchange--tablet {
    font-size: 12px !important;
  }

  .bantrab-header__cta-online--mobile {
    min-height: 42px;
    /* Narrower than desktop so both buttons clear the centered logo at 768px. */
    max-width: 138px;
    padding: 2px 12px;
    font-size: 14px;
    line-height: 1.2;
  }
}

/* ── Nav bar ── */
.bantrab-header__nav {
  background: #FCFCFC;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  position: relative;
}

/* Mobile only (<768px): rounded corners for header */
@media (max-width: 767px) {
  .wp-block-bantrab-site-header {
    background: transparent;
  }

  .bantrab-header__inner {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .bantrab-header__nav {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }
}

.bantrab-header__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
}

/* ── Logo ── */
.bantrab-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.bantrab-header__logo-img {
  width: 103px;
  height: 24px;
}

/* ── Desktop menu ── */
.bantrab-header__desktop-menu {
  display: none;
  align-items: center;
  gap: 0;
}

/* ── Nav links ── */
.bantrab-header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: 'TT Interphases Pro Trl', 'Interphase', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 0;
  color: #535754;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 200ms ease;
}

.bantrab-header__nav-link:hover {
  color: #006C68;
}

/* Active nav link when mega menu is open */
.site-header__menu-trigger[aria-expanded="true"].bantrab-header__nav-link {
  color: #006C68;
}

/* ══════════════════════════════════════════════
   MEGA MENU — 3-level: categories + children
   ══════════════════════════════════════════════ */

.site-header__menu-item {
  position: static;
}

.bantrab-header__mega-panel {
  position: absolute;
  top: calc(100% - 40px);
  left: 0;
  right: 0;
  background: #F6F7F7;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding-top: 40px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.bantrab-header__mega-panel.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.bantrab-header__mega-inner {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  gap: 0;
  min-height: 360px;
}

/* ── Left column: categories ── */
.bantrab-header__mega-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 399px;
  flex-shrink: 0;
  padding-right: 24px;
}

/* Long category names wrap to two lines at most and end in "…", so the
   column keeps its 399px and never pushes the children out of the panel. */
.bantrab-header__mega-cat-btn > span,
.bantrab-header__mega-cat-link > span {
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.bantrab-header__mega-cat-btn,
.bantrab-header__mega-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
  color: #535754;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  box-sizing: border-box;
  transition: color 200ms ease, background 200ms ease;
}

.bantrab-header__mega-cat-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
  color: #00b4ae;
  flex-shrink: 0;
}

/* Hover state — teal text only, no arrow */
.bantrab-header__mega-cat-btn:hover,
.bantrab-header__mega-cat-link:hover {
  color: #00b4ae;
}

/* Active state — teal text + arrow visible */
.bantrab-header__mega-cat-btn.is-active {
  color: #00b4ae;
  font-weight: 500;
}

.bantrab-header__mega-cat-btn.is-active .bantrab-header__mega-cat-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Right area: children panels ── */
.bantrab-header__mega-children-area {
  flex: 1;
  padding-left: 32px;
  min-width: 0;
}

.bantrab-header__mega-children {
  display: none;
  /* Three equal columns that share the remaining width: a long name wraps
     inside its column instead of widening the grid past the panel. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 8px;
  column-gap: 64px;
}

.bantrab-header__mega-children.is-active {
  display: grid;
}

/* Child links: 3-column layout */
.bantrab-header__mega-child-link > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bantrab-header__mega-child-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
  color: #81898E;
  text-decoration: none;
  border-radius: 0;
  border: none;
  transition: color 200ms ease, background 200ms ease;
}

.bantrab-header__mega-child-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
  color: #00b4ae;
  flex-shrink: 0;
}

/* Child hover: light teal fill + arrow, no border */
.bantrab-header__mega-child-link:hover {
  color: #00b4ae;
  background: rgba(0, 180, 174, 0.08);
}

.bantrab-header__mega-child-link:hover .bantrab-header__mega-child-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hamburger (teal, mobile only) ── */
.bantrab-header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  order: -1;
  position: relative;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.site-header__hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #00b4ae;
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}

/* Hamburger to X animation */
.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ══════════════════════════════════════════════
   MOBILE MENU OVERLAY
   ══════════════════════════════════════════════ */

.bantrab-header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #F6F7F7;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(-100%);
  transition: transform 300ms ease, visibility 300ms ease;
  visibility: hidden;
  pointer-events: none;
  width: 100%;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  box-sizing: border-box;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.bantrab-header__mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

/* Admin-bar offset for mobile menu handled via JS (initAdminBarOffset) */

/* Admin-bar offset for mobile menu at desktop also handled via JS */

/* ── Mobile backdrop ── */
.bantrab-header__mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  pointer-events: none;
}

.bantrab-header__mobile-backdrop.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile top: X left | logo center | spacer right */
.bantrab-header__mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;

  background: #FCFCFC;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  border-bottom: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.bantrab-header__mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #00b4ae;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bantrab-header__mobile-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.bantrab-header__mobile-logo {
  width: 103px;
  height: auto;
}

.bantrab-header__mobile-top-spacer {
  width: 40px;
  flex-shrink: 0;
}

/* ── Mobile search ── */
.bantrab-header__mobile-search-wrap {
  padding: 24px 24px 0;
  box-sizing: border-box;
  max-width: 100%;
}

.bantrab-header__search--mobile {
  width: 100%;
  max-width: 494px;
  position: relative;
}

/* Mobile-top tablet-only elements: hidden by default */
.bantrab-header__exchange--mobile-top,
.bantrab-header__cta-online--mobile-top {
  display: none;
}

.bantrab-header__search--mobile .bantrab-header__search-input {
  width: 100%;
}

.bantrab-header__search--mobile .bantrab-header__search-input:focus {
  width: 100%;
}

/* ── Mobile CTAs row ── */
.bantrab-header__mobile-ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 20px 24px 0;
}

.bantrab-header__mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 6px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 48px;
  min-height: 42px;
  max-width: 180px;
  text-align: center;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}

.bantrab-header__mobile-cta--online {
  background: transparent;
  color: #00b4ae;
  border: 2px solid #00b4ae;
}

.bantrab-header__mobile-cta--online:hover {
  background: #00b4ae;
  color: #fff;
}


/* ── Mobile nav ── */
.bantrab-header__mobile-nav {
  padding: 16px 24px 32px;
}

.bantrab-header__mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bantrab-header__mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: #3a3d3b;
  text-decoration: none;
}

/* ── Mobile accordion ── */
.bantrab-header__accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
}

.bantrab-header__accordion-link {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  font-family: 'TT Interphases Pro Trl', 'Interphase', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 0;
  color: #424643;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.bantrab-header__accordion-link:hover {
  color: #006C68;
}

.bantrab-header__accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  text-align: left;
  padding: 0;
  color: #424643;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bantrab-header__accordion-trigger:hover {
  color: #006C68;
}

.site-header__accordion-trigger[aria-expanded="true"].bantrab-header__accordion-trigger {
  color: #006C68;
}

.bantrab-header__accordion-icon {
  transition: transform 200ms ease;
  color: #3a3d3b;
}

.site-header__accordion-trigger[aria-expanded="true"] .site-header__accordion-icon,
.site-header__accordion-trigger[aria-expanded="true"] .bantrab-header__accordion-icon {
  transform: rotate(180deg);
}

.bantrab-header__mobile-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #F6F7F7;
}

.bantrab-header__mobile-sublink-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.bantrab-header__mobile-sublink {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 14px 16px 14px 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 129%;
  color: #535754;
  text-decoration: none;
  transition: color 200ms ease;
}

.bantrab-header__mobile-sublink:hover {
  color: #00b4ae;
}

/* ── Tablet mega menu (inside mobile overlay, only shown at 768-1279px) ── */
.bantrab-header__tablet-mega {
  display: none;
}

@media (min-width: 768px) and (max-width: 1279px) {

  /* Show tablet mega, hide mobile accordion nav */
  .bantrab-header__tablet-mega {
    display: block;
    padding: 16px 32px 32px;
  }

  .bantrab-header__mobile-nav {
    display: none;
  }

  /* Mobile-top at tablet: match nav-inner layout exactly */
  .bantrab-header__mobile-top {
    gap: 12px;
    padding: 12px 16px;
    background: #FCFCFC;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
  }

  .bantrab-header__exchange--mobile-top {
    display: block;
    font-size: 12px;
    color: #81898E;
    white-space: nowrap;
  }

  .bantrab-header__cta-online--mobile-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 2px 16px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #00b4ae;
    border-radius: 48px;
    color: #00b4ae;
    background: transparent;
    text-decoration: none;
    transition: background 200ms ease, color 200ms ease;
  }

  .bantrab-header__cta-online--mobile-top:hover {
    background: #00b4ae;
    color: #fff;
  }

  /* Center the logo by pushing other elements with margin auto */
  .bantrab-header__mobile-logo-link {
    margin-left: auto;
    margin-right: auto;
  }

  /* Hide the spacer at tablet (replaced by real elements) */
  .bantrab-header__mobile-top-spacer {
    display: none;
  }

  /* Search bar at tablet: full width */
  .bantrab-header__mobile-search-wrap {
    padding: 24px 32px 0;
  }

  .bantrab-header__search--mobile {
    max-width: none;
    width: 100%;
  }

  .bantrab-header__search--mobile .bantrab-header__search-input {
    max-width: none;
    width: 100%;
    height: 48px;
  }

  .bantrab-header__mobile-ctas {
    justify-content: flex-end;
    padding: 20px 32px 0;
  }

  /* Hide top-level tabs row — design doesn't show them */
  .bantrab-header__tablet-tabs {
    display: none;
  }

  /* Tablet panels: only active visible */
  .bantrab-header__tablet-panel {
    display: none;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-top: 24px;
  }

  .bantrab-header__tablet-panel.is-active {
    display: grid;
  }

  /* Categories left column — Figma: 280×340, gap 24px between items */
  .bantrab-header__tablet-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 280px;
  }

  /* Each category: 280×28, space-between */
  .bantrab-header__tablet-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 280px;
    height: 28px;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: #535754;
    text-decoration: none;
    cursor: pointer;
    transition: color 200ms ease;
    box-sizing: border-box;
  }

  .bantrab-header__tablet-cat:hover {
    color: #00b4ae;
  }

  .bantrab-header__tablet-cat.is-active {
    color: #00b4ae;
  }

  .bantrab-header__tablet-cat-arrow {
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 200ms ease, transform 200ms ease;
    color: #00b4ae;
    flex-shrink: 0;
  }

  .bantrab-header__tablet-cat.is-active .bantrab-header__tablet-cat-arrow {
    opacity: 1;
    transform: translateX(0);
  }

  .bantrab-header__tablet-children-area {
    min-width: 0;
  }

  .bantrab-header__tablet-children {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .bantrab-header__tablet-children.is-active {
    display: grid;
  }

  /* Each child: min 58px tall so long names wrap instead of being cut */
  .bantrab-header__tablet-child {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #81898E;
    text-decoration: none;
    transition: color 200ms ease, background 200ms ease;
    box-sizing: border-box;
  }

  .bantrab-header__tablet-child:hover {
    color: #00b4ae;
  }
}

/* ── Mobile sub-panels (2nd level) ── */
.bantrab-header__mobile-subpanel {
  padding: 16px 24px 32px;
}

.bantrab-header__mobile-subpanel.is-active {
  display: block;
}

.bantrab-header__mobile-back {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: #3a3d3b;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  text-align: left;
}

.bantrab-header__mobile-back svg {
  color: #3a3d3b;
  flex-shrink: 0;
}

.bantrab-header__mobile-childlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bantrab-header__mobile-childlink {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 129%;
  color: #535754;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color 200ms ease;
}

.bantrab-header__mobile-childlink:hover {
  color: #00b4ae;
}

.bantrab-header__mobile-sub-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  padding: 14px 16px 14px 0;
  background: transparent;
  border: none;
  border-left: 1px solid #f0f0f0;
  cursor: pointer;
  color: #81898E;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 200ms ease;
}

.bantrab-header__mobile-sub-trigger:hover {
  color: #00b4ae;
}

/* ── Mobile exchange rate ── */
.bantrab-header__mobile-exchange {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #A1ABB2;
  font-size: 13px;
  color: #81898E;
  text-align: center;
}

/* ── Focus styles ── */
.bantrab-header__nav-link:focus-visible,
.site-header__menu-trigger:focus-visible,
.site-header__hamburger:focus-visible,
.site-header__mobile-close:focus-visible,
.site-header__accordion-trigger:focus-visible,
.bantrab-header__cta-online:focus-visible,
.bantrab-header__mega-cat-btn:focus-visible,
.bantrab-header__mega-cat-link:focus-visible,
.bantrab-header__mega-child-link:focus-visible {
  outline: 2px solid #00b4ae;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════
   DESKTOP BREAKPOINT (xl: 1280px)
   ══════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .bantrab-header__topbar {
    display: block;
  }

  .bantrab-header__topbar-inner {
    display: flex;
  }

  .bantrab-header__desktop-menu {
    display: flex;
  }

  .bantrab-header__hamburger {
    display: none;
  }

  .bantrab-header__cta-online--mobile {
    display: none;
  }

  .bantrab-header__cta-online--desktop {
    display: inline-flex;
  }

  .bantrab-header__logo-img {
    width: 150px;
    height: auto;
  }

  .bantrab-header__nav-inner {
    padding: 16px 24px;
  }

  /* Mega panel relative to .bantrab-header__nav */
  .site-header__menu-item {
    position: static;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {

  .bantrab-header__mega-panel,
  .bantrab-header__mobile-menu,
  .bantrab-header__accordion-icon,
  .site-header__hamburger-line,
  .bantrab-header__search-input,
  .bantrab-header__cta-online,
  .bantrab-header__nav-link,
  .bantrab-header__mega-cat-arrow,
  .bantrab-header__mega-child-arrow {
    transition: none !important;
  }
}