/* Header basket: one native Woo ticket count, independent of Site Credit. */
body.tmc24-theme .tmc24-header .tmc24-actions > a.tmc24-icon-btn {
  width:44px!important; height:44px!important; min-width:44px!important; min-height:44px!important;
}
body.tmc24-theme .tmc24-header .tmc24-mobile-toggle {
  width:44px!important; height:44px!important; min-width:44px!important; min-height:44px!important;
}
body.tmc24-theme .tmc-header-basket {
  display:flex; align-items:center; gap:8px; min-height:44px; min-width:44px;
  flex:0 1 auto; padding:2px 4px; color:#10243d; text-decoration:none;
  border:0; border-radius:0; background:transparent; box-shadow:none;
}
.tmc-header-basket__icon {
  display:grid; place-items:center; position:relative; width:28px; height:44px;
  flex:0 0 28px; border:0; border-radius:0; background:transparent; box-shadow:none;
}
.tmc-header-basket__icon svg { width:24px; height:24px; }
.tmc-header-basket__count {
  font-size:15px; line-height:1.2; font-weight:750; font-variant-numeric:tabular-nums;
  color:#0768d5; white-space:nowrap;
}
.tmc-header-basket__summary { display:flex; flex-direction:column; min-width:0; line-height:1.2; }
.tmc-header-basket__label { font-size:11px; font-weight:600; letter-spacing:.02em; }
.tmc-header-basket__quantity { display:flex; flex-wrap:nowrap; align-items:baseline; margin-top:2px; color:#0768d5; }
.tmc-header-basket__unit { font-size:11px; line-height:1.2; font-weight:500; }
body.tmc24-theme .tmc-header-basket:hover { color:#0768d5; }
body.tmc24-theme .tmc-header-basket:focus-visible,
body.tmc24-theme .tmc24-actions .tmc24-icon-btn:focus-visible,
body.tmc24-theme .tmc24-mobile-toggle:focus-visible { outline:2px solid #0768d5; outline-offset:2px; }
@media(max-width:760px) {
  body.tmc24-theme .tmc24-nav { height:auto!important; min-height:58px; flex-wrap:wrap!important; padding-block:6px!important; }
  body.tmc24-theme .tmc24-mobile-toggle,
  body.tmc24-theme .tmc24-actions .tmc24-icon-btn {
    width:44px!important; height:44px!important; min-width:44px!important; flex-basis:44px!important;
  }
  body.tmc24-theme .tmc24-mobile-toggle span:nth-child(1) { top:14px!important; }
  body.tmc24-theme .tmc24-mobile-toggle span:nth-child(2) { top:21px!important; }
  body.tmc24-theme .tmc24-mobile-toggle span:nth-child(3) { top:28px!important; }
  body.tmc24-theme .tmc-header-basket { gap:6px; padding-inline:0; }
  .tmc-header-basket__count { font-size:14px; }
  .tmc-header-basket__label { font-size:10px; }
}
/* The menu opens below the complete header; mobile actions share one row. */
@media(max-width:1080px) {
  body.tmc24-theme .tmc24-header .tmc24-menu-shell {
    position:absolute!important; inset:calc(100% + 1px) 0 auto 0!important;
    max-height:calc(100vh - 180px); max-height:calc(100dvh - 180px);
    overflow-y:auto; overscroll-behavior:contain;
  }
}
@media(max-width:760px) {
  body.tmc24-theme .tmc24-header .tmc24-nav {
    display:grid!important; grid-template-columns:44px minmax(0,1fr) 44px;
    width:calc(100% - 24px)!important; column-gap:4px!important; row-gap:0!important;
    padding:6px 0!important; align-items:center!important; min-width:0;
  }
  body.tmc24-theme .tmc24-header .tmc24-nav > .tmc24-logo {
    grid-column:1; grid-row:1; order:0!important; min-width:44px!important;
    width:44px!important; height:44px!important; padding:0!important; margin:0!important;
  }
  body.tmc24-theme .tmc24-header .tmc24-logo__image { width:42px!important; height:42px!important; object-fit:contain; }
  /* Keep the brand as the accessible link name while showing its compact mark. */
  body.tmc24-theme .tmc24-header .tmc24-logo__text {
    position:absolute!important; width:1px!important; height:1px!important;
    padding:0!important; margin:-1px!important; overflow:hidden!important;
    clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important;
  }
  body.tmc24-theme .tmc24-header .tmc24-nav > .tmc24-mobile-controls {
    grid-column:3; grid-row:1; order:3!important; margin:0!important; width:44px!important;
  }
  body.tmc24-theme .tmc24-header .tmc24-nav > .tmc24-actions {
    display:grid!important; grid-template-columns:minmax(44px,max-content) max-content 44px; justify-content:end!important;
    grid-column:2; grid-row:1; order:2!important; gap:4px!important;
    width:100%!important; min-width:0!important; margin:0!important; align-items:center!important;
  }
  body.tmc24-theme .tmc24-header .tmc24-actions .tmc-header-credit {
    grid-column:1; grid-row:1; width:100%; min-width:0; max-width:none!important;
    padding-inline:2px; margin:0!important; align-items:flex-end!important; text-align:right;
  }
  body.tmc24-theme .tmc24-header .tmc24-actions .tmc-header-basket {
    grid-column:2; grid-row:1; min-width:44px; max-width:none; gap:3px;
    padding-inline:0; margin:0!important;
  }
  body.tmc24-theme .tmc24-header .tmc24-actions > .tmc24-icon-btn { grid-column:3; grid-row:1; }
  body.tmc24-theme .tmc24-header .tmc-header-basket__icon { width:24px; flex-basis:24px; }
  body.tmc24-theme .tmc24-header .tmc-header-credit__value { font-size:14px; overflow-wrap:anywhere; }
}
