/* Cookie consent of the landing page (templates/core/_cookie_consent.html) */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 24px rgba(16, 24, 20, .12); padding: 14px 0; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-banner-inner p { margin: 0; flex: 1 1 420px; line-height: 1.5; }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) {
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1 1 auto; }
}
.cookie-dialog form { padding: 22px 22px 16px; }
.cookie-dialog h2 { margin: 0 0 14px; font-size: 1.15rem; }
.cookie-category { align-items: flex-start; margin-bottom: 14px; }
.landing-footer { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 16px 90px; }
.landing-footer a { color: var(--muted); }
.legal-text { padding-top: 24px; }
.legal-text h2 { font-size: 1.1rem; margin: 22px 0 6px; }
.legal-text .card-body > h2:first-child { margin-top: 0; }

/* Timetable (booking/timetable.html, embed.js data-ticketsystem-timetable): a day box, its departures as cards */
.tt { display: grid; gap: 22px; }
body.embedded.tt-page { background: var(--surface); }  /* inside the website: white, not the booking pages' grey */
.tt-day { display: grid; grid-template-columns: minmax(120px, 300px) minmax(0, 1fr); gap: 30px; align-items: stretch; }
.tt-date { background: var(--brand); color: var(--brand-ink); border-radius: 12px; padding: 40px 16px; text-align: center; font-size: 1.6rem; line-height: 1.25; }
.tt-date strong { display: block; font-weight: 800; }
.tt-date span { font-weight: 400; }
.tt-trips { display: grid; gap: 10px; align-content: start; }
.tt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 30px; }
.tt-card summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; cursor: pointer; list-style: none; }
.tt-card summary::-webkit-details-marker { display: none; }
.tt-head { display: grid; justify-items: start; gap: 12px; }
.tt-title { font-size: 1.55rem; font-weight: 500; line-height: 1.25; }
.tt-tag { background: var(--line); border-radius: 999px; padding: 4px 18px; font-size: 1.05rem; }
.tt-chevron { color: var(--brand); transform: rotate(180deg); transition: transform .15s; margin-top: 10px; }
.tt-card:not([open]) .tt-chevron { transform: none; }
.tt-body { margin-top: 24px; display: grid; justify-items: start; gap: 16px; }
.tt-time { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.15rem; }
.tt-stops { border-collapse: collapse; min-width: min(500px, 100%); font-size: 1.15rem; }
.tt-stops td { background: var(--surface-2); padding: 16px 20px; border-bottom: 3px solid var(--line-strong); }
.tt-stops td + td { width: 1%; white-space: nowrap; padding-right: 120px; }
.tt-book { display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 22px 32px; font-size: 1.1rem; font-weight: 500; text-decoration: none; }
.tt-book:hover { filter: brightness(1.08); }
.tt-note { margin: 0; font-weight: 600; color: var(--muted); }
.tt-more { text-align: center; }
.tt-more .btn { padding: 0 72px; }  /* twice the width of a normal button */
.tt-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.tt-search .field { flex: 1 1 200px; margin: 0; }
.tt-search .field input, .tt-search .field select { width: 100%; }
.tt-search-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-date-input { position: relative; }
.tt-date-input input { padding-right: 46px; }
.tt-date-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.tt-date-toggle:hover { background: var(--surface-2); color: var(--ink); }
/* date picker (flow.js, input[data-datepicker]) */
.dp { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: 340px; padding: 14px 12px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.dp-nav { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.dp-nav:hover { background: var(--surface-2); }
.dp-nav:disabled { opacity: .3; cursor: default; background: none; }
.dp-title { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 1.1rem; }
.tt-search .dp-title select, .dp-title select { flex: none; width: auto; min-height: 0; padding: 4px 6px; border: 0; background-color: transparent; font: inherit; cursor: pointer; }
.dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.dp-wd { padding: 4px 0 6px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.dp-day { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.dp-day:hover { background: var(--surface-2); }
.dp-day.is-other { color: var(--muted); }
.dp-day.is-today { border-color: var(--line-strong); }
.dp-day.is-selected { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.dp-day:disabled { color: var(--line-strong); background: none; cursor: default; }
.dp-narrow { padding: 12px 8px 8px; }
.dp-narrow .dp-nav { width: 28px; height: 28px; }
.dp-narrow .dp-title { gap: 2px; font-size: .95rem; }
.tt-search .dp-narrow .dp-title select, .dp-narrow .dp-title select { padding: 2px; }
@media (max-width: 720px) {
  .tt-day { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tt-date { padding: 14px; font-size: 1.2rem; }
  .tt-date strong { display: inline; }
  .tt-date strong br { display: none; }
  .tt-card { padding: 18px; }
  .tt-title { font-size: 1.25rem; }
  .tt-stops td + td { padding-right: 20px; }
  .tt-more .btn { width: 100%; padding: 0 16px; white-space: normal; }  /* the wide button would not fit */
}

/* Back office: the connection is gone (pwa.js) */
.offline-banner { background: #7a1a12; color: #fff; padding: 8px 28px; font-size: .9rem; text-align: center; }
.offline-banner[hidden] { display: none; }
