/* Bott & Co — components. Depends on tokens.css */
.bc, .bc * { box-sizing: border-box; }
.bc [hidden] { display: none !important; }
.bc {
  font-family: var(--bc-font);
  color: var(--bc-navy);
  font-size: var(--bc-fs-md);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.bc button, .bc input, .bc select, .bc textarea { font: inherit; }

/* ---------- Brand ---------- */
.bc-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bc-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--bc-navy); color: var(--bc-white); padding: 10px 14px; border-radius: var(--bc-radius); font-weight: var(--bc-fw-semibold); text-decoration: none; }
.bc-skip:focus { top: 12px; outline: 3px solid var(--bc-coral); outline-offset: 2px; }
.bc-logo { display: inline-flex; align-items: center; line-height: 0; color: inherit; border-radius: 2px; }
.bc-logo__svg { display: block; width: 150px; height: auto; aspect-ratio: 770 / 185; }
.bc-logo:focus-visible, .bc-rating:focus-visible, .bc-tp:focus-visible, .bc-footer a:focus-visible { outline: 3px solid var(--bc-focus); outline-offset: 3px; }

/* Trustpilot rating (links to the Trustpilot review page) */
.bc-rating {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px;
  background: var(--bc-teal-050); color: var(--bc-navy);
  min-height: 44px; padding: 8px var(--bc-s4);
  font-size: var(--bc-fs-sm); line-height: 1.2; text-decoration: none;
}
.bc-rating:hover .bc-rating__score { text-decoration: underline; }
.bc-rating__word { font-weight: var(--bc-fw-bold); }
.bc-rating__stars { display: block; width: 96px; height: 18px; }
.bc-rating__score b { font-weight: var(--bc-fw-bold); }
.bc-rating__logo { display: block; width: 74px; height: 18px; margin-top: -2px; }
@media (max-width: 479px) { .bc-rating { flex-wrap: nowrap; gap: 8px; } .bc-rating__of { display: none; } }

/* ---------- Card (question group) ---------- */
.bc-card {
  background: var(--bc-panel);
  border-radius: var(--bc-radius);
  padding: var(--bc-s5) var(--bc-s4);
  display: grid;
  gap: var(--bc-s3);
}
.bc-card__title {
  margin: 0;
  font-size: var(--bc-fs-xl);
  font-weight: var(--bc-fw-bold);
  line-height: 1.3;
  color: var(--bc-navy);
  text-wrap: balance;
}
.bc-card__hint { margin: -4px 0 0; font-size: var(--bc-fs-xs); line-height: 1.4; }
.bc-card__title a, .bc-card__hint a, .bc-link { color: var(--bc-teal); text-decoration: none; font-weight: inherit; }
button.bc-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; text-align: left; justify-self: start; }
.bc-link--inline { display: inline; font-weight: inherit; }
.bc-card__title a:hover, .bc-link:hover { text-decoration: underline; }
.bc-card--enter { animation: bc-enter .28s ease-out both; }
@keyframes bc-enter { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Field ---------- */
.bc-field { display: grid; gap: 6px; }
.bc-field + .bc-field { margin-top: var(--bc-s2); }
.bc-label { font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-bold); }
.bc-control {
  position: relative;
  display: flex; align-items: center;
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-sm);
  min-height: var(--bc-control-h);
  transition: border-color .15s, box-shadow .15s;
}
.bc-control:focus-within { border-color: var(--bc-teal); box-shadow: 0 0 0 3px rgba(0,123,162,.15); }
.bc-control__icon { flex: none; width: 22px; height: 22px; margin-left: var(--bc-s4); color: var(--bc-muted); }
.bc-input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: 0 var(--bc-s4);
  height: calc(var(--bc-control-h) - 2px);
  color: var(--bc-ink);
  font-size: var(--bc-fs-md);
  text-overflow: ellipsis;
}
.bc-control__icon + .bc-input { padding-left: var(--bc-s3); }
.bc-input::placeholder { color: var(--bc-muted); opacity: 1; }
textarea.bc-input { height: auto; min-height: 120px; padding: var(--bc-s3) var(--bc-s4); resize: vertical; line-height: 1.6; }
.bc-control--short { max-width: 190px; }
.bc-clear {
  flex: none; width: 36px; height: 36px; margin-right: 4px;
  display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer; border-radius: 50%;
  color: var(--bc-muted);
}
.bc-clear:hover { color: var(--bc-navy); }
.bc-clear svg { width: 15px; height: 15px; }
.bc-control--error { border-color: var(--bc-error); }
.bc-control--error:focus-within { box-shadow: 0 0 0 3px rgba(212,52,32,.15); border-color: var(--bc-error); }
.bc-control__err-icon { flex: none; width: 16px; height: 16px; margin-right: var(--bc-s4); color: var(--bc-error); }
.bc-error { color: var(--bc-error); font-size: var(--bc-fs-xs); margin: 0; }
/* Soft warning (e.g. the email check): asks the person to look again, doesn't block. */
.bc-control--warn { border-color: var(--bc-warn); }
.bc-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--bc-radius-sm);
  background: var(--bc-warn-050); color: var(--bc-warn-ink); font-size: var(--bc-fs-sm); line-height: 1.35; }
