/* THG flight search home panel - 20260723 */
body.mmt-home #flightsPanel.thg-flight-search-v2 {
  position: relative;
  overflow: visible !important;
  width: 100% !important;
  max-width: none !important;
  padding: 24px 28px 62px !important;
  border: 1px solid rgba(41, 91, 155, 0.18) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 24px 54px rgba(16, 36, 74, 0.16) !important;
}

body.mmt-home .mmt-booking-card:has(#flightsPanel.thg-flight-search-v2) {
  overflow: visible !important;
}

body.mmt-home #flightsPanel .thg-flight-trip-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 0 18px !important;
}

body.mmt-home #flightsPanel .mmt-trip-switch {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px !important;
}

body.mmt-home #flightsPanel .mmt-trip-switch label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 6px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: #354b6b !important;
  background: transparent !important;
  font-size: 0.96rem !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

body.mmt-home #flightsPanel .mmt-trip-switch label:has(input:checked) {
  border-color: #b9d8ff !important;
  color: #0f5fc6 !important;
  background: #eaf5ff !important;
}

body.mmt-home #flightsPanel .mmt-trip-switch input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  accent-color: #1688ee !important;
}

body.mmt-home #flightsPanel .mmt-card-copy {
  margin: 0 !important;
  color: #415a7d !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(205px, 1.25fr) minmax(205px, 1.25fr) minmax(155px, 0.88fr) minmax(155px, 0.88fr) minmax(190px, 1fr) minmax(180px, 0.95fr) !important;
  gap: 0 !important;
  overflow: visible !important;
  border: 1px solid #d8e1ee !important;
  border-radius: 18px !important;
  background: #ffffff !important;
}

body.mmt-home #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar {
  overflow: visible !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field {
  position: relative !important;
  display: flex !important;
  min-width: 0 !important;
  min-height: 166px !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 20px 24px !important;
  border: 0 !important;
  border-right: 1px solid #d8e1ee !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.mmt-home #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar > .mmt-field {
  min-height: 166px !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field:last-child {
  border-right: 0 !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field:hover,
body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field:focus-within {
  z-index: 3 !important;
  background: #f4f9ff !important;
  box-shadow: inset 0 4px 0 #1e91ef !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar .mmt-field > span,
body.mmt-home #flightsPanel .thg-flight-route-bar .mmt-field > label {
  margin: 0 !important;
  color: #42526a !important;
  font-size: 0.88rem !important;
  font-weight: 750 !important;
  line-height: 1.1 !important;
  text-transform: none !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar .mmt-field > input {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: #071f45 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: clamp(1.45rem, 2vw, 2.15rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
}

body.mmt-home #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar .mmt-field > #flightFromInput,
body.mmt-home #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar .mmt-field > #flightToInput {
  font-size: clamp(1.65rem, 2vw, 2rem) !important;
}

body.mmt-home #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar .mmt-field > #flightDepartureDate,
body.mmt-home #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar .mmt-field > #flightReturnDate {
  font-size: clamp(1.25rem, 1.6vw, 1.55rem) !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar .mmt-field > small,
body.mmt-home #flightsPanel .thg-flight-field-trigger small {
  display: block !important;
  overflow: hidden !important;
  margin: 0 !important;
  color: #66768e !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.mmt-home #flightsPanel .thg-flight-date-field > input {
  font-size: 1.45rem !important;
  cursor: pointer !important;
}

body.mmt-home #flightsPanel .thg-flight-swap {
  position: absolute !important;
  z-index: 12 !important;
  top: 59px !important;
  right: -23px !important;
  left: auto !important;
  display: grid !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid #dce7f5 !important;
  border-radius: 50% !important;
  color: #0d82e7 !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(16, 36, 74, 0.13) !important;
  font-size: 1.25rem !important;
  cursor: pointer !important;
}

body.mmt-home #flightsPanel .thg-flight-field-trigger {
  display: flex !important;
  width: 100% !important;
  min-height: 66px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 0 24px 0 0 !important;
  border: 0 !important;
  color: #071f45 !important;
  background: transparent !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.mmt-home #flightsPanel .thg-flight-field-trigger::after {
  position: absolute;
  right: 20px;
  top: 72px;
  content: "⌄";
  color: #1688ee;
  font-size: 1.25rem;
  font-weight: 900;
}

