.tmbx {
  --bx-ink: #103449;
  --bx-muted: #47667b;
  --bx-accent: #00799e;
  --bx-line: #c9e0ed;
  --bx-wash: #f1f8fb;
  --bx-field-height: 44px;
  color: var(--bx-ink);
  border: 1px solid var(--bx-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 52, 73, .07);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 28px;
  scroll-margin-top: 110px;
}
.tmbx [hidden] { display: none !important; }
.tmbx-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 15px 15px 0 0;
  border-bottom: 1px solid var(--bx-line);
  background: linear-gradient(113deg, #eaf6fb, #f6fafc);
}
.tmbx-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--bx-accent);
  border: 1px solid var(--bx-line);
  border-radius: 11px;
  background: #fff;
}
.tmbx-icon svg { width: 24px; height: 24px; }
.tmbx .tm-button-arrow { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; }
.tmbx .tm-button-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
body:not(.tm-redesign) .tmbx .tm-unified-button, body:not(:has(#sp-main-body, #main-content, .tm-section)) .tmbx .tm-unified-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--bx-line); border-radius: 7px; background: var(--bx-wash); color: var(--bx-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.tmbx-header h2, .tmbx-card h3 {
  margin: 0;
  color: var(--bx-ink);
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.tmbx-header h2 { font-size: clamp(21px, 4vw, 30px); letter-spacing: -.025em; }
.tmbx-header h2 span { color: #138bb0; }
.tmbx-header p { margin: 4px 0 0; color: var(--bx-muted); }
.tmbx-content { padding: 16px 22px 18px; }
.tmbx-tabs {
  display: flex;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 3px;
  border: 1px solid var(--bx-line);
  border-radius: 9px;
  background: var(--bx-wash);
}
.tmbx-tabs button {
  min-height: 38px;
  padding: 6px 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--bx-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tmbx-tabs button:hover { background: #dbeef6; }
.tmbx-tabs button[aria-pressed="true"] { background: #163e54; color: #fff; }
.tmbx form { margin: 0; }
.tmbx-rent-fields, .tmbx-check-fields, .tmbx-manual {
  display: grid;
  align-items: end;
  gap: 10px 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tmbx label { display: block; min-width: 0; margin: 0; color: var(--bx-ink); font-weight: 650; }
.tmbx label small { color: var(--bx-muted); font-weight: 450; }
.tmbx label > :is(input:not([type=checkbox]), select), .tmbx [data-bikebox-form] label > .tmbx-unit > input[type=number] {
  display: block;
  min-width: 0;
  width: 100%;
  height: var(--bx-field-height);
  min-height: var(--bx-field-height);
  box-sizing: border-box;
  margin-top: 4px;
  padding: 7px 10px;
  color: var(--bx-ink);
  border: 1px solid #b7d7e9;
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-weight: 500;
}
.tmbx input::placeholder { color: #597885; opacity: 1; }
.tmbx-unit { position: relative; display: block; }
.tmbx [data-bikebox-form] label > .tmbx-unit > input[type=number] {
  padding-inline-end: 36px;
  appearance: textfield;
}
.tmbx-unit input::-webkit-inner-spin-button, .tmbx-unit input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.tmbx-unit > span {
  position: absolute;
  inset-inline-end: 10px;
  inset-block: 0;
  display: flex;
  align-items: center;
  color: var(--bx-muted);
  font-size: 13px;
  pointer-events: none;
}
.tmbx-form-action { display: flex; justify-content: flex-end; }
.tmbx form > .tmbx-form-action { margin-top: 12px; }
.tmbx-manual { border: 1px solid var(--bx-line); border-radius: 8px; padding: 8px 12px 12px; margin: 12px 0 0; min-width: 0; }
.tmbx-manual legend { width: auto; float: none; padding: 0 5px; margin: 0; font-size: inherit; }
.tmbx-filters {
  border: 0;
  padding: 10px 0 0;
  margin: 16px 0 0;
  min-width: 0;
  border-top: 1px solid var(--bx-line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.tmbx-filters label { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.tmbx-filters label > select { width: auto; margin: 0; height: 36px; min-height: 36px; }
.tmbx-status { margin: 14px 0 8px; color: var(--bx-ink); font-weight: 700; }
.tmbx-status:empty { margin: 0; }
.tmbx-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tmbx-card { background: var(--bx-wash); border: 1px solid var(--bx-line); border-radius: 10px; padding: 12px; min-width: 0; }
.tmbx-card h3 { font-size: 17px; }
.tmbx-card-head, .tmbx-card-foot { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.tmbx-card-foot { margin-top: 8px; }
.tmbx-distance, .tmbx-card-foot small { font-size: 12px; color: var(--bx-muted); }
.tmbx-offers { margin: 8px 0; }
.tmbx-offer { padding: 8px 0; border-top: 1px solid var(--bx-line); }
.tmbx-offer strong { display: block; overflow-wrap: anywhere; }
.tmbx-offers summary, .tmbx-more summary, .tmbx-sources summary { cursor: pointer; color: var(--bx-accent); font-weight: 700; }
.tmbx-more { margin-top: 10px; }
.tmbx-more > div { margin-top: 8px; }
.tmbx-detail, .tmbx-price { margin: 4px 0 0; }
.tmbx-detail { color: var(--bx-muted); font-size: 13px; }
.tmbx-price { font-weight: 650; }
.tmbx-state { display: inline-block; padding: 2px 7px; margin: 6px 0 0; border: 1px solid; border-radius: 5px; font-weight: 700; font-size: 12px; }
.tmbx-state-fit { color: #145d44; border-color: #b4dec7; background: #e9f6ef; }
.tmbx-state-ask { color: #744a08; border-color: #eaca91; background: #fff5df; }
.tmbx-state-over { color: #8d2530; border-color: #edbcc0; background: #fff0f0; }
.tmbx-link { display: inline-flex; align-items: baseline; gap: 4px; color: var(--bx-accent); font-weight: 700; text-decoration: underline; }
.tmbx-card > .tmbx-link, .tmbx [data-bikebox-results] > .tmbx-link { margin-top: 8px; }
.tmbx-external { margin-left: 4px; }
.tmbx-scicon-brand { width: 24px; height: 12px; object-fit: contain; align-self: center; }
.tmbx-purchase { background: var(--bx-wash); padding: 8px 10px; border-radius: 8px; margin: 10px 0 0; }
.tmbx-prefill, .tmbx-result-note { margin: 8px 0; font-size: 13px; color: var(--bx-muted); }
.tmbx-sources { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--bx-line); font-size: 12px; }
.tmbx-sources p { margin: 6px 0; }
.tmbx-sources > div { display: flex; flex-wrap: wrap; gap: 3px 13px; }
.tmbx-sources a { color: var(--bx-accent); text-decoration: underline; }
.tmbx :focus-visible { outline: 2px solid var(--bx-accent, #00799e); outline-offset: 2px; }
.tmbx-dialog {
  width: min(850px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  background: #fff;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}
.tmbx-dialog::backdrop { background: rgba(7, 26, 41, .66); }
.tmbx-dialog .tmbx { margin: 0; border: 0; }
.tmbx-dialog .tmbx-header { position: sticky; top: 0; z-index: 2; }
.tmbx-dialog .tmbx-close.tm-season-close { position: static; align-self: start; }
.tmbx-close > span { display: block; }
.tm-season .tm-season-event-dialog .tm-flight-section .tm-flight-console > .tm-journey-flight-note {
  grid-column: 1 / -1;
  margin: -8px 0 0 !important;
}
.tm-season .tm-flight-console > .tm-bikebox-entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  grid-column: 1 / -1;
  gap: 9px;
  min-height: 49px;
  padding: 6px 9px;
  margin: -6px 0 0;
  border: 1px solid #d4e5ee;
  border-radius: 8px;
  color: #163e54;
  background: #fff;
  text-decoration: none;
}
.tm-season .tm-flight-console > .tm-bikebox-entry:is(:hover, :focus-visible) {
  color: #163e54;
  border-color: #98c9df;
  background: #ecf6fa;
  text-decoration: none;
}
.tm-season .tm-flight-console > .tm-bikebox-entry:focus-visible { outline: 2px solid #00799e; outline-offset: 2px; }
.tm-bikebox-entry-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #00799e;
  background: #e7f4f9;
}
.tm-bikebox-entry-icon svg { width: 22px; height: 22px; }
.tm-bikebox-entry-copy { display: grid; gap: 2px; line-height: 1.3; }
.tm-bikebox-entry-copy strong { color: inherit; font-size: 14px; font-weight: 750; }
.tm-bikebox-entry-copy small { color: #47667b; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.tm-bikebox-entry > .tm-button-arrow { display: grid; place-items: center; width: 20px; height: 20px; }
.tm-bikebox-entry > .tm-button-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 740px) {
  .tmbx-rent-fields, .tmbx-check-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tmbx-rent-fields > :is(.tmbx-postal, .tmbx-form-action), .tmbx-check-fields > .tmbx-weight { grid-column: 1 / -1; }
}
@media (max-width: 470px) {
  .tmbx-header, .tmbx-content { padding: 12px; }
  .tmbx-header { gap: 8px; }
  .tmbx-icon { width: 33px; height: 33px; align-self: start; }
  .tmbx-icon svg { width: 19px; height: 19px; }
  .tmbx-rent-fields, .tmbx-check-fields { gap: 8px; }
  .tmbx-check-fields, .tmbx-results { grid-template-columns: minmax(0, 1fr); }
  .tmbx-rent-fields > :is(.tmbx-airline, .tmbx-weight) { grid-column: 1 / -1; }
  .tmbx-form-action > button { width: 100%; justify-content: center; }
}
