/* Header controls, cart indicator and compact navigation breakpoints. */

/* Dark header shell */
.gtg-header {
  background: var(--gtg-ink);
  border-bottom: 0;
  color: var(--gtg-paper);
}

.gtg-header__inner {
  min-height: 94px;
}

/* Main navigation */
.gtg-nav__list a {
  color: var(--gtg-paper);
  font-weight: 900;
}

.gtg-nav__list a:hover,
.gtg-nav__list .current-menu-item > a {
  color: var(--gtg-yellow);
}

/* Header action layout */
.gtg-header__actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

/* Shared flat header action style */
.gtg-header__account,
.gtg-header__book,
.gtg-header__book.gtg-button,
.gtg-cart-link,
.gtg-header__actions .gtg-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-height: 46px;
  padding: .55rem .95rem;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  background: var(--gtg-yellow);
  color: var(--gtg-ink);
  font-size: .92rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transform: none;
  transition: background-color .16s ease, color .16s ease;
}

/* Header action text: always black, including hover/focus/visited states. */
.gtg-header .gtg-header__account,
.gtg-header .gtg-header__account:visited,
.gtg-header .gtg-header__account:hover,
.gtg-header .gtg-header__account:focus,
.gtg-header .gtg-header__account:focus-visible,
.gtg-header .gtg-header__book,
.gtg-header .gtg-header__book:visited,
.gtg-header .gtg-header__book:hover,
.gtg-header .gtg-header__book:focus,
.gtg-header .gtg-header__book:focus-visible,
.gtg-header .gtg-header__book.gtg-button,
.gtg-header .gtg-header__book.gtg-button:visited,
.gtg-header .gtg-header__book.gtg-button:hover,
.gtg-header .gtg-header__book.gtg-button:focus,
.gtg-header .gtg-header__book.gtg-button:focus-visible,
.gtg-header .gtg-cart-link,
.gtg-header .gtg-cart-link:visited,
.gtg-header .gtg-cart-link:hover,
.gtg-header .gtg-cart-link:focus,
.gtg-header .gtg-cart-link:focus-visible,
.gtg-header .gtg-header__actions .gtg-nav-toggle,
.gtg-header .gtg-header__actions .gtg-nav-toggle:hover,
.gtg-header .gtg-header__actions .gtg-nav-toggle:focus,
.gtg-header .gtg-header__actions .gtg-nav-toggle:focus-visible {
  color: var(--gtg-ink);
}

/* Hide menu button on desktop */
.gtg-header__actions .gtg-nav-toggle {
  display: none;
}

/* Order: Book now, My account, Menu on mobile, Basket */
.gtg-header__book,
.gtg-header__book.gtg-button {
  order: 1;
  background: #f16726;
}

.gtg-header__account {
  order: 2;
  background: var(--gtg-yellow);
}

.gtg-header__actions .gtg-nav-toggle {
  order: 3;
  background: var(--gtg-yellow);
}

.gtg-cart-link {
  order: 4;
  position: relative;
  gap: .4rem;
  background: var(--gtg-yellow);
}

/* Stable hover/focus states: no jump, no shadow, no flicker */
.gtg-header__book:hover,
.gtg-header__book:focus,
.gtg-header__book:focus-visible,
.gtg-header__book.gtg-button:hover,
.gtg-header__book.gtg-button:focus,
.gtg-header__book.gtg-button:focus-visible {
  background: #ff7a3d;
  box-shadow: none;
  transform: none;
}

.gtg-header__account:hover,
.gtg-header__account:focus,
.gtg-header__account:focus-visible,
.gtg-cart-link:hover,
.gtg-cart-link:focus,
.gtg-cart-link:focus-visible,
.gtg-header__actions .gtg-nav-toggle:hover,
.gtg-header__actions .gtg-nav-toggle:focus,
.gtg-header__actions .gtg-nav-toggle:focus-visible {
  background: #ffd957;
  box-shadow: none;
  transform: none;
}

/* Basket icon/count */
.gtg-cart-link__icon {
  width: 21px;
  height: 21px;
  flex: none;
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
}

.gtg-cart-link__icon svg {
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
}

.gtg-cart-link__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  background: #f16726;
  border: 0;
  border-radius: 999px;
  color: var(--gtg-paper);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
}

.gtg-cart-link:not(.has-items) .gtg-cart-link__count {
  background: var(--gtg-paper);
  color: var(--gtg-ink);
}

/* Mobile account link inside menu */
.gtg-nav__account-mobile {
  display: none;
}

/* Responsive header */
@media (max-width: 1080px) {
  .gtg-cart-link__text {
    display: none;
  }
}

@media (max-width: 980px) {
  body.gtg-neo.admin-bar .gtg-header {
    top: 46px;
  }

  .gtg-header {
    border-bottom: 0;
    box-shadow: none;
  }

  .gtg-header__inner {
    min-height: 78px;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: .65rem;
    padding: .6rem 0;
  }

  .gtg-brand {
    width: clamp(110px, 20vw, 145px);
  }

  .gtg-brand img {
    max-height: 64px;
  }

  .gtg-header__actions {
    margin-left: auto;
    gap: .42rem;
  }

  .gtg-header__actions .gtg-nav-toggle {
    display: inline-flex;
    height: 42px;
    min-height: 42px;
    gap: .42rem;
    margin-left: 0;
    padding: .48rem .68rem;
    border-radius: 10px;
  }

  .gtg-header__account,
  .gtg-header__book,
  .gtg-header__book.gtg-button,
  .gtg-cart-link {
    height: 42px;
    min-height: 42px;
    padding: .48rem .68rem;
    border-radius: 10px;
    font-size: .9rem;
  }

  .gtg-cart-link:not(.has-items) {
    display: none;
  }

  .gtg-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    order: 4;
    padding: .6rem max(.75rem, calc((100vw - var(--gtg-shell)) / 2)) .7rem;
    background: var(--gtg-ink);
    border-bottom: 0;
    box-shadow: none;
  }

  .gtg-nav.is-open {
    display: block;
  }

  .gtg-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .gtg-nav__list a {
    padding: .55rem 0;
    border-top: 1px solid rgba(255, 250, 243, .22);
  }
}

@media (max-width: 700px) {
  .gtg-header__actions {
    order: initial;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .gtg-header__account {
    font-size: .85rem;
    padding-inline: .6rem;
  }

  .gtg-header__actions .gtg-nav-toggle,
  .gtg-header__book,
  .gtg-header__book.gtg-button {
    height: 42px;
    min-height: 42px;
    padding: .55rem .68rem;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 900;
    line-height: 1;
  }
}

@media (max-width: 430px) {
  .gtg-shell {
    width: min(var(--gtg-shell), calc(100% - 1.15rem));
  }

  .gtg-brand {
    width: 99px;
  }

  .gtg-header__inner {
    gap: .35rem;
  }

  .gtg-header__actions {
    gap: .32rem;
  }

  .gtg-header__account {
    display: none;
  }

  .gtg-header__actions .gtg-nav-toggle span:first-child {
    display: inline;
  }

  .gtg-nav__account-mobile {
    display: block;
    margin-top: .35rem;
    padding: .65rem .15rem .35rem;
    border-top: 1px solid rgba(255, 250, 243, .22);
    color: var(--gtg-yellow);
    font-weight: 900;
    text-decoration: none;
  }
}