body.mmt-home #flightsPanel .thg-flight-field-trigger strong {
  color: #071f45 !important;
  font-size: 1.3rem !important;
  font-weight: 950 !important;
  line-height: 1.08 !important;
}

body.mmt-home #flightsPanel .thg-flight-field-trigger strong b,
body.mmt-home #flightsPanel .thg-flight-field-trigger small b {
  color: inherit !important;
  font: inherit !important;
}

body.mmt-home #flightsPanel .thg-flight-popover {
  position: fixed !important;
  z-index: 120 !important;
  top: 50% !important;
  right: auto !important;
  left: 50% !important;
  display: block !important;
  width: min(680px, calc(100vw - 40px)) !important;
  max-height: calc(100vh - 72px) !important;
  overflow: auto !important;
  padding: 22px !important;
  border: 1px solid #dce5f1 !important;
  border-radius: 20px !important;
  color: #10244a !important;
  background: #ffffff !important;
  box-shadow: 0 28px 70px rgba(16, 36, 74, 0.22) !important;
  transform: translate(-50%, -50%) !important;
}

body.mmt-home #flightsPanel .thg-flight-popover[hidden] {
  display: none !important;
}

body.mmt-home #flightsPanel .thg-flight-traveller-popover {
  width: min(760px, calc(100vw - 40px)) !important;
}

body.mmt-home #flightsPanel .thg-flight-popover-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 10px !important;
}

body.mmt-home #flightsPanel .thg-flight-popover-head > div {
  display: grid !important;
  gap: 3px !important;
}

body.mmt-home #flightsPanel .thg-flight-popover-head strong {
  color: #10244a !important;
  font-size: 1.2rem !important;
  font-weight: 950 !important;
}

body.mmt-home #flightsPanel .thg-flight-popover-head small,
body.mmt-home #flightsPanel .thg-flight-counter-row small {
  color: #6b7890 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

body.mmt-home #flightsPanel .thg-flight-popover-head button {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid #dce5f1 !important;
  border-radius: 50% !important;
  color: #415a7d !important;
  background: #f5f8fc !important;
  font-size: 1.35rem !important;
  cursor: pointer !important;
}

body.mmt-home #flightsPanel .thg-flight-counter-row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 17px 0 !important;
  border-bottom: 1px solid #e7edf5 !important;
}

body.mmt-home #flightsPanel .thg-flight-counter-row > div:first-child {
  display: grid !important;
  gap: 3px !important;
}

body.mmt-home #flightsPanel .thg-flight-counter-row strong {
  color: #10244a !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
}

body.mmt-home #flightsPanel .thg-flight-counter {
  display: grid !important;
  grid-template-columns: 42px 46px 42px !important;
  align-items: center !important;
  overflow: hidden !important;
  border: 1px solid #cdd9e8 !important;
  border-radius: 12px !important;
}

body.mmt-home #flightsPanel .thg-flight-counter button,
body.mmt-home #flightsPanel .thg-flight-counter b {
  display: grid !important;
  min-height: 42px !important;
  place-items: center !important;
  border: 0 !important;
  color: #10244a !important;
  background: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 900 !important;
}

body.mmt-home #flightsPanel .thg-flight-counter button {
  color: #087fd8 !important;
  background: #edf7ff !important;
  cursor: pointer !important;
}

body.mmt-home #flightsPanel .thg-flight-counter-note {
  margin: 12px 0 0 !important;
  color: #6b7890 !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
}

body.mmt-home #flightsPanel .thg-flight-counter-note.error {
  color: #b42318 !important;
}

