:root {
  --tc-navy: #0b2038;
  --tc-teal: #08897d;
  --tc-gold: #c58e2c;
  --tc-paper: #fbfaf6;
}
body {
  font-size: 16px;
}
.screen p,
.screen li,
.screen label,
.screen input,
.screen select,
.screen button,
.screen a,
.side-summary,
.side-body,
.footer,
.advanced-footer {
  font-size: max(0.75rem, 12px) !important;
  line-height: 1.55;
}
.eyebrow,
.booking-badge,
.simulation-label,
.state,
.context small,
.flow-label small,
.flow-total small {
  font-size: max(0.65rem, 10px) !important;
}
.step span,
.rail-step span {
  font-size: max(0.66rem, 10.5px) !important;
}
.sum-row small,
.price-line span,
.verified-row span,
.hotel small,
.hotel-meta span,
.hotel p,
.flight span,
.leg span,
.date-card p,
.field label {
  font-size: max(0.7rem, 11px) !important;
}
.sum-row b,
.price-line b,
.verified-row b,
.flight strong,
.leg strong,
.date-summary {
  font-size: max(0.75rem, 12px) !important;
}
.date-card input,
.date-card select {
  min-height: 48px;
  font-size: max(0.86rem, 14px) !important;
}
.stay-flex-note {
  font-size: max(0.78rem, 12.5px) !important;
  line-height: 1.6;
}
.clinical-window.clinic-calendar {
  display: block;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(11, 136, 125, 0.24);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #eef8f5);
}
.date-layout > .clinic-calendar {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.clinic-calendar-head,
.clinic-hold {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.clinic-calendar-head small,
.clinic-calendar-head b,
.clinic-calendar-head span,
.clinic-hold strong,
.clinic-hold span {
  display: block;
}
.clinic-calendar-head small {
  color: var(--tc-gold);
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}
.clinic-calendar-head b {
  margin-top: 6px;
  color: var(--tc-navy);
  font: 700 clamp(1.15rem, 2vw, 1.6rem) Georgia, serif;
}
.clinic-calendar-head span {
  max-width: 760px;
  margin-top: 6px;
  color: #60788d;
  font-size: 13px;
  line-height: 1.55;
}
.clinic-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--tc-teal);
  font-size: .75rem;
  font-style: normal;
  font-weight: 950;
}
.clinic-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tc-teal);
  box-shadow: 0 0 0 6px rgba(11, 136, 125, 0.1);
}
.clinic-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 9px;
  margin: 18px 0;
}
.clinic-slot {
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid rgba(14, 41, 66, 0.14);
  border-radius: 14px;
  background: #fff;
  color: var(--tc-navy);
  text-align: center;
}
.clinic-slot:hover,
.clinic-slot.selected {
  border-color: var(--tc-teal);
  background: #e5f5f2;
  box-shadow: inset 0 0 0 1px var(--tc-teal);
}
.clinic-slot small,
.clinic-slot strong,
.clinic-slot b,
.clinic-slot span,
.clinic-slot em {
  display: block;
}
.clinic-slot small {
  color: #708396;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.clinic-slot strong {
  margin-top: 4px;
  font: 700 1.55rem Georgia, serif;
}
.clinic-slot b {
  color: var(--tc-gold);
  font-size: .75rem;
  text-transform: uppercase;
}
.clinic-slot span {
  margin-top: 7px;
  color: var(--tc-teal);
  font-size: .75rem;
  font-weight: 900;
}
.clinic-slot em {
  margin-top: 4px;
  color: #708396;
  font-size: .75rem;
  font-style: normal;
}
.clinic-hold {
  padding: 14px;
  border-radius: 14px;
  background: #fff8e9;
}
.clinic-hold strong {
  color: var(--tc-navy);
  font-size: 13px;
}
.clinic-hold span {
  margin-top: 4px;
  color: #725821;
  font-size: .75rem;
}
.clinic-hold-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--tc-teal);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}
.clinic-hold-button.held {
  background: var(--tc-navy);
}
.step.deferred i,
.rail-step.deferred i {
  border-color: var(--tc-gold) !important;
  background: #fff8e9 !important;
  color: #8c641e !important;
}
.step.deferred span,
.rail-step.deferred span {
  color: #8c641e !important;
}
.payment-prompt {
  grid-column: 1/-1;
  margin: 6px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--tc-gold);
  background: #fff8e9;
  color: #725821;
  font-weight: 750;
}
.tc-global-tools {
  position: fixed;
  z-index: 120;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(11, 32, 56, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(8, 31, 52, 0.18);
  backdrop-filter: blur(16px);
}
[dir='rtl'] .tc-global-tools {
  right: auto;
  left: 16px;
}
.tc-global-tools.tc-header-tools,
[dir='rtl'] .tc-global-tools.tc-header-tools {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  flex: 0 0 auto;
  box-shadow: none;
  background: #fff;
}

/* Keep the shared controls and journey actions inside the header at every
   desktop/tablet width.  This is deliberately LTR in Arabic too, matching
   the product-wide header order. */
.topbar .actions {
  min-width: 0;
  align-items: center;
  flex-wrap: nowrap;
}
.topbar .tc-header-tools {
  min-width: max-content;
}
@media (max-width: 1220px) {
  .topbar {
    grid-template-columns: minmax(190px, 1fr) auto !important;
    gap: 12px !important;
    padding-inline: 18px !important;
  }
  .topbar .promise,
  .topbar .journey-id {
    display: none !important;
  }
  .topbar .actions {
    justify-self: end;
    gap: 6px;
  }
  .topbar .quiet {
    padding-inline: 10px;
  }
  .topbar .profile-chip {
    max-width: 150px;
  }
  .topbar .profile-chip span {
    min-width: 0;
  }
  .topbar .profile-chip b,
  .topbar .profile-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 930px) {
  .topbar .brand img {
    width: 50px !important;
  }
  .topbar .brand strong {
    font-size: 0.88rem !important;
  }
  .topbar .brand small,
  .topbar .profile-chip small {
    display: none !important;
  }
  .topbar .profile-chip {
    max-width: 112px;
  }
}

[dir='rtl'] #email-gate-close {
  right: auto !important;
  left: 18px !important;
}
[dir='rtl'] .email-dialog-head {
  padding-left: 82px !important;
}
.tc-global-tools button,
.tc-global-tools select {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 10px;
  color: var(--tc-navy);
  font:
    800 .75rem/1 'Segoe UI',
    Arial,
    sans-serif;
  cursor: pointer;
}
.tc-global-tools button.active {
  background: var(--tc-navy);
  color: #fff;
}
.tc-global-tools select {
  border-left: 1px solid rgba(11, 32, 56, 0.14);
  border-radius: 0;
}
[dir='rtl'] :is(
    .cost-row b,
    .price-line b,
    .addon-card > em,
    .sum-row > b,
    .hotel-meta b,
    .flight b,
    .leg b,
    .detail-policy span,
    .side-total strong,
    .flow-total b,
    .amount,
    #side-total,
    #top-total,
    #final-total,
    #final-holiday-cost,
    #final-treatment-cost,
    #final-flight-cost,
    #final-transfer-cost,
    #checkout-total,
    #extras-price,
    #discount-price,
    #side-book-total,
    #previous-total,
    #verified-total,
    #price-difference
  ) {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}