.bc-warn svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--bc-warn); }

/* date input: show calendar icon from design, keep native picker */
.bc-input[type="date"] { color: var(--bc-ink); }
.bc-input[type="date"]:invalid, .bc-input[type="date"].is-empty { color: var(--bc-muted); }
.bc-input[type="date"]::-webkit-calendar-picker-indicator { opacity: .0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* ---------- Combobox (airport / airline / postcode) ---------- */
.bc-combo { position: relative; }
.bc-listbox {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  background: var(--bc-white);
  border: 1px solid var(--bc-teal);
  border-radius: var(--bc-radius-sm);
  box-shadow: 0 8px 24px rgba(25,37,91,.12);
  max-height: 280px; overflow-y: auto;
  margin: 0; padding: 4px 0; list-style: none;
}
.bc-option {
  padding: 10px var(--bc-s4);
  cursor: pointer;
  color: var(--bc-ink);
  line-height: 1.35;
}
.bc-option small { display: block; color: var(--bc-muted-ink); font-size: var(--bc-fs-xs); }
.bc-option[aria-selected="true"], .bc-option:hover { background: var(--bc-panel); }
.bc-option__code { color: var(--bc-teal); font-weight: var(--bc-fw-semibold); }
.bc-listbox__empty { padding: 10px var(--bc-s4); color: var(--bc-muted-ink); font-size: var(--bc-fs-sm); }

/* ---------- Choice (radio card) ---------- */
.bc-choices { display: grid; gap: var(--bc-s3); border: 0; margin: 0; padding: 0; min-width: 0; }
.bc-choices legend { padding: 0; margin-bottom: var(--bc-s3); }
.bc-choices__head {
  display: flex; justify-content: space-between;
  padding: 0 var(--bc-s4) 0 50px;
  font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semibold); color: var(--bc-muted-ink);
}
.bc-choice {
  position: relative;
  display: flex; align-items: center; gap: var(--bc-s3);
  min-height: var(--bc-control-h);
  padding: 0 var(--bc-s4);
  background: var(--bc-white);
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius-sm);
  cursor: pointer;
  color: var(--bc-ink);
  transition: border-color .15s;
}
.bc-choice:hover { border-color: var(--bc-teal); }
.bc-choice input { position: absolute; opacity: 0; pointer-events: none; }
.bc-choice__dot {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--bc-muted);
  background: var(--bc-white);
  display: grid; place-items: center;
}
.bc-choice__label { flex: 1; }
.bc-choice__meta { font-variant-numeric: tabular-nums; }
.bc-choice:has(input:checked) { border-color: var(--bc-teal); }
.bc-choice:has(input:checked) .bc-choice__dot { border-color: var(--bc-teal); }
.bc-choice:has(input:checked) .bc-choice__dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--bc-teal); }
.bc-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(0,123,162,.25); }
.bc-choice .tnum { font-variant-numeric: tabular-nums; }