body.mmt-home #flightsPanel .thg-flight-popover-apply {
  display: block !important;
  min-width: 150px !important;
  min-height: 46px !important;
  margin: 18px 0 0 auto !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 11px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #36a9f5, #086bea) !important;
  box-shadow: 0 12px 26px rgba(8, 107, 234, 0.22) !important;
  font-size: 0.95rem !important;
  font-weight: 950 !important;
  cursor: pointer !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: 28px 1fr auto !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 90px !important;
  margin-top: 10px !important;
  padding: 14px 18px !important;
  border: 1px solid #d8e1ee !important;
  border-radius: 16px !important;
  color: #16375f !important;
  background: #ffffff !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card.active {
  border: 2px solid #1688ee !important;
  background: #edf6ff !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card > i {
  color: #1688ee !important;
  font-size: 1.55rem !important;
  font-style: normal !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card > span {
  display: grid !important;
  gap: 5px !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card strong {
  color: #0d2342 !important;
  font-size: 1.02rem !important;
  font-weight: 950 !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card small {
  color: #356292 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card > b {
  font-size: 2rem !important;
}

body.mmt-home #flightsPanel .thg-flight-airport-suggestions {
  position: absolute !important;
  z-index: 115 !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  display: grid !important;
  width: min(430px, calc(100vw - 40px)) !important;
  max-height: 360px !important;
  overflow: auto !important;
  padding: 8px !important;
  border: 1px solid #dce5f1 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 24px 60px rgba(16, 36, 74, 0.22) !important;
}

body.mmt-home #flightsPanel .thg-flight-airport-suggestions[hidden] {
  display: none !important;
}

body.mmt-home #flightsPanel .thg-flight-airport-option {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: 48px 1fr !important;
  gap: 10px !important;
  padding: 11px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #10244a !important;
  background: transparent !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.mmt-home #flightsPanel .thg-flight-airport-option:hover {
  background: #edf6ff !important;
}

body.mmt-home #flightsPanel .thg-flight-airport-option > b {
  display: grid !important;
  place-items: center !important;
  min-height: 40px !important;
  border-radius: 9px !important;
  color: #087fd8 !important;
  background: #eaf5ff !important;
  font-size: 0.78rem !important;
}

body.mmt-home #flightsPanel .thg-flight-airport-option > span {
  display: grid !important;
  gap: 2px !important;
}

body.mmt-home #flightsPanel .thg-flight-airport-option strong {
  font-size: 0.95rem !important;
  font-weight: 900 !important;
}

body.mmt-home #flightsPanel .thg-flight-airport-option small {
  color: #66768e !important;
  font-size: 0.76rem !important;
}

body.mmt-home #flightsPanel .thg-flight-hidden-controls {
  display: none !important;
}

body.mmt-home #flightsPanel .thg-flight-options-row {
  display: grid !important;
  grid-template-columns: 1fr minmax(190px, 230px) !important;
  align-items: end !important;
  gap: 24px !important;
  margin-top: 24px !important;
}

body.mmt-home #flightsPanel .mmt-fares-title {
  display: block !important;
  margin: 0 0 10px !important;
  color: #10244a !important;
  font-size: 0.9rem !important;
  font-weight: 950 !important;
  text-transform: none !important;
}

body.mmt-home #flightsPanel .thg-flight-fares {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 !important;
}

body.mmt-home #flightsPanel .thg-flight-fares .mmt-chip {
  display: grid !important;
  gap: 4px !important;
  min-width: 138px !important;
  min-height: 70px !important;
  padding: 11px 14px !important;
  border: 1px solid #d8e1ee !important;
  border-radius: 13px !important;
  color: #223a5d !important;
  background: #ffffff !important;
  text-align: left !important;
  cursor: pointer !important;
}

body.mmt-home #flightsPanel .thg-flight-fares .mmt-chip.primary {
  border-color: #1688ee !important;
  color: #086dcb !important;
  background: #edf6ff !important;
}

body.mmt-home #flightsPanel .thg-flight-fares .mmt-chip strong {
  font-size: 0.9rem !important;
  font-weight: 950 !important;
}

body.mmt-home #flightsPanel .thg-flight-fares .mmt-chip small {
  color: #6b7890 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

