/* Ticket drawer: vertical TICKETS tab + slide-in panel (js/tickets.js, partial src/partials/tickets-drawer.html).
   Copied 1:1 from the We Love Playmobil site (playmobil-site/site/css/styles.css, ".tix" rules) so the
   drawer looks and behaves the same. Scoped: the Playmobil tokens and base rules below live on .tix /
   .tix-tab / .thanks only, so main.css (and its own --yellow) is not affected. Loaded on every page.
   Font: Playmobil uses Nunito Sans; it is not self-hosted here yet (see the @font-face note), so the
   stack falls back to system-ui until site/fonts/nunito-sans-*.woff2 are added. */

/* Nunito Sans, self-hosted, once the files are in site/fonts (Google Fonts, OFL; variable 200-1000):
@font-face{font-family:'Nunito Sans';font-style:normal;font-weight:200 1000;font-display:swap;src:url(/fonts/nunito-sans-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
*/

/* Playmobil tokens and base rules, scoped to the drawer */
.tix-tab, .tix {
  --navy: #04163F;
  --yellow: #FFC72C;
  --blue: #1E8FD6;
  --slate: #46608F;
  --ease: cubic-bezier(0.33, 0, 0.67, 1); /* easy ease */
  font-family: 'Nunito Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Playmobil's page defaults inside the drawer instead of main.css ones (dark color-scheme, mono line
   height, bare buttons, yellow focus ring). :where() keeps them at element weight, so every .tix__*
   rule below still wins, as it does on the Playmobil site. */
.tix { font-size: 16px; line-height: normal; color-scheme: light; text-align: left; }
:where(.tix) *, :where(.tix) *::before, :where(.tix) *::after { box-sizing: border-box; }
:where(.tix) p { margin: 0; font-weight: inherit; }
:where(.tix) a { color: inherit; text-decoration: none; }
@media (hover: hover) { :where(.tix) a:hover { color: var(--yellow); text-decoration: none; } }
:where(.tix) button { font: inherit; padding: 1px 6px; }
:where(.tix) svg { display: inline; max-width: none; }
:where(.tix) :focus-visible { outline: revert; outline-offset: revert; }
.tix .icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Ticket sales: until tickets.salesStart (head script in layout.html) the TICKETS tab stays hidden */
html:not(.sales-open) [data-sales-only] { display: none !important; }

.tix-tab { position: fixed; z-index: 150; right: 0; top: 58%; transform: translate(0,-50%) rotate(180deg); writing-mode: vertical-rl; padding: 26px 15px; border: 0; border-radius: 0 18px 18px 0; background: var(--yellow); color: var(--navy); font: 1000 17px/1 'Nunito Sans', system-ui, sans-serif; letter-spacing: .12em; cursor: pointer; box-shadow: 0 10px 30px rgba(2,10,35,.35); transition: transform .45s var(--ease), padding .3s var(--ease), background .3s var(--ease); animation: tix-tab-in .8s var(--ease) .9s backwards; }
@keyframes tix-tab-in { from { transform: translate(110%,-50%) rotate(180deg); } to { transform: translate(0,-50%) rotate(180deg); } }
@media (hover: hover) { .tix-tab:hover { padding-left: 21px; background: #fff; } }
.tix-tab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tix-tab.is-hidden { transform: translate(110%,-50%) rotate(180deg); }
.tix-locked, .tix-locked body { overflow: hidden; }
.tix { position: fixed; inset: 0; z-index: 400; }
.tix[hidden] { display: none; }
.tix__overlay { position: absolute; inset: 0; background: rgba(2,10,35,.62); opacity: 0; transition: opacity .35s var(--ease); }
.tix__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); overflow-y: auto; overscroll-behavior: contain; background: #fff; color: var(--navy); box-shadow: -20px 0 60px rgba(2,10,35,.35); transform: translateX(100%); transition: transform .4s var(--ease); outline: none; }
.tix.is-open .tix__overlay { opacity: 1; }
.tix.is-open .tix__panel { transform: none; }
.tix__top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; background: #fff; border-bottom: 1px solid #E4ECF8; }
.tix__duration { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); }
.tix__duration .icon { font-size: 20px; }
.tix__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F3F7FD; color: var(--navy); font-size: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
@media (hover: hover) { .tix__close:hover { background: var(--yellow); } }
.tix__body { padding: 16px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.tix__body[hidden] { display: none; }
.tix__title { font-size: 22px; line-height: 1.05; font-weight: 1000; letter-spacing: .01em; }
.tix__subtitle { margin-top: -8px; font-size: 14.5px; color: var(--slate); }
.tix__modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid #D5DEEC; border-radius: 12px; }
.tix__modes[hidden] { display: none; }
.tix__modes button { border: 0; border-radius: 9px; padding: 9px 8px; background: transparent; color: var(--navy); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .25s var(--ease); }
.tix__modes button[aria-checked="true"] { background: var(--yellow); font-weight: 900; }
.tix__note, .tix__tier { font-size: 13.5px; line-height: 1.45; color: var(--slate); }
.tix__note[hidden], .tix__tier[hidden] { display: none; }
.tix__tier { font-weight: 800; color: var(--blue); }
.tix__when { display: flex; flex-direction: column; gap: 10px; }
.tix__when[hidden] { display: none; }
.tix__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tix__field { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border: 1px solid #D5DEEC; border-radius: 12px; background: #fff; color: var(--navy); text-align: left; cursor: pointer; }
.tix__field[aria-expanded="true"] { border-color: var(--navy); box-shadow: 0 0 0 2px var(--yellow); }
.tix__field:disabled { opacity: .55; cursor: default; }
.tix__field-label { font-size: 12px; font-weight: 800; color: var(--slate); }
.tix__field-value { font-size: 15px; font-weight: 700; }
.tix__picker { border: 1px solid #D5DEEC; border-radius: 14px; padding: 14px; }
.tix__picker[hidden] { display: none; }
.tix__cal-head { display: flex; align-items: center; justify-content: space-between; }
.tix__cal-month { font-size: 16px; font-weight: 900; text-transform: capitalize; }
.tix__cal-nav { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #EEF2F8; color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; }
.tix__cal-nav:disabled { opacity: .35; cursor: default; }
.tix__cal-hint { margin: 8px 0 6px; font-size: 12px; color: var(--slate); text-align: center; }
.tix__cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.tix__cal-grid--head span { padding: 4px 0; font-size: 12px; color: var(--slate); text-transform: capitalize; }
.tix__day { height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tix__day.is-peak { color: var(--blue); }
.tix__day.is-off { color: #C3CCDA; font-weight: 400; cursor: default; }
@media (hover: hover) { button.tix__day:hover { background: #EEF2F8; } }
.tix__day.is-selected, .tix__day.is-selected:hover { background: var(--yellow); color: var(--navy); }
.tix__cal-lock { position: relative; }
.tix__cal-lock .tix__cal-grid { filter: blur(4px); opacity: .55; pointer-events: none; user-select: none; }
.tix__cal-locked { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; font-size: 16px; font-weight: 900; color: var(--navy); text-align: center; }
.tix__cal-close { display: block; margin: 8px 0 0 auto; border: 0; background: none; color: var(--slate); font-size: 14px; cursor: pointer; }
.tix__slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tix__slot { padding: 9px 0; border: 1px solid #D5DEEC; border-radius: 10px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 800; cursor: pointer; }
.tix__slot.is-selected { background: var(--yellow); border-color: var(--yellow); }
@media (hover: hover) { .tix__slot:not(.is-selected):not(:disabled):hover { border-color: var(--navy); } }
.tix__slot.is-soldout { display: flex; flex-direction: column; align-items: center; padding: 5px 0; background: #F3F5F9; border-color: #E4E9F1; color: #9AA6B8; cursor: not-allowed; }
.tix__slot.is-soldout small { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tix__day.is-soldout { color: #9AA6B8; text-decoration: line-through; }
.tix__list { border: 1px solid #D5DEEC; border-radius: 16px; padding: 2px 14px; }
.tix__row { padding: 9px 0; border-bottom: 1px solid #E4ECF8; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; }
.tix__row:last-child { border-bottom: 0; }
.tix__row-name { display: flex; flex-direction: column; font-size: 15px; font-weight: 800; line-height: 1.2; }
.tix__row-name small { font-size: 12px; font-weight: 500; color: var(--slate); }
.tix__row-note { color: var(--blue) !important; }
.tix__row-price { font-size: 15px; font-weight: 900; white-space: nowrap; text-align: right; }
.tix__qty { display: flex; align-items: center; gap: 6px; }
.tix__btn { width: 34px; height: 34px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease); }
.tix__btn svg { width: 18px; height: 18px; fill: var(--navy); }
.tix__btn--minus { background: #DDE3EC; }
.tix__btn--plus { background: var(--yellow); }
.tix__btn:disabled { opacity: .45; cursor: default; }
.tix__btn:not(:disabled):active { transform: scale(.92); }
.tix__count { min-width: 24px; text-align: center; font-size: 16px; font-weight: 800; }
.tix__groups { font-size: 13px; line-height: 1.45; color: var(--slate); }
.tix__groups a, .tix__agree a, .tix__done-text a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.tix__promo summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 800; cursor: pointer; }
.tix__promo summary::-webkit-details-marker { display: none; }
.tix__promo summary .icon { font-size: 22px; transition: transform .3s var(--ease); }
.tix__promo[open] summary .icon { transform: rotate(180deg); }
.tix__promo-row { display: flex; gap: 8px; margin-top: 10px; }
.tix__promo-row input, .tix__input { flex: 1; min-width: 0; padding: 13px 14px; border: 1px solid #C9D3E3; border-radius: 12px; font: inherit; font-size: 16px; color: var(--navy); }
.tix__promo-row input:focus, .tix__input:focus { outline: 2px solid var(--yellow); outline-offset: 0; border-color: var(--navy); }
.tix__promo-row button { padding: 0 18px; border: 0; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; cursor: pointer; }
.tix__hint { font-size: 12.5px; color: var(--slate); }
.tix__hint[hidden] { display: none; }
.tix__vat, .tix__total { display: flex; justify-content: space-between; align-items: baseline; }
.tix__vat { font-size: 13px; color: var(--slate); }
.tix__total { font-size: 24px; font-weight: 1000; }
.tix__form { display: flex; flex-direction: column; gap: 8px; }
.tix__label { font-size: 17px; font-weight: 900; }
.tix__agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.tix__agree input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--navy); }
.tix__error { padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #A0101A; font-size: 13.5px; font-weight: 700; }
.tix__error[hidden] { display: none; }
.tix__next { margin-top: 6px; padding: 16px; border: 0; border-radius: 12px; background: #C9CFD9; color: #fff; font: 1000 17px/1 'Nunito Sans', system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; transition: background .25s var(--ease); }
.tix__next--ready { background: var(--yellow); color: var(--navy); }
.tix__next[aria-busy="true"] { opacity: .7; }
.tix__merchant { font-size: 12px; color: var(--slate); text-align: center; }
.tix__done-text { font-size: 16px; line-height: 1.6; }
.tix__more { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 72px; margin-top: -72px; padding: 0 0 12px; border: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 55%, #fff 100%); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.tix__more svg { width: 40px; height: 40px; padding: 6px; border-radius: 50%; background: var(--yellow); fill: var(--navy); box-shadow: 0 6px 18px rgba(2,10,35,.25); }
.tix__more.is-visible { opacity: 1; pointer-events: auto; }
.tix__more.is-visible svg { animation: tix-bounce 1.4s var(--ease) infinite; }
@keyframes tix-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  .tix *, .tix *::before, .tix *::after, .tix, .tix-tab { transition-duration: 0s !important; }
  .tix-tab { animation: none; }
  .tix__more.is-visible svg { animation: none; }
}
@media (max-width: 800px) {
  .tix-tab { top: 62%; padding: 20px 12px; font-size: 15px; }
  .tix__panel { width: 100vw; }
  .tix__body, .tix__top { padding-left: 18px; padding-right: 18px; }
  .tix__body { padding-top: 12px; gap: 10px; }
  .tix__title { font-size: 20px; }
  .tix__list { padding: 0 12px; }
  .tix__row { gap: 8px; padding: 8px 0; }
  .tix__row-name { font-size: 14.5px; }
  .tix__row-name small { font-size: 11.5px; }
  .tix__row-price { font-size: 14.5px; }
  .tix__btn { width: 32px; height: 32px; }
  .tix__qty { gap: 4px; }
}

/* Return pages after Stripe (/thank-you, /cancel): Vincent Hall .legal page with the Playmobil picture */
.thanks__image { display: block; max-width: 420px; margin: 0 0 32px; }
.thanks__image img { width: 100%; height: auto; border-radius: 24px; }
.thanks__see { font: 30px/39px var(--sans); }
.thanks__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.legal .thanks__back { padding: 10px 22px; font-size: 16px; text-decoration: none; }
@media (max-width: 750px) { .thanks__see { font-size: 24px; line-height: 31px; } }