/* ---------- Checkbox ---------- */
.bc-check { display: flex; gap: var(--bc-s3); align-items: flex-start; cursor: pointer; font-size: var(--bc-fs-sm); color: var(--bc-ink); line-height: 1.4; }
.bc-check input { position: absolute; opacity: 0; pointer-events: none; }
.bc-check__box {
  flex: none; width: 22px; height: 22px; margin-top: -1px;
  border: 1px solid var(--bc-muted); border-radius: 3px; background: var(--bc-white);
  display: grid; place-items: center;
}
.bc-check__box svg { width: 14px; height: 14px; color: var(--bc-white); opacity: 0; }
.bc-check input:checked + .bc-check__box { background: var(--bc-teal); border-color: var(--bc-teal); }
.bc-check input:checked + .bc-check__box svg { opacity: 1; }
.bc-check input:focus-visible + .bc-check__box { box-shadow: 0 0 0 3px rgba(0,123,162,.3); }
.bc-check a { color: var(--bc-teal); text-decoration: none; }
.bc-check--error .bc-check__box { border-color: var(--bc-error); }

/* ---------- Buttons ---------- */
.bc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--bc-s2);
  min-height: var(--bc-button-h);
  padding: 0 var(--bc-s6);
  border: 0; border-radius: var(--bc-radius);
  font-weight: var(--bc-fw-semibold); font-size: var(--bc-fs-lg);
  cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.bc-btn--primary { background: var(--bc-teal); color: var(--bc-white); }
.bc-btn--primary:hover { background: var(--bc-teal-600); }
.bc-btn--commit { background: var(--bc-coral); color: var(--bc-white); }
.bc-btn--commit:hover { background: var(--bc-coral-600); }
.bc-btn:focus-visible, .bc-back:focus-visible, .bc-link:focus-visible { outline: 3px solid var(--bc-focus); outline-offset: 2px; }
.bc-btn.is-busy { position: relative; color: transparent !important; }
.bc-btn.is-busy::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: bc-spin .7s linear infinite;
}
@keyframes bc-spin { to { transform: rotate(360deg); } }
.bc-back {
  background: none; border: 0; cursor: pointer;
  color: var(--bc-teal); font-weight: var(--bc-fw-semibold); font-size: var(--bc-fs-lg);
  padding: var(--bc-s3) var(--bc-s4);
}
.bc-back:hover { text-decoration: underline; }
.bc-actions { display: grid; gap: var(--bc-s5); justify-items: center; margin-top: var(--bc-s2); }
.bc-actions .bc-btn { width: 100%; }

/* ---------- Notices ---------- */
.bc-secure {
  display: flex; align-items: center; gap: var(--bc-s3);
  border: 1px solid var(--bc-line); border-radius: var(--bc-radius);
  padding: var(--bc-s4) var(--bc-s5);
  font-weight: var(--bc-fw-bold); font-size: var(--bc-fs-md); color: var(--bc-navy);
  background: var(--bc-white);
}
.bc-secure svg { width: 20px; height: 22px; flex: none; color: var(--bc-teal); }
.bc-banner {
  display: flex; gap: var(--bc-s3); align-items: flex-start;
  background: var(--bc-navy); color: var(--bc-white);
  border-radius: var(--bc-radius);
  padding: var(--bc-s5);
  font-size: var(--bc-fs-md); line-height: 1.55;
}
.bc-banner svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.bc-banner strong { font-weight: var(--bc-fw-bold); }
.bc-banner p { margin: 0; }
.bc-banner a { color: inherit; font-weight: var(--bc-fw-semibold); text-decoration: underline; }
.bc-banner--warn { background: var(--bc-coral-050); color: var(--bc-navy); }
.bc-banner--warn svg { color: var(--bc-coral); }