body.mmt-home #flightsPanel .thg-flight-tracker {
  display: grid !important;
  grid-template-columns: 42px 1fr !important;
  align-items: center !important;
  gap: 3px 10px !important;
  min-height: 76px !important;
  padding: 13px 15px !important;
  border: 1px solid #d8e1ee !important;
  border-radius: 13px !important;
  color: #10244a !important;
  background: #ffffff !important;
  text-decoration: none !important;
}

body.mmt-home #flightsPanel .thg-flight-tracker > span {
  grid-row: 1 / 3 !important;
  font-size: 1.45rem !important;
}

body.mmt-home #flightsPanel .thg-flight-tracker strong {
  font-size: 0.9rem !important;
  font-weight: 950 !important;
}

body.mmt-home #flightsPanel .thg-flight-tracker small {
  color: #6b7890 !important;
  font-size: 0.68rem !important;
  line-height: 1.25 !important;
}

body.mmt-home #flightsPanel .thg-flight-protection {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 62px !important;
  margin: 20px 0 0 !important;
  padding: 12px 18px !important;
  border: 1px solid #cbe2fa !important;
  border-radius: 13px !important;
  color: #10244a !important;
  background: linear-gradient(100deg, #ffffff, #eef8ff) !important;
}

body.mmt-home #flightsPanel .thg-flight-protection input {
  width: 20px !important;
  height: 20px !important;
  accent-color: #1688ee !important;
}

body.mmt-home #flightsPanel .thg-flight-protection > span {
  display: grid !important;
  flex: 1 !important;
  gap: 2px !important;
}

body.mmt-home #flightsPanel .thg-flight-protection strong {
  font-size: 0.86rem !important;
  font-weight: 950 !important;
}

body.mmt-home #flightsPanel .thg-flight-protection small {
  color: #5c6f89 !important;
  font-size: 0.73rem !important;
  font-weight: 700 !important;
}

body.mmt-home #flightsPanel .thg-flight-protection a {
  color: #087fd8 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

body.mmt-home #flightsPanel .thg-flight-search-button {
  position: absolute !important;
  left: 50% !important;
  bottom: -28px !important;
  min-width: 330px !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 0 36px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2ebaf1, #0874e8) !important;
  box-shadow: 0 18px 38px rgba(8, 116, 232, 0.3) !important;
  font-size: 1.1rem !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  transform: translateX(-50%) !important;
}

body.mmt-home #flightsPanel.is-one-way #flightReturnField {
  opacity: 0.62 !important;
}

body.mmt-home #flightsPanel.is-one-way #flightReturnField input {
  font-size: 0.92rem !important;
}

body.mmt-home #flightsPanel .mmt-multicity-panel {
  margin-top: 18px !important;
}

@media (max-width: 1280px) {
  body.mmt-home #flightsPanel .thg-flight-route-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field {
    min-height: 138px !important;
    border-bottom: 1px solid #d8e1ee !important;
  }

  body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field:nth-of-type(3),
  body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field:nth-of-type(6) {
    border-right: 0 !important;
  }

  body.mmt-home #flightsPanel .thg-flight-swap {
    top: 46px !important;
    right: -23px !important;
    left: auto !important;
  }
}

@media (max-width: 820px) {
  body.mmt-home #flightsPanel.thg-flight-search-v2 {
    padding: 18px 16px 58px !important;
    border-radius: 18px !important;
  }

  body.mmt-home #flightsPanel .thg-flight-trip-head,
  body.mmt-home #flightsPanel .thg-flight-options-row {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  body.mmt-home #flightsPanel .thg-flight-trip-head {
    display: grid !important;
  }

  body.mmt-home #flightsPanel .mmt-card-copy {
    display: none !important;
  }

  body.mmt-home #flightsPanel .thg-flight-route-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field {
    min-height: 126px !important;
    padding: 16px !important;
  }

  body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field:nth-of-type(2n) {
    border-right: 0 !important;
  }

  body.mmt-home #flightsPanel .thg-flight-swap {
    top: 40px !important;
    right: -21px !important;
    left: auto !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  body.mmt-home #flightsPanel .thg-flight-fares {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.mmt-home #flightsPanel .thg-flight-fares .mmt-chip {
    min-width: 0 !important;
  }

  body.mmt-home #flightsPanel .thg-flight-popover {
    position: fixed !important;
    z-index: 180 !important;
    top: auto !important;
    right: 10px !important;
    bottom: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-height: calc(100vh - 80px) !important;
    overflow: auto !important;
    transform: none !important;
  }
}