.tc-demo-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff7e5;
  color: #7e5c1a;
  font-size: .75rem;
  font-weight: 850;
}
.tc-demo-status::before {
  content: '↷';
}
.partner-ribbon-track > span,
.partner-logo {
  position: relative;
  padding-left: 58px !important;
}
.partner-ribbon-track > span::before,
.partner-logo::before {
  content: attr(data-mark);
  position: absolute;
  left: 14px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(197, 142, 44, 0.38);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff8e9, #e7f6f3);
  color: var(--tc-teal);
  font:
    900 .75rem/1 'Segoe UI',
    Arial,
    sans-serif;
  letter-spacing: -0.04em;
}
@media (max-width: 700px) {
  .tc-global-tools {
    right: 8px;
    bottom: 76px;
    gap: 2px;
    padding: 5px;
  }
  .tc-global-tools.tc-header-tools,
  [dir='rtl'] .tc-global-tools.tc-header-tools {
    position: static;
    margin: 0;
  }
  .tc-global-tools button,
  .tc-global-tools select {
    min-height: 34px;
    padding: 0 8px;
    font-size: .75rem;
  }
  .footer-actions {
    flex-wrap: wrap;
  }
  .footer-actions > * {
    flex: 1 1 150px;
  }
  .screen-head p {
    font-size: 13px !important;
  }
  .hero p,
  .lead {
    font-size: 13px !important;
  }
  .clinic-calendar-head,
  .clinic-hold {
    align-items: stretch;
    flex-direction: column;
  }
  .clinic-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clinic-hold-button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .header {
    gap: 6px !important;
  }
  .header .brand > span {
    display: none !important;
  }
  .header .right {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