/* ---------- Pill ---------- */
.bc-pill {
  display: inline-flex; align-items: center;
  padding: 6px 16px; border-radius: 999px;
  background: var(--bc-coral-050); color: var(--bc-coral);
  font-weight: var(--bc-fw-semibold); font-size: var(--bc-fs-md);
  white-space: nowrap;
}
.bc-pill--ok { background: #e6f3ee; color: #1c7a55; }

/* ---------- Flight summary ---------- */
.bc-summary { border: 1px solid var(--bc-line); border-radius: var(--bc-radius); background: var(--bc-white); overflow: hidden; }
.bc-summary__row { padding: var(--bc-s4) var(--bc-s4); border-top: 1px solid var(--bc-line-soft); display: grid; grid-template-columns: minmax(120px, 44%) 1fr; gap: var(--bc-s3); align-items: center; }
.bc-summary__row:first-child { border-top: 0; }
.bc-summary__k { color: var(--bc-muted); }
.bc-summary__v { font-weight: var(--bc-fw-bold); font-variant-numeric: tabular-nums; }
.bc-summary__head { display: flex; flex-wrap: wrap; gap: var(--bc-s2) var(--bc-s6); align-items: center; padding: var(--bc-s4); }
.bc-summary__head .bc-summary__k { margin-right: 6px; }
.bc-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: var(--bc-s4); border-top: 1px solid var(--bc-line-soft); }
.bc-route__code { font-size: 2rem; font-weight: var(--bc-fw-bold); line-height: 1.1; letter-spacing: 0.01em; }
.bc-route__city { color: var(--bc-muted); font-size: var(--bc-fs-sm); }
.bc-route__to { text-align: right; }
.bc-route svg { width: 22px; height: 22px; color: var(--bc-teal); }

/* ---------- Passenger block ---------- */
.bc-subhead { font-size: var(--bc-fs-lg); font-weight: var(--bc-fw-semibold); margin: 0; }
.bc-inline-choice { display: flex; gap: var(--bc-s3); flex-wrap: wrap; }
.bc-inline-choice .bc-choice { flex: 1 1 120px; }

@media (prefers-reduced-motion: reduce) {
  .bc-card--enter { animation: none; }
  .bc-btn.is-busy::after { animation-duration: 2s; }
}

/* ---------- Data-source indicator ---------- */
.bc-status-slot { position: relative; }
.bc-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  border: 1px solid var(--bc-line-soft); background: var(--bc-white);
  font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semibold); color: var(--bc-muted-ink);
  cursor: pointer; line-height: 1.3; white-space: nowrap;
}
.bc-status:hover { border-color: var(--bc-line); color: var(--bc-navy); }
.bc-status:focus-visible { outline: 2px solid var(--bc-focus); outline-offset: 2px; }
.bc-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bc-muted); flex: none; }
.bc-status[data-state="connecting"] .bc-status__dot { background: #d99a1b; animation: bc-pulse 1.2s ease-in-out infinite; }
.bc-status[data-state="ready"] .bc-status__dot { background: #1c7a55; }
.bc-status[data-state="connected"] .bc-status__dot { background: #1c7a55; box-shadow: 0 0 0 3px rgba(28,122,85,.15); }
.bc-status[data-state="error"] .bc-status__dot { background: var(--bc-error); }
.bc-status[data-state="error"] { color: var(--bc-error); }
@keyframes bc-pulse { 50% { opacity: .35; } }
.bc-status__pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  width: min(300px, calc(100vw - 32px));
  background: var(--bc-white); border: 1px solid var(--bc-line-soft); border-radius: var(--bc-radius);
  box-shadow: 0 10px 28px rgba(25,37,91,.14);
  padding: 12px 14px; font-size: var(--bc-fs-xs); line-height: 1.45; color: var(--bc-navy);
}
.bc-status__pop p { margin: 0 0 8px; }
.bc-status__pop p:last-child { margin-bottom: 0; }
.bc-status__sub { font-weight: var(--bc-fw-bold); font-size: var(--bc-fs-xs); color: var(--bc-muted-ink); margin-top: 10px !important; }
.bc-status__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bc-status__list li { display: flex; gap: 8px; align-items: baseline; }
.bc-status__list .bc-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: var(--bc-fw-bold); font-variant-numeric: tabular-nums; min-width: 62px; text-align: left; }
.bc-status__list span { color: var(--bc-muted-ink); }
@media (prefers-reduced-motion: reduce) { .bc-status[data-state="connecting"] .bc-status__dot { animation: none; } }
.bc-status__why { color: var(--bc-muted-ink); font-size: var(--bc-fs-xs); }
.bc-status__retry { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: var(--bc-fw-semibold); }