/* Compact-height pass: keep the full desktop Flight search above the fold. */
@media (min-width: 821px) {
  body.mmt-home[data-active-travel-service="flights"] #flightsPanel.thg-flight-search-v2 {
    padding: 12px 14px 42px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-trip-head {
    margin-bottom: 8px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .mmt-trip-switch label {
    min-height: 28px !important;
    padding: 3px 8px !important;
    font-size: 0.74rem !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-route-bar > .mmt-field,
  body.mmt-home[data-active-travel-service="flights"] #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar > .mmt-field {
    min-height: 88px !important;
    padding: 9px 12px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-route-bar .mmt-field > input {
    min-height: 27px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-field-trigger {
    min-height: 43px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-field-trigger::after {
    top: 37px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-swap {
    top: 27px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-options-row {
    margin-top: 9px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .mmt-fares-title {
    margin-bottom: 5px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-fares .mmt-chip {
    min-height: 44px !important;
    padding: 6px 9px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-tracker {
    min-height: 50px !important;
    padding: 7px 10px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-protection {
    min-height: 40px !important;
    margin-top: 8px !important;
    padding: 7px 11px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-search-button {
    bottom: -21px !important;
    min-height: 44px !important;
  }
}

@media (max-width: 520px) {
  body.mmt-home #flightsPanel .mmt-trip-switch {
    gap: 5px !important;
  }

  body.mmt-home #flightsPanel .mmt-trip-switch label {
    min-height: 34px !important;
    padding: 5px 8px !important;
    font-size: 0.78rem !important;
  }

  body.mmt-home #flightsPanel .thg-flight-route-bar {
    grid-template-columns: 1fr !important;
  }

  body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field {
    min-height: 108px !important;
    border-right: 0 !important;
  }

  body.mmt-home #flightsPanel .thg-flight-swap {
    top: 87px !important;
    right: 18px !important;
    left: auto !important;
  }

  body.mmt-home #flightsPanel .thg-flight-route-bar .mmt-field > input {
    font-size: 1.45rem !important;
  }

  body.mmt-home #flightsPanel .thg-flight-fares {
    grid-template-columns: 1fr !important;
  }

  body.mmt-home #flightsPanel .thg-flight-protection {
    align-items: flex-start !important;
  }

  body.mmt-home #flightsPanel .thg-flight-protection a {
    display: none !important;
  }

  body.mmt-home #flightsPanel .thg-flight-search-button {
    width: calc(100% - 32px) !important;
    min-width: 0 !important;
  }
}

@media (min-width: 821px) {
  body.mmt-home #flightsPanel.thg-flight-search-v2 .thg-flight-popup-field > .thg-flight-popover {
    position: fixed !important;
    top: 50vh !important;
    right: auto !important;
    bottom: auto !important;
    left: 50vw !important;
    max-height: calc(100vh - 72px) !important;
    overflow: auto !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* Compact flight search pass - keep every primary control visible on laptop screens. */
body.mmt-home #flightsPanel.thg-flight-search-v2 {
  padding: 18px 20px 52px !important;
}

body.mmt-home #flightsPanel .thg-flight-trip-head {
  gap: 12px !important;
  margin-bottom: 12px !important;
}

body.mmt-home #flightsPanel .mmt-trip-switch {
  gap: 8px !important;
}

body.mmt-home #flightsPanel .mmt-trip-switch label {
  min-height: 32px !important;
  padding: 4px 9px !important;
  font-size: 0.78rem !important;
}

body.mmt-home #flightsPanel .mmt-trip-switch input {
  width: 15px !important;
  height: 15px !important;
}

body.mmt-home #flightsPanel .mmt-card-copy {
  font-size: 0.78rem !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar {
  grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1.2fr) minmax(116px, 0.82fr) minmax(116px, 0.82fr) minmax(130px, 0.92fr) minmax(130px, 0.9fr) !important;
  border-radius: 14px !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field,
