.ido-btx-widget {
  --btx-blue: #1e3e52;
  --btx-muted: #5f6262;
  --btx-border: rgba(30, 62, 82, 0.16);
  --btx-bg: #f8f8f8;
  color: inherit;
}

.ido-btx-widget * { box-sizing: border-box; }
.ido-btx-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.ido-btx-heading h4, .ido-btx-heading p { margin:0; }
.ido-btx-heading a { color:var(--btx-blue); }

.ido-btx-compact,
.ido-btx-event {
  width:100%;
  padding:18px;
  border:1px solid var(--btx-border);
  border-radius:18px;
  background:var(--btx-bg);
}

.ido-btx-compact--getting-here {
  display:flex;
  flex-direction:column;
  justify-content:center;
  height:100%;
  margin-top:15px;
  margin-bottom:15px;
}

.ido-btx-tabs {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  margin-bottom:14px;
}

.ido-btx-tab {
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  min-height:40px;
  padding:8px 12px;
  border:1px solid var(--btx-border);
  border-radius:6px;
  background:#fff;
  color:var(--btx-blue);
  font:inherit;
  font-size:14px;
  line-height:1.2;
  font-weight:500;
  cursor:pointer;
}

.ido-btx-tab i {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  min-width:20px;
  border:1px solid rgba(30, 62, 82, 0.22);
  border-radius:999px;
  background:rgba(30, 62, 82, 0.06);
  font-size:10px;
  line-height:1;
}

.ido-btx-tab.is-active { background:var(--btx-blue); color:#fff; border-color:var(--btx-blue); }
.ido-btx-tab.is-active i { border-color:rgba(255,255,255,.45); background:rgba(255,255,255,.14); color:#fff; }
.ido-btx-label-short { display:none; }

.ido-btx-controls,
.ido-btx-route-controls { display:grid; gap:10px; margin-bottom:14px; }
.ido-btx-controls { grid-template-columns:1fr; }
.ido-btx-route-controls { grid-template-columns:1fr 40px 1fr; align-items:end; }

.ido-btx-widget label { position:relative; display:block; min-width:0; max-width:100%; }
.ido-btx-widget label > span {
  position:absolute;
  z-index:2;
  top:-7px;
  left:10px;
  padding:0 5px;
  background:var(--btx-bg);
  color:var(--btx-muted);
  font-size:12px;
  line-height:1;
  font-weight:400;
}

.ido-btx-widget select,
.ido-btx-widget input[type=date] {
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:42px;
  padding:10px 12px 8px;
  border:1px solid rgba(30,62,82,.22);
  border-radius:6px;
  background:#fff;
  color:inherit;
  font:inherit;
  font-size:14px;
  line-height:1.2;
  font-weight:400;
}

.ido-btx-widget input[type=date] { cursor:pointer; }
.ido-btx-swap { width:40px; height:42px; border:1px solid var(--btx-border); border-radius:6px; background:#fff; color:var(--btx-blue); cursor:pointer; }

.ido-btx-route--compact {
  margin:0 0 10px;
  color:var(--btx-muted);
  font-size:13px;
  line-height:1.35;
}

.ido-btx-status { margin:8px 0 10px; color:var(--btx-muted); font-size:13px; line-height:1.35; }
.ido-btx-status:empty { display:none; }

.ido-btx-times { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.ido-btx-times--full { display:block; }

.ido-btx-departure {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:10px 12px;
  border:1px solid var(--btx-border);
  border-radius:10px;
  background:var(--color_theme_lighter, #f1f5f2);
}

.ido-btx-departure--pill {
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:36px;
  padding:8px;
  text-align:center;
  border:1px solid var(--btx-border);
  border-radius:999px;
  background:var(--color_theme_lighter, #f1f5f2);
  color:var(--btx-blue);
  text-decoration:none !important;
  cursor:pointer;
  transition:background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.ido-btx-departure--pill:hover,
.ido-btx-departure--pill:focus-visible {
  color:var(--btx-blue);
  text-decoration:none !important;
  border-color:rgba(30,62,82,.32);
  background:#fff;
}

.ido-btx-departure--pill:active {
  transform:translateY(1px);
}

.ido-btx-departure--pill.has-low-seats {
  border-style:dashed;
  cursor:help;
}
.ido-btx-times--full .ido-btx-departure + .ido-btx-departure { margin-top:8px; }
.ido-btx-time { color:var(--btx-blue); font-size:16px; line-height:1; font-weight:600; letter-spacing:-0.02em; }
.ido-btx-meta { flex:1; min-width:0; color:var(--btx-muted); font-size:13px; }
.ido-btx-low-seats { color:var(--btx-muted); font-size:10px; line-height:1.15; font-weight:500; }
.ido-btx-empty { grid-column:1 / -1; margin:0; color:var(--btx-muted); font-weight:400; }

.ido-btx-fares {
  margin-top:10px;
  color:var(--btx-muted);
  font-size:13px;
  line-height:1.35;
}
.ido-btx-fares:empty { display:none; }

.ido-btx-compact-alert {
  margin:12px 0 0;
  padding:10px 12px;
  border-color:transparent;
  background:var(--color_theme_lighter, #f1f5f2);
  color:inherit;
  font-size:.9em;
  line-height:1.35;
}
.ido-btx-compact-alert strong { font-weight:500; }

.ido-btx-full { margin:48px 0; }
.ido-btx-full-inner { background:#fff; border:1px solid var(--btx-border); border-radius:18px; padding:clamp(22px,4vw,42px); box-shadow:0 18px 45px rgba(30,62,82,.08); }
.ido-btx-form-box { background:var(--btx-bg); border:1px solid rgba(30,62,82,.12); border-radius:14px; padding:clamp(16px,2.4vw,24px); margin:20px 0; }
.ido-btx-date-control { margin-top:12px; }
.ido-btx-event .ido-btx-route { font-size:13px; color:var(--btx-muted); margin-bottom:8px; }

@media (min-width:768px) and (max-width:1100px) {
  .ido-btx-times { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:700px) {
  .ido-btx-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ido-btx-tab { padding:8px 10px; white-space:nowrap; }
  .ido-btx-tab i { display:none; }
  .ido-btx-label-full { display:none; }
  .ido-btx-label-short { display:inline; }
  .ido-btx-times { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
  .ido-btx-departure--pill { min-width:0; min-height:36px; padding:8px 6px; }
  .ido-btx-time { font-size:15px; }
  .ido-btx-route-controls { grid-template-columns:1fr; }
  .ido-btx-swap { width:100%; }
}