body.mmt-home #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar > .mmt-field {
  min-height: 112px !important;
  gap: 4px !important;
  padding: 13px 14px !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar .mmt-field > span,
body.mmt-home #flightsPanel .thg-flight-route-bar .mmt-field > label {
  font-size: 0.7rem !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar .mmt-field > input {
  min-height: 32px !important;
  font-size: 0.95rem !important;
  line-height: 1.08 !important;
}

body.mmt-home #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar .mmt-field > #flightFromInput,
body.mmt-home #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar .mmt-field > #flightToInput {
  font-size: 1rem !important;
}

body.mmt-home #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar .mmt-field > #flightDepartureDate,
body.mmt-home #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar .mmt-field > #flightReturnDate,
body.mmt-home #flightsPanel .thg-flight-date-field > input {
  font-size: 0.86rem !important;
}

body.mmt-home #flightsPanel .thg-flight-route-bar .mmt-field > small,
body.mmt-home #flightsPanel .thg-flight-field-trigger small {
  font-size: 0.64rem !important;
}

body.mmt-home #flightsPanel .thg-flight-field-trigger {
  min-height: 52px !important;
  gap: 3px !important;
  padding-right: 18px !important;
}

body.mmt-home #flightsPanel .thg-flight-field-trigger::after {
  top: 47px !important;
  right: 12px !important;
  font-size: 0.9rem !important;
}

body.mmt-home #flightsPanel .thg-flight-field-trigger strong {
  font-size: 0.88rem !important;
}

body.mmt-home #flightsPanel .thg-flight-swap {
  top: 35px !important;
  right: -17px !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  font-size: 0.9rem !important;
}

body.mmt-home #flightsPanel .thg-flight-options-row {
  gap: 16px !important;
  margin-top: 16px !important;
}

body.mmt-home #flightsPanel .mmt-fares-title {
  margin-bottom: 7px !important;
  font-size: 0.76rem !important;
}

body.mmt-home #flightsPanel .thg-flight-fares {
  gap: 7px !important;
}

body.mmt-home #flightsPanel .thg-flight-fares .mmt-chip {
  min-width: 112px !important;
  min-height: 54px !important;
  gap: 2px !important;
  padding: 8px 10px !important;
}

body.mmt-home #flightsPanel .thg-flight-fares .mmt-chip strong,
body.mmt-home #flightsPanel .thg-flight-tracker strong {
  font-size: 0.76rem !important;
}

body.mmt-home #flightsPanel .thg-flight-fares .mmt-chip small,
body.mmt-home #flightsPanel .thg-flight-tracker small {
  font-size: 0.62rem !important;
}

body.mmt-home #flightsPanel .thg-flight-tracker {
  min-height: 60px !important;
  padding: 9px 11px !important;
}

body.mmt-home #flightsPanel .thg-flight-protection {
  min-height: 48px !important;
  margin-top: 14px !important;
  padding: 9px 13px !important;
}

body.mmt-home #flightsPanel .thg-flight-protection strong {
  font-size: 0.74rem !important;
}

body.mmt-home #flightsPanel .thg-flight-protection small,
body.mmt-home #flightsPanel .thg-flight-protection a {
  font-size: 0.62rem !important;
}

body.mmt-home #flightsPanel .thg-flight-search-button {
  bottom: -23px !important;
  min-width: 260px !important;
  min-height: 48px !important;
  padding: 0 26px !important;
  font-size: 0.82rem !important;
}

body.mmt-home #flightsPanel .thg-flight-popover {
  width: min(420px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 48px) !important;
  padding: 9px !important;
  border-radius: 12px !important;
}

body.mmt-home #flightsPanel .thg-flight-traveller-popover {
  width: min(440px, calc(100vw - 24px)) !important;
}

body.mmt-home #flightsPanel .thg-flight-popover-head strong {
  font-size: 0.76rem !important;
}

body.mmt-home #flightsPanel .thg-flight-popover-head small,
body.mmt-home #flightsPanel .thg-flight-counter-row small {
  font-size: 0.56rem !important;
}

body.mmt-home #flightsPanel .thg-flight-popover-head button {
  width: 24px !important;
  height: 24px !important;
  font-size: 0.84rem !important;
}

body.mmt-home #flightsPanel .thg-flight-counter-row {
  gap: 8px !important;
  padding: 6px 0 !important;
}

body.mmt-home #flightsPanel .thg-flight-counter-row strong {
  font-size: 0.68rem !important;
}

body.mmt-home #flightsPanel .thg-flight-counter {
  grid-template-columns: 28px 32px 28px !important;
  border-radius: 8px !important;
}

body.mmt-home #flightsPanel .thg-flight-counter button,
body.mmt-home #flightsPanel .thg-flight-counter b {
  min-height: 28px !important;
  font-size: 0.74rem !important;
}

body.mmt-home #flightsPanel .thg-flight-counter-note {
  margin-top: 6px !important;
  font-size: 0.56rem !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card {
  grid-template-columns: 18px 1fr auto !important;
  gap: 6px !important;
  min-height: 44px !important;
  margin-top: 5px !important;
  padding: 6px 8px !important;
  border-radius: 9px !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card > i {
  font-size: 0.84rem !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card strong {
  font-size: 0.68rem !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card small {
  font-size: 0.52rem !important;
}

body.mmt-home #flightsPanel .thg-flight-cabin-card > b {
  font-size: 0.92rem !important;
}

body.mmt-home #flightsPanel .thg-flight-popover-apply {
  min-width: 92px !important;
  min-height: 30px !important;
  margin-top: 7px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  font-size: 0.68rem !important;
}

@media (min-width: 1051px) and (max-width: 1280px) {
  body.mmt-home #flightsPanel .thg-flight-route-bar {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field {
    border-bottom: 0 !important;
  }
}

@media (max-width: 1050px) {
  body.mmt-home #flightsPanel .thg-flight-route-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  body.mmt-home #flightsPanel .thg-flight-route-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  body.mmt-home #flightsPanel .thg-flight-route-bar {
    grid-template-columns: 1fr !important;
  }

  body.mmt-home #flightsPanel .thg-flight-route-bar > .mmt-field {
    min-height: 88px !important;
  }

  body.mmt-home #flightsPanel .thg-flight-swap {
    top: 70px !important;
  }
}

/* Reference-alignment pass: make the active Flight search the immediate focus. */
body.mmt-home[data-active-travel-service="flights"] .mmt-live-strip,
body.mmt-home[data-active-travel-service="flights"] .mmt-search-assurance,
body.mmt-home[data-active-travel-service="flights"] .mmt-business-desk {
  display: none !important;
}

body.mmt-home[data-active-travel-service="flights"] .mmt-booking-card {
  padding-top: 16px !important;
}

body.mmt-home[data-active-travel-service="flights"] #flightsPanel.thg-flight-search-v2 {
  margin-top: 0 !important;
  border-color: #d8e1ee !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 40px rgba(16, 36, 74, 0.12) !important;
}

body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-trip-head {
  padding: 0 2px !important;
}

body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-route-bar {
  border-color: #cfd9e7 !important;
  box-shadow: 0 5px 16px rgba(16, 36, 74, 0.04) !important;
}

body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-route-bar > .mmt-field {
  min-height: 106px !important;
}

body.mmt-home[data-active-travel-service="flights"] #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar .mmt-field > #flightFromInput,
body.mmt-home[data-active-travel-service="flights"] #flightsPanel.thg-flight-search-v2 .mmt-field-grid.mmt-flight-route-grid.thg-flight-route-bar .mmt-field > #flightToInput {
  font-size: 1.12rem !important;
}

body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-options-row {
  margin-top: 13px !important;
}

body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-protection {
  margin-top: 11px !important;
}

@media (max-width: 820px) {
  body.mmt-home[data-active-travel-service="flights"] .mmt-booking-card {
    padding-top: 10px !important;
  }

  body.mmt-home[data-active-travel-service="flights"] #flightsPanel .thg-flight-route-bar > .mmt-field {
    min-height: 94px !important;
  }
}
