/* The restyled search box (templates/deals_search_box.php, adc-api#3362): a light panel with
   dark text, a tab row of line icons, Land Trips choices as cards, the Odysseus cruise form
   restyled, and on phones and tablets a pill that opens the box as a dialog (search-box.js).
   Every rule is scoped to the new markup (#main_search_box.sbx, .sbx-*), so a page still on
   the older template keeps its look. Some rules need !important to win over older rules that
   use it themselves (deals_search_box_sidebar.css and the page stylesheets). */

#main_search_box.sbx {
  --sbx-navy: #004a83;
  --sbx-navy-dark: #00335c;

  /* White on the site's #e8404f is 3.98:1, under AA's 4.5:1 for the buttons' 16px bold
     labels; this is the nearest red that passes (4.52:1). */
  --sbx-red: #e52536;
  --sbx-red-dark: #c92f3d;
  --sbx-ink: #1f2d3a;
  --sbx-muted: #4d5d6b;

  /* A light cool gray rather than a pale blue, so the white fields stand out from it. */
  --sbx-panel: #e9eef2;
  --sbx-line: #c3ccd4;

  /* 3:1 against white, the AA minimum for a field's edge. */
  --sbx-field: #8996a2;
  --sbx-tabs: var(--sbx-navy);

  overflow: visible;
  border: 1px solid var(--sbx-line) !important;
  border-radius: 8px;
  background: var(--sbx-panel) !important;
  color: var(--sbx-ink);
  box-shadow: 0 2px 10px rgb(0 40 80 / 10%);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.sbx-svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

/* The solid icons (Material Symbols); the line balloon is drawn heavier to sit with them. */
.sbx-svg-fill {
  fill: currentcolor;
  stroke: none;
}

#main_search_box.sbx .top_btns .sbx-svg-line {
  stroke-width: 2.1;
}

/* The drill-down panel (search-box.js): a tour filter's choices or a help text, slid over the
   form inside the dialog. Full screen on phones, the dialog's size and place on tablets. */
.sbx-sheet[hidden] {
  display: none;
}

.sbx-sheet {
  display: flex;
  position: fixed;
  inset: 0;

  /* Above anything in the form under it: the tour form's Locations field (select2) carries its
     own z-index. */
  z-index: 100000;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #1f2d3a;
  font: 15px/1.4 Arial, "Helvetica Neue", Helvetica, sans-serif;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
}

.sbx-sheet.sbx-sheet-in {
  transform: none;
}

.sbx-sheet-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: max(6px, env(safe-area-inset-top, 0px)) 12px 6px max(4px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid #c3ccd4;
  background: #e9eef2;
}

.sbx-sheet-back {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #004a83;
  cursor: pointer;
}

.sbx-sheet-back:hover {
  background: rgb(0 74 131 / 10%);
}

.sbx-sheet-back .sbx-svg {
  stroke-width: 2.4;
}

.sbx-sheet-title {
  margin: 0;
  color: #004a83;
  font: bold 18px/1.2 Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.sbx-sheet-title:focus {
  outline: none;
}

.sbx-sheet-back:focus-visible {
  outline: 3px solid #f4b400;
  outline-offset: 2px;
}

.sbx-sheet-body {
  flex: 1;
  overflow: hidden auto;
  overscroll-behavior: contain;
}

/* A tour filter's choices: one column of full-width rows, with tourSearch.js's buttons pinned to
   the bottom. deals_search_box_tour.css hides the content until fancybox shows it. */
.sbx-sheet .fancycontent {
  display: flex !important;
  flex-direction: column;
  min-height: 100%;
}

.sbx-sheet .fancybox_content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.sbx-sheet .col-fancybox {
  flex: 1;
  columns: 1;
  padding: 4px 0;
}

.sbx-sheet .col-fancybox .checkbox {
  display: flex;
  align-items: center;
  gap: 12px;

  /* deals_search_box_tour.css sets width: 100%, which the side padding would push past the edge. */
  box-sizing: border-box;
  width: auto;
  margin: 0;
  padding: 0 16px;
  border-bottom: 1px solid #eef1f4;
}

/* The checkbox beside its label, centered, where deals_search_box_tour.css places it absolutely
   at the row's top. */
.sbx-sheet .col-fancybox .checkbox input[type="checkbox"] {
  position: static;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
}

.sbx-sheet .col-fancybox .checkbox label {
  display: block;
  flex: 1;
  margin: 0;
  padding: 12px 0;
  font-size: 15px;
  cursor: pointer;
}

.sbx-sheet .sticky-box-bot {
  display: flex;
  float: none;
  position: sticky;
  bottom: 0;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between !important;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #c3ccd4;
  background: #fff;
}

.sbx-sheet .sticky-box-bot > div:first-child {
  display: flex;
  gap: 8px;
}

.sbx-sheet .sticky-box-bot > div:last-child {
  flex-basis: 100%;
}

.sbx-sheet .sticky-box-bot .btn {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #8996a2;
  border-radius: 4px;
  background: #fff;
  color: #004a83;
  font: bold 13px Arial, "Helvetica Neue", Helvetica, sans-serif;
  cursor: pointer;
}

.sbx-sheet .sticky-box-bot .apply-filter-btn {
  width: 100%;
  min-height: 44px;
  border-color: #004a83;
  background: #004a83;
  color: #fff;
  font-size: 16px;
}

.sbx-sheet .sticky-box-bot .apply-filter-btn:disabled {
  border-color: #8996a2;
  background: #8996a2;
  cursor: default;
}

/* A help text at a phone's reading size; its own "Search Help" title repeats the panel's. */
.sbx-sheet-help {
  padding: 16px;
}

.sbx-sheet-help,
.sbx-sheet-help p,
.sbx-sheet-help span {
  font-size: 15px;
  line-height: 1.5;
}

.sbx-sheet-help p {
  margin: 0 0 12px;
}

.sbx-sheet-help .searchHelpTitle {
  display: none;
}

/* While the search is open, the LiveChat bubble and Cookie Control's corner button stay fixed
   over the page, the chat above the dialog (its z-index is 2147483639), and covered the dialog's
   buttons on phones. They come back when the search closes. !important because LiveChat styles
   its container inline. */
html.sbx-open #chat-widget-container,
html.sbx-open #ccc-icon {
  visibility: hidden !important;
}

/* While the dialog is open, a qTip would show behind it (the panel shows the text instead), and
   any fancybox pop-up opened by other code, such as the Flight + Hotel confirmation, shows above
   it rather than behind it. */
html.sbx-open .qtip {
  /* Hidden, not removed from layout: qTip skips hiding a tooltip it reads as not shown, so
     search-box.js could not close it when the dialog closes. */
  visibility: hidden !important;
}

/* select2's results lists (the tour form's Locations, Tour Name and cities) are attached to the
   page body, under the dialog, while it is open. calendar_table.css, on the tour operator pages,
   sets every select2 container to z-index: 9999 !important. */
html.sbx-open body > .select2-container--open {
  z-index: 2147483300 !important;
}

html.sbx-open .fancybox-overlay {
  z-index: 2147483100 !important;
}

html.sbx-open .fancybox-wrap {
  z-index: 2147483200 !important;
}

/* Tablets: the panel takes the dialog's place, a centered panel over the dimmed page. */
@media (768px <= width <= 1024px) {
  .sbx-sheet {
    inset: 40px 16px;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgb(0 0 0 / 30%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sbx-sheet {
    transition: none;
  }
}

#main_search_box.sbx :focus-visible {
  outline: 3px solid #f4b400;
  outline-offset: 2px;
}

/* The labels the older box set white on gray are dark on light. Only these: a blanket rule
   would also darken the date picker's grayed-out days and the dropdown's highlighted option. */
#main_search_box.sbx label,
#main_search_box.sbx .widget-label,
#main_search_box.sbx .destination-type-radio span,
#main_search_box.sbx .od-checkbox-label,
#main_search_box.sbx .od-results-wrapper,
#main_search_box.sbx .od-results-wrapper span:not(.number, .total-sailings),
#main_search_box.sbx .itineraties-found {
  color: var(--sbx-ink);
}

/* Headings */

#main_search_box.sbx .sbx-h {
  margin: 0 0 4px;
  padding: 14px 14px 0;
  color: var(--sbx-navy);
  font-size: 21px;
  font-weight: bold;
  text-transform: none;
}

#main_search_box.sbx .aside_title {
  display: none;
}

/* The tab row */

#main_search_box.sbx .top_btns[role="tablist"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-bottom: 0;

  /* The box's 8px corner less its 1px border, so the curve follows the border with no gap. */
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  background: var(--sbx-tabs);
}

#main_search_box.sbx .top_btns .clear_float {
  display: none;
}

#main_search_box.sbx .top_btns .search_btn {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 9px 2px 8px;
  border: 0;
  border-right: 1px solid rgb(255 255 255 / 18%);
  border-radius: 0;
  background: transparent;
  color: rgb(255 255 255 / 88%);
  font: bold 12px Arial, "Helvetica Neue", Helvetica, sans-serif;
  cursor: pointer;
}

#main_search_box.sbx .top_btns .search_btn:last-of-type {
  border-right: 0;
}

#main_search_box.sbx .sbx-tab-icon {
  width: 26px;
  height: 26px;
}

#main_search_box.sbx .top_btns .search_btn .text {
  margin: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

#main_search_box.sbx .top_btns .search_btn:hover {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

/* The open tab takes the panel's color, so it reads as joined to the panel below it. */
#main_search_box.sbx .top_btns .search_btn[aria-selected="true"] {
  background: var(--sbx-panel);
  color: var(--sbx-navy);
}

/* Cruise panel: the links above the Odysseus form */

/* deals_search_box.css pads the tab 10px as well; the section's padding is the only gutter. */
#main_search_box.sbx #cruise_tab {
  container: sbx / inline-size;
  padding: 0;
}

#main_search_box.sbx #cruise_tab section {
  padding: 10px 12px 12px;
}

/* Search Help and View Expanded Search on one line, at its two ends. */
#main_search_box.sbx .sbx-cruise-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#main_search_box.sbx a#cruiseSearchHelpLink,
#main_search_box.sbx a#cruiseSearchExpanded {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--sbx-navy);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* The side column's layout1.css gives Search Help margin: 4px 0 9px !important, which pushes it
   off the line it shares with View Expanded Search. */
#main_search_box.sbx .sbx-cruise-links a#cruiseSearchHelpLink,
#main_search_box.sbx .sbx-cruise-links a#cruiseSearchExpanded {
  margin: 0 !important;
}

#main_search_box.sbx a#cruiseSearchHelpLink:hover,
#main_search_box.sbx a#cruiseSearchExpanded:hover {
  text-decoration: underline;
}

#main_search_box.sbx a#cruiseSearchHelpLink .fa {
  color: #1f6fb5;
  font-size: 14px;
}

/* The Odysseus cruise form. Its markup and behavior are Odysseus's; only the look changes. Its
   theme styles these fields as #odysseus #OVExploreContainer ..., so these rules go through
   #OVExploreContainer too to outrank it without !important. */

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .destination-type-radio {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 15px;
  margin: 8px 0 6px;

  /* deals_search_box.css sets padding-left: 16px !important on the row (at 540), which pushed
     the centered options right. */
  padding-right: 0;
  padding-left: 0 !important;
  white-space: nowrap;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .destination-type-radio label {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  /* deals_search_box.css sets margin-right: 12px !important at 721 to 1218px, which pushes the
     row wider than the side column. */
  margin: 0 !important;
  font-size: 13px;
  font-weight: normal;
}

/* Odysseus pads each field 8px on either side; the panel's own padding is the only gutter. */
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-form-wrapper .od-input-wrapper {
  padding-right: 0;
  padding-left: 0;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__tags,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-date-picker,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer input.od-input-box {
  box-sizing: border-box;
  min-height: 32px;
  border: 1px solid var(--sbx-field);
  border-radius: 4px;
  background: #fff;
  color: var(--sbx-ink);
  font-size: 13px;
}

/* Odysseus paints a square white background behind each dropdown; rounding it keeps its
   corners from showing outside the field's. */
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect {
  border-radius: 4px;
}

/* A field's text sits in the middle of it; a field with several choices grows a line per row
   of chips rather than clipping them. */
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__tags {
  /* Odysseus lays the field out as a column: this centers its text vertically and keeps it
     at the left. deals_search_box.css sets min-height with !important, hence these. */
  justify-content: center;
  align-items: flex-start;
  min-height: 32px !important;
  padding: 3px 36px 3px 10px !important;
  text-align: left;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-form-wrapper .multiselect__placeholder,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-form-wrapper .multiselect__single,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-form-wrapper .multiselect__input {
  /* deals_search_box.css gives the placeholder margin-bottom: 5px !important, which sat the
     text high in its field. */
  margin: 0 !important;
  padding: 0;

  /* The field's size, so text doesn't shrink when a field opens and its search box (12px in
     Odysseus's theme) takes the placeholder's place. */
  font-size: inherit;
  line-height: 18px;
  text-align: left;
}

/* The advanced search's text fields (Package ID, Ports of Call), at the other fields' height,
   indent, text color and size: Odysseus's theme reaches them through a longer selector, and
   deals_search_box.css forces their padding. */
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-form-wrapper .od-input-wrapper input.od-input-box {
  box-sizing: border-box;
  min-height: 32px;
  padding: 0 10px !important;
  border: 1px solid var(--sbx-field);
  border-radius: 4px;
  background: #fff;
  color: #444;
  font-size: 13px;
}

/* The date field's wrapper draws the field; the input inside it has no border of its own. */
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-date-picker input {
  box-sizing: border-box;
  height: 30px;
  padding: 0 10px;
  border: 0;

  /* deals_search_box.css paints it white with !important, square, over the box's rounded corners. */
  border-radius: 3px;
  background: transparent;
  color: var(--sbx-ink);
  font-size: 13px;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__select {
  top: 1px;
  height: 30px;
}

/* On a touch screen the fields keep a finger-sized height. */
@media (pointer: coarse) {
  #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__tags,
  #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-date-picker,
  #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer input.od-input-box {
    min-height: 38px !important;
  }

  #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-date-picker input {
    height: 36px;
  }

  #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__select {
    height: 36px;
  }
}

/* One look for every field's placeholder, Sailing Dates included: the dropdowns' #444 (9.7:1 on
   white), and the date box's text at the dropdowns' size and indent, where Odysseus's theme sets
   it 12px and 15px in. */
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-form-wrapper .multiselect__placeholder,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-date-picker input::placeholder,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer input.od-input-box::placeholder,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-form-wrapper .multiselect__input::placeholder {
  color: #444;
  font-size: inherit;
  opacity: 1;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect--active .multiselect__tags,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__tags:hover,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-date-picker:hover {
  border-color: var(--sbx-navy);
}

/* vue-multiselect gives each chip a 5px bottom margin, which sat it high in its field. */
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__tag {
  margin: 0;
  border: 1px solid var(--sbx-line);
  border-radius: 3px;
  background: #dbe9f5;
  color: var(--sbx-navy);
  font-weight: bold;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__tag span {
  color: var(--sbx-navy);
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__tag-icon::after {
  color: var(--sbx-navy);
  font-size: 16px;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__tag-icon:hover {
  background: var(--sbx-navy);
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__tag-icon:hover::after {
  color: #fff;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__content-wrapper {
  z-index: 20;
  border: 1px solid var(--sbx-field);
  border-radius: 0 0 4px 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgb(0 40 80 / 15%);
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__content-wrapper .multiselect__option {
  background: #fff;
  color: var(--sbx-ink);
  font-size: 14px;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__content-wrapper .multiselect__option--highlight,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__content-wrapper .multiselect__option--highlight span {
  background: var(--sbx-navy);
  color: #fff;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__content-wrapper .multiselect__option--selected:not(.multiselect__option--highlight),
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__content-wrapper .multiselect__option--selected:not(.multiselect__option--highlight) span {
  background: #dbe9f5;
  color: var(--sbx-navy);
  font-weight: bold;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-checkbox-main-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-top: 4px;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-checkbox-main-wrapper label {
  white-space: nowrap;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-adv-search-btn,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .advance-btn-label {
  color: var(--sbx-navy);
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-search-button button,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer button.btn-search {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 4px;

  /* deals_search_box.css paints it a brighter red (#ff3048) with !important. */
  background: var(--sbx-red) !important;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-transform: none;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-form-wrapper .od-main-button-wrapper .od-search-button button span,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-form-wrapper .od-main-button-wrapper button.btn-search span {
  color: #fff;
  text-transform: none;
}

/* The Search button spans the box. Odysseus's theme caps its wrapper at a third of the row
   (flex-basis, max-width 33%, min-width 198px) through several long selectors, so this one
   wrapper takes !important rather than chasing each of them. */
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-main-button-wrapper {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-form-wrapper .od-button-wrapper.od-search-button {
  flex: 1 1 100% !important;
  width: 100%;
  min-width: 0 !important;
  max-width: none !important;
  margin-right: 0;
  margin-left: 0;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-search-button button:hover,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer button.btn-search:hover {
  background: var(--sbx-red-dark) !important;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-results-wrapper,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .itineraties-found {
  color: var(--sbx-ink);
  text-align: center;
}

#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-results-wrapper .number,
#main_search_box.sbx .swiftCruiseSearch #OVExploreContainer span.total-sailings {
  color: var(--sbx-navy);
  font-size: 20px;
  font-weight: bold;
}

/* The date picker (v-calendar), which Odysseus opens inside the box: white, like the fields. */
#main_search_box.sbx .vc-popover-content,
#main_search_box.sbx .vc-popover-content .vc-container {
  border-color: var(--sbx-field);
  border-radius: 6px;
  background: #fff;
}

#main_search_box.sbx .vc-popover-content {
  box-shadow: 0 10px 24px rgb(0 40 80 / 18%);
}

/* In a narrow box (the side-nav column) the choices tighten, and wrap rather than overflow:
   their wording ("Ocean Cruises") is Odysseus's text, which CSS cannot shorten. */
@container sbx (width <= 300px) {
  #main_search_box.sbx #cruise_tab section {
    padding: 8px 10px 10px;
  }

  #main_search_box.sbx .sbx-cruise-links {
    margin: 7px 0 5px;
  }

  #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .destination-type-radio {
    gap: 8px;
  }

  #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .destination-type-radio label,
  #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-checkbox-main-wrapper label {
    font-size: 12px;
  }
}


/* Land Trips */

/* deals_search_box.css pads the tab 10px on the left only; the surround's padding is the only
   gutter, as on the cruise tab. */
#main_search_box.sbx #land_tab {
  padding: 0;
}

#main_search_box.sbx div#land_tab div.surround {
  /* deals_search_box.js sets margin: 10px inline when Go Back returns to the choices. */
  margin: 0 !important;
  padding: 12px 10px 10px;
}

/* deals_search_box.css pads the list 10px on the right and spaces the choices with a bottom
   margin, which left more room right of and below them than left of them. */
#main_search_box.sbx #land_types {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

/* margin: 0 overrides deals_search_box.css's 10px 0 for this heading. */
#main_search_box.sbx #land_types #selectType {
  margin: 0;
  color: var(--sbx-navy);
  font-size: 15px;
  font-weight: bold;
  text-decoration: underline;
}

#main_search_box.sbx #land_types .landType {
  display: grid;
  grid-template-columns: 40px 1fr 14px;
  align-items: center;
  gap: 10px;

  /* Border-box keeps the padding and border inside the 100% width on pages without a global
     box-sizing rule (the port pages), where the cards ran past the box's right edge. */
  box-sizing: border-box;
  width: 100%;
  margin: 0 !important;
  padding: 10px;
  border: 1px solid var(--sbx-line);
  border-radius: 6px;
  background: #fff;
  color: var(--sbx-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#main_search_box.sbx #land_types .landType:hover {
  border-color: var(--sbx-navy);
}

#main_search_box.sbx #land_types .landType .icon {
  float: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 6px;
  background: var(--sbx-navy);
  color: #fff;
}

#main_search_box.sbx #land_types .landType .text {
  float: none;
  width: auto;
  margin: 0;
}

#main_search_box.sbx .sbx-land-name {
  display: block;
  color: var(--sbx-navy);
  font-size: 14px;
  font-weight: bold;
}

#main_search_box.sbx .sbx-land-desc {
  display: block;
  margin-top: 2px;
  color: var(--sbx-muted);
  font-size: 12px;
  line-height: 1.35;
}

#main_search_box.sbx .sbx-land-chevron {
  width: 14px;
  height: 14px;
  color: var(--sbx-muted);
}

/* Go Back sits on one line with Clear Selections (the tour form): a small, quiet button, since
   going back is not what the panel should invite. */
#main_search_box.sbx #land_result .deals_search_box_tours {
  align-items: center;
}

#main_search_box.sbx #land_result #clearSelections {
  padding-right: 0;
  font-size: 13px;
}

#main_search_box.sbx button#land_result_back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid var(--sbx-line);
  border-radius: 4px;
  background: #fff;
  color: var(--sbx-navy);
  font: bold 13px/1.3 Arial, "Helvetica Neue", Helvetica, sans-serif;
  cursor: pointer;
}

/* An off-white on hover: a quiet change on a button that should not draw the eye. */
#main_search_box.sbx button#land_result_back:hover {
  border-color: var(--sbx-field);
  background: #f7f8f9;
}

/* Over the Flight + Hotel form (shown unless deals_search_box.js hides it with an inline
   display: none), Go Back takes a little more room below it. */
#main_search_box.sbx #land_result:has(> #travImpForm:not([style*="none"])) button#land_result_back {
  margin-bottom: 8px;
}

/* The forms after a choice sit straight on the panel, right under Go Back, with the panel's
   width: deals_search_box.css boxes the Flight + Hotel form in a translucent card and indents
   its rows 6px, which the older gray panel needed and this one does not. */
#main_search_box.sbx #land_result form {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

#main_search_box.sbx #land_result #travImpForm > div {
  margin: 10px 0 0;
}

/* Its empty error box would add space under the Search button; the button's own margins are
   reset so the space left of it and below it match the panel's gutter. */
#main_search_box.sbx #land_result #travImpForm > .validation_container {
  margin: 0;
}

#main_search_box.sbx #land_result #travImpForm #ti_form_submit_btn {
  margin: 10px 0 0;
}

/* From / To and Departure / Return: two halves filling the row, where deals_search_box.css
   floats them at 50% and sizes the fields 97% and 85.3% wide, short of the right edge. */
#main_search_box.sbx #land_result #travImpForm .side_to_side_section {
  display: flex;
}

#main_search_box.sbx #land_result #travImpForm .side_to_side_section .set {
  flex: 1 1 0;
  float: none;
  width: auto;
  min-width: 0;
}

/* Spaced with a margin, not a gap: the row also holds an empty clearing div. */
#main_search_box.sbx #land_result #travImpForm .side_to_side_section .set + .set {
  margin-left: 10px;
}

/* The tour form: deals_search_box.css pads its container 10px on the right and each field 7px
   on both sides, so the fields sat further from the right edge than the left. At 1024px and
   narrower deals_search_box.js also fixes its height at 450px, scrolling inside, for the old
   drawer; the dialog scrolls as a whole instead. */
#main_search_box.sbx #land_result #filters_container_sticky {
  height: auto !important;
  padding-right: 0;
}

#main_search_box.sbx #land_result #filters_container_sticky .filter {
  padding-right: 0;
  padding-left: 0;
}

#main_search_box.sbx #land_result .swiftHotelSearch {
  margin-top: 6px;

  /* deals_search_box.css pads it 10px on the right. */
  padding-right: 0;
}

#main_search_box.sbx #land_result select,
#main_search_box.sbx #land_result input[type="text"] {
  border: 1px solid var(--sbx-field);
  border-radius: 4px;
  background: #fff;
  color: var(--sbx-ink);
}

/* Flights and Excursions */

#main_search_box.sbx div#flights_tab div.surround,
#main_search_box.sbx #excursions_tab {
  padding: 14px;
  color: var(--sbx-ink);
}

/* deals_search_box.css pads the tab 15px !important; the card's own margin is the only gutter. */
#main_search_box.sbx div#flights_tab {
  padding: 0 !important;
}

/* The text sits on a white card, so it stands apart from the panel as the other tabs' fields do. */
#main_search_box.sbx div#flights_tab div.surround {
  margin: 10px;
  padding: 12px 12px 2px;
  border: 1px solid var(--sbx-line);
  border-radius: 6px;
  background: #fff;
}

#main_search_box.sbx div#flights_tab p {
  margin: 0 0 10px;
  color: var(--sbx-ink);
  line-height: 1.5;
}

#main_search_box.sbx div#flights_tab p#flightSm {
  color: var(--sbx-muted);
  font-size: 12px;
}

#main_search_box.sbx #excursions_tab .large {
  color: var(--sbx-navy);
}

#main_search_box.sbx #excursions_tab #excursionLink {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 12px;
}

#main_search_box.sbx #excursions_tab .sbx-exc-text {
  color: var(--sbx-muted);
  font-size: 12px;
  text-align: center;
}

#main_search_box.sbx #excursions_tab a.sbx-btn {
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--sbx-navy);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

#main_search_box.sbx #excursions_tab a.sbx-btn:hover {
  background: var(--sbx-navy-dark);
}

#main_search_box.sbx #land_result input.btn-search-tours {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--sbx-red);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-transform: none;
  cursor: pointer;
}

#main_search_box.sbx #land_result input.btn-search-tours:hover {
  background: var(--sbx-red-dark);
}

#main_search_box.sbx #excursions_tab img {
  margin: 21px 0 5px;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* The pill, and the box as a dialog on phones and tablets (search-box.js) */

.sbx-pill[hidden] {
  display: none;
}

.sbx-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: calc(100% - 10px);
  margin: 12px 5px 25px;
  padding: 10px 18px;
  border: 2px solid #004a83;
  border-radius: 28px;
  background: #fff;
  color: #1f2d3a;
  font: 14px Arial, "Helvetica Neue", Helvetica, sans-serif;
  text-align: left;
  box-shadow: 0 2px 8px rgb(0 40 80 / 12%);
  cursor: pointer;
}

.sbx-pill:focus-visible {
  outline: 3px solid #f4b400;
  outline-offset: 2px;
}

.sbx-pill .sbx-svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #004a83;
}

.sbx-pill-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.sbx-pill-text strong {
  color: #004a83;
  font-size: 15px;
}

.sbx-pill-sub {
  overflow: hidden;
  color: #4d5d6b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#main_search_box.sbx.sbx-collapsed {
  display: none !important;
}

#main_search_box.sbx .sbx-dialog-head {
  display: none;
}

/* The page wrappers that held the box in a drawer sit in the page in dialog widths, holding
   only the pill; their own "Search Deals" toggle goes away. */
@media (width <= 1024px) {
  .sbx-host {
    position: static !important;
    inset: auto !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .sbx-host > .showHideButton {
    display: none !important;
  }
}

html.sbx-open,
html.sbx-open body {
  overflow: hidden;
}

.sbx-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow-y: auto;
  overscroll-behavior: contain;

  /* The panel's color, so a short form doesn't end in a band of another color on phones. */
  background: #e9eef2;
}

.sbx-layer #main_search_box.sbx {
  display: block !important;
  position: static !important;
  inset: auto !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
}

.sbx-layer #main_search_box.sbx .sbx-dialog-head {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 30;
  align-items: center;
  justify-content: space-between;
  padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--sbx-line);
  background: var(--sbx-panel);
}

/* In the dialog the tab row sits flush under the heading: square, without the heading's line, which
   showed past the row's rounded corners. The cruise-only box, without tabs, keeps the line. */
.sbx-layer #main_search_box.sbx .top_btns[role="tablist"] {
  border-radius: 0;
}

.sbx-layer #main_search_box.sbx:has(.top_btns[role="tablist"]) .sbx-dialog-head {
  border-bottom: 0;
}

.sbx-layer #main_search_box.sbx .sbx-dialog-title {
  margin: 0;
  color: var(--sbx-navy);
  font-size: 18px;
}

.sbx-layer #main_search_box.sbx .sbx-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--sbx-navy);
  font: 30px/1 Arial, sans-serif;
  cursor: pointer;
}

/* The cruise-only box's own heading repeats the dialog's. */
.sbx-layer #main_search_box.sbx .sbx-h {
  display: none;
}

/* Larger text in the dialog. Every field keeps one height: 32px, or 38px on a touch screen (the
   pointer: coarse rule above). */
.sbx-layer #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .multiselect__tags,
.sbx-layer #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-date-picker {
  font-size: 15px;
}

.sbx-layer #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-date-picker input,
.sbx-layer #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-date-picker input::placeholder {
  font-size: 15px;
}

.sbx-layer #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-form-wrapper .od-input-wrapper input.od-input-box {
  font-size: 15px;
}

.sbx-layer #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .destination-type-radio label,
.sbx-layer #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-checkbox-label {
  font-size: 15px;
}

/* Phones: the Search button stays in reach at the bottom of the screen. */
@media (width <= 767px) {
  .sbx-layer #main_search_box.sbx .swiftCruiseSearch #OVExploreContainer .od-search-button {
    position: sticky;
    bottom: 0;
    z-index: 25;
    margin: 0 -14px;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--sbx-panel);
  }
}

/* Tablets: a centered panel over the dimmed page. */
@media (768px <= width <= 1024px) {
  .sbx-layer {
    padding: 40px 16px;
    background: rgb(10 30 50 / 45%);
  }

  .sbx-layer #main_search_box.sbx {
    max-width: 480px !important;
    margin: 0 auto !important;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgb(0 0 0 / 30%);
  }

  .sbx-layer #main_search_box.sbx .sbx-dialog-head {
    border-radius: 10px 10px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sbx-layer {
    scroll-behavior: auto;
  }
}

/* Hotel Only: Odysseus's hotel form. deals_search_box.css styles it through
   div.swiftHotelSearch #odysseus #OVExploreContainer ..., so these rules go through
   #odysseus #OVExploreContainer as well. */
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer label,
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .widget-label {
  /* deals_search_box.css sets these white with !important for the old gray panel. Small and
     gray, as the tour and Flight + Hotel cards' labels are. */
  color: #5b6b78 !important;
  font-size: 12px;
  font-weight: normal;
}

/* Each field's icon (pin, calendar, people, star, globe), navy. The date and passenger fields
   paint their white over the icon, so it is lifted above them. */
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-input-wrapper .od-icon {
  z-index: 2;
  color: var(--sbx-navy);
}

#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-input-wrapper .od-icon svg {
  fill: var(--sbx-navy);
}

/* Only the boxes Odysseus draws as fields: not the search input inside a dropdown (a thin line
   when closed, a box when open) or the input inside the date box (a box within the box). */
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .multiselect__tags,
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-date-picker {
  /* No background here: Odysseus paints the white on a wrapper underneath, and a white field
     would cover each field's icon (a pin, a star, a globe), which sits behind it. */
  border-color: #c9d8e6;
  border-radius: 8px;
}

/* Odysseus paints each dropdown's white on a square wrapper; rounding it keeps its corners from
   showing outside the field's. */
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .multiselect_input_wrapper {
  border-radius: 8px;
}

/* Destination is two fields joined (Any and Select Destination): square where they meet, so they
   read as one field split by a single line. */
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .attached-location-type,
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .attached-location-type .multiselect__tags {
  border-radius: 8px 0 0 8px;
}

#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-location-select {
  border-radius: 0 8px 8px 0;
}

#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-location-select > .location-select {
  border-radius: 0 7px 7px 0;
}

#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-date-picker input,
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .multiselect__input {
  border: 0;
  background-color: transparent;
}

/* Share and Reset (links styled as square icon buttons): quiet outlined squares with navy icons,
   so Search is the one action that stands out. deals_search_box.css sets their hover with
   !important. */
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-reset-btn-wrapper a.od-reset {
  box-sizing: border-box;

  /* deals_search_box.css gives them a dark gray border with !important. */
  border: 1px solid #c9d8e6 !important;
  border-radius: 8px;
  background-color: #fff !important;
}

#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-reset-btn-wrapper a.od-reset:hover {
  border-color: var(--sbx-navy) !important;
  background-color: #eef4fa !important;
}

/* deals_search_box.css colors these icons white with !important, for the old navy squares. */
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-reset-btn-wrapper a.od-reset .od-icon svg {
  fill: var(--sbx-navy) !important;
}

/* The destination and passenger pickers draw their own boxes (the destination's corners are set
   with Any, above). */
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-location-select,
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-pax-picker .pax-count-input {
  border-color: #c9d8e6;
  background: #fff;
}

#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-pax-picker .pax-count-input {
  border-radius: 8px;
}

/* deals_search_box.css paints it a brighter red with !important. */
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-search-button .btn-search {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--sbx-red) !important;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}

/* Search fills the row beside Share and Reset (across the home page band it stays at the right,
   home-hero.css). Odysseus's theme caps the button's wrapper through long selectors, hence
   !important. */
#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-main-button-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-main-button-wrapper .od-search-button {
  flex: 1 1 auto !important;
  max-width: none !important;
  margin: 0 !important;
}

#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-main-button-wrapper .od-search-button .btn-search {
  width: 100%;
}

#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-search-button .btn-search:hover {
  background: var(--sbx-red-dark) !important;
}

#main_search_box.sbx .swiftHotelSearch #odysseus #OVExploreContainer .od-search-button .btn-search span {
  color: #fff;
}

#main_search_box.sbx .swiftHotelSearch a#hotelSearchHelpLink {
  color: var(--sbx-navy);
  font-size: 12px;
}

/* The Flight + Hotel halves' fields fill them (see .side_to_side_section above); here, after the
   general #land_result field rules they outrank. */

#main_search_box.sbx #land_result #travImpForm .side_to_side_section .set .select_span,
#main_search_box.sbx #land_result #travImpForm .side_to_side_section .set select,
#main_search_box.sbx #land_result #travImpForm .side_to_side_section .set input {
  box-sizing: border-box;
  width: 100%;
}

#main_search_box.sbx #land_result #travImpForm .side_to_side_section .set input {
  height: 29px;
}

/* The date box's text at the dropdowns' indent and color (see the placeholder rule above);
   Odysseus's theme reaches it through #odysseus, so this does too. */
#main_search_box.sbx .swiftCruiseSearch #odysseus #OVExploreContainer .od-date-picker input {
  padding-left: 10px;
  color: #444;
}

/*
 * Land Trips' small tabs (adc-api#3482): Tours, Flight + Hotel and Hotel only, in place of the
 * "Select a land vacation type" step and its Go Back. Only a box drawn with the tabs hides that
 * step, so the markup adc-sites still serves keeps it.
 */
#main_search_box.sbx .sbx-land-tabs {
  display: flex;
  gap: 6px;
  container-type: inline-size;
}

/* What the open kind is, under the tabs (production's words from the step the tabs replace). */
#main_search_box.sbx .sbx-land-help {
  margin: 8px 2px 10px;
  color: var(--sbx-muted);
  font-size: 12px;
  line-height: 1.4;
}

#main_search_box.sbx .sbx-land-tab {
  display: inline-flex;
  flex: 1 1 auto;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid var(--sbx-line);
  border-radius: 999px;
  background: #fff;
  color: var(--sbx-navy);
  font: bold 13px/1.2 Arial, "Helvetica Neue", Helvetica, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

#main_search_box.sbx .sbx-land-tab .sbx-svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

/* In a side box (about 270px) the three don't fit with their icons; the names alone do. */
@container (width < 300px) {
  #main_search_box.sbx .sbx-land-tab {
    padding: 6px 4px;
    font-size: 12px;
  }

  #main_search_box.sbx .sbx-land-tab .sbx-svg {
    display: none;
  }
}

#main_search_box.sbx .sbx-land-tab:hover {
  border-color: var(--sbx-navy);
}

#main_search_box.sbx .sbx-land-tab:focus-visible {
  outline: 2px solid var(--sbx-navy);
  outline-offset: 2px;
}

#main_search_box.sbx .sbx-land-tab.is-active {
  border-color: var(--sbx-navy);
  background: var(--sbx-navy);
  color: #fff;
}

/* With Go Back gone and Clear all moved to the count's line, the old row is empty. */
#main_search_box.sbx #land_tab:has(.sbx-land-tabs) #land_result .deals_search_box_tours {
  display: none;
}

/*
 * The tour count with Clear all at its right (search-box.js). The link shows only while a filter
 * is set; !important wins over the inline display and .hide that older scripts still set on it.
 */
#main_search_box.sbx .sbx-count-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

#main_search_box.sbx #land_result .sbx-count-row #clearSelections {
  display: none !important;
  flex: 0 0 auto;
  padding: 0;
  color: var(--sbx-navy);
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

#main_search_box.sbx #land_result .sbx-count-row.has-choices #clearSelections {
  display: inline !important;
}

#main_search_box.sbx #land_result .sbx-count-row #clearSelections:hover {
  text-decoration: underline;
}

#main_search_box.sbx #land_result .sbx-count-row #clearSelections:focus-visible {
  outline: 2px solid var(--sbx-navy);
  outline-offset: 2px;
}

#main_search_box.sbx #land_tab:has(.sbx-land-tabs) #land_types,
#main_search_box.sbx #land_tab:has(.sbx-land-tabs) #land_result button#land_result_back {
  display: none !important;
}


/*
 * Flight + Hotel (adc-api#3482): the tour card's look (tour-search-filters.css .tsx-card). One card of
 * rows, each with its icon, its label and, below it, its value; a chosen row's icon turns navy. From
 * and To are native selects spread over their whole row, so a tap anywhere opens the phone's own
 * list. Travelers sums the rooms and opens them in place. Everything is under .fhx-card, so the older
 * form adc-sites still serves keeps deals_search_box.css's look.
 */
/* stylelint-disable no-descending-specificity */
#main_search_box.sbx #land_result #travImpForm.fhx-card > .fhx-rows {
  container-type: inline-size;
  margin: 0;
  border: 1px solid #dfe8f1;
  border-radius: 12px;
  background: #fff;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row {
  display: flex;
  position: relative;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  box-sizing: border-box;
  padding: 12px 14px;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row + .fhx-row {
  border-top: 1px solid #edf2f7;
}

/* A row's tint keeps to the card's rounded corners (Hotel, the last row, below). */
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from {
  border-radius: 11px 11px 0 0;
}


#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row:hover,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row:focus-within,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row.is-open {
  background: #f6faff;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: #eef4fa;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-field {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-label,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-rooms label {
  margin: 0;
  padding: 0;
  border: 0;
  color: #5b6b78;
  font-size: 12px;
  font-weight: normal;
  line-height: 16px;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-value,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row select,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row input[type="text"] {
  display: block;
  width: 100%;
  height: 21px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1f2a37;
  font-size: 16px;
  font-weight: normal;
  line-height: 21px;
  text-overflow: ellipsis;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row input[type="text"]:focus,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row select:focus {
  outline: 0;
}

/* The select spreads over its row (its text kept where the value sits), so the whole row opens it. */
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from select,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to select {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;

  /* The row's usual height, so a message added under the value (fhxValidate) leaves it in place. */
  height: 60px;
  padding: 30px 40px 9px 62px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%238a99a6%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M6%209l6%206%206-6%27/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  cursor: pointer;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from .fhx-label,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to .fhx-label {
  position: relative;
  margin-bottom: 23px;
  pointer-events: none;
}

/* "Select a City" reads as a hint, a city as a choice. */
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from select:has(option[value="0"]:checked),
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to select:has(option[value="0"]:checked) {
  color: #8a99a6;
}

/*
 * From, To and the dates have no box of their own, so the row shows the focus: keyboard focus only,
 * as the rest of the search box. After a mouse submit moves focus to a missing city, the red row
 * marks it instead (is-quiet-focus, fhxValidate).
 */
#main_search_box.sbx #land_result #travImpForm.fhx-card:not(.is-quiet-focus) .fhx-from:has(:focus-visible),
#main_search_box.sbx #land_result #travImpForm.fhx-card:not(.is-quiet-focus) .fhx-to:has(:focus-visible),
#main_search_box.sbx #land_result #travImpForm.fhx-card:not(.is-quiet-focus) .fhx-dates:has(:focus-visible) {
  outline: 3px solid #f4b400;
  outline-offset: -3px;
}

/* Depart and Return: one row, two halves. */
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-fields {
  display: flex;
  flex: 1 1 0;
  gap: 12px;
  min-width: 0;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-dates .fhx-field + .fhx-field {
  padding-left: 12px;
  border-left: 1px solid #edf2f7;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row input[type="text"] {
  cursor: pointer;
}

/* In a side box the halves are too narrow for a date: Return goes under Depart. */
@container (width < 340px) {
  #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-dates {
    align-items: flex-start;
  }

  #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-dates .fhx-icon {
    align-self: center;
  }

  #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-dates .fhx-fields {
    flex-direction: column;
    gap: 8px;
  }

  #main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-dates .fhx-field + .fhx-field {
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid #edf2f7;
    border-left: 0;
  }
}

/* Travelers: the row is a button; its rooms open under it. */
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-travelers {
  display: block;
  padding: 0;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-toggle:focus-visible {
  outline: 3px solid #f4b400;
  outline-offset: -3px;
}

/* The sum wraps rather than cut off ("2 adults, 1 child · 1 room" in a side box). */
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-toggle .fhx-value {
  height: auto;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-caret {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%238a99a6%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M6%209l6%206%206-6%27/%3E%3C/svg%3E") center / 16px no-repeat;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-travelers.is-open .fhx-caret {
  transform: rotate(180deg);
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel {
  padding: 0 14px 14px 62px;
  color: #1f2a37;
  font-size: 13px;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel[hidden] {
  display: none;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel .fhx-rooms {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel select {
  height: 34px;
  min-width: 64px;
  padding: 0 28px 0 10px;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%238a99a6%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M6%209l6%206%206-6%27/%3E%3C/svg%3E") right 8px center / 14px no-repeat;
  color: #1f2a37;
  font-size: 15px;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel .select_span,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel .select_span.single {
  display: inline-block;
  width: auto;
  margin: 0;
  background: none;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel .select_span::after {
  display: none;
}

/* Each room: its name, then Adults and Children side by side (renderRoom's text and selects). */
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel .trvImpRoom {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  gap: 8px 10px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e3ebf3;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel .trvImpRoomNumber {
  grid-column: 1 / -1;
  margin: 0;
  color: #004a83;
  font-size: 13px;
  font-style: normal;
  font-weight: bold;
  text-decoration: none;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel .trvImpChildrenAgesSection {
  grid-column: 1 / -1;
  margin: 4px 0 0;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel .trvImpChildrenAges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  text-align: left;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel .trvImpChildrenAges label {
  display: block;
  margin-bottom: 2px;
  color: #5b6b78;
  font-size: 12px;
  font-weight: normal;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-panel .clear_float {
  display: none;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-done {
  display: block;
  margin: 14px 0 0 auto;
  padding: 7px 18px;
  border: 1px solid #004a83;
  border-radius: 999px;
  background: #fff;
  color: #004a83;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-done:hover {
  background: #eef4fa;
}

/* Hotel: Any, or, for a destination with hotels in our list, one picked from it. */
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-hotel {
  align-items: flex-start;
  border-radius: 0 0 11px 11px;
}

/* deals_search_box.js shows the choice by clearing its inline display: none. */
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-field:has(> .fhx-choice:not([style*="none"])) > .fhx-hotel-any {
  display: none;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-top: 2px;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-choice label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #1f2a37;
  font-size: 15px;
  font-weight: normal;
  cursor: pointer;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #004a83;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card #adc_hotelList {
  margin-top: 8px;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card #adc_hotelList .select2-container--default .select2-selection--single {
  height: 36px;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card #adc_hotelList .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 10px;
  color: #1f2a37;
  font-size: 15px;
  line-height: 34px;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card #adc_hotelList .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card #ti_form_submit_btn.fhx-submit {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 12px 0 0;
  border: 0;
  border-radius: 4px;
  background: var(--sbx-red);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-transform: none;
  cursor: pointer;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card #ti_form_submit_btn.fhx-submit:hover {
  background: var(--sbx-red-dark);
}

#main_search_box.sbx #land_result #travImpForm.fhx-card > .validation_container:not(:empty) {
  margin-top: 8px;
  font-size: 13px;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from .fhx-icon {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23004a83%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M2%2022h20M6.36%2017.4%204%2017l-2-4%201.1-.55a2%202%200%200%201%201.8%200l.17.1a2%202%200%200%200%201.8%200L8%2012%205%206l.9-.45a2%202%200%200%201%202.09.2l4.02%203a2%202%200%200%200%202.1.2l4.19-2.06a2.41%202.41%200%200%201%201.73-.17L21%207a1.4%201.4%200%200%201%20.87%201.99l-.38.76c-.23.46-.6.84-1.07%201.08L7.58%2017.2a2%202%200%200%201-1.22.18Z%27/%3E%3C/svg%3E");
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to .fhx-icon {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23004a83%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M2%2022h20M3.77%2010.77%202%209l2-4.5%201.1.55c.55.28.9.84.9%201.45s.35%201.17.9%201.45L8%208.5l3-6%201.05.53a2%202%200%200%201%201.09%201.52l.72%205.4a2%202%200%200%200%201.09%201.52l4.4%202.2c.42.22.78.55%201.01.96l.6%201.03c.49.88-.06%201.98-1.06%202.1l-1.18.15c-.47.06-.95-.02-1.37-.24L4.29%2011.15a2%202%200%200%201-.52-.38Z%27/%3E%3C/svg%3E");
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-dates .fhx-icon {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23004a83%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M3%209h18M8%203v4M16%203v4M5%205h14a2%202%200%200%201%202%202v12a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V7a2%202%200%200%201%202-2z%27/%3E%3C/svg%3E");
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-travelers .fhx-icon {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23004a83%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2M9%2011a4%204%200%201%200%200-8%204%204%200%200%200%200%208zM22%2021v-2a4%204%200%200%200-3-3.87M16%203.13a4%204%200%200%201%200%207.75%27/%3E%3C/svg%3E");
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-hotel .fhx-icon {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23004a83%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M2%204v16M2%208h18a2%202%200%200%201%202%202v10M2%2017h20M6%208v9%27/%3E%3C/svg%3E");
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from.is-chosen .fhx-icon {
  background-color: #004a83;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23ffffff%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M2%2022h20M6.36%2017.4%204%2017l-2-4%201.1-.55a2%202%200%200%201%201.8%200l.17.1a2%202%200%200%200%201.8%200L8%2012%205%206l.9-.45a2%202%200%200%201%202.09.2l4.02%203a2%202%200%200%200%202.1.2l4.19-2.06a2.41%202.41%200%200%201%201.73-.17L21%207a1.4%201.4%200%200%201%20.87%201.99l-.38.76c-.23.46-.6.84-1.07%201.08L7.58%2017.2a2%202%200%200%201-1.22.18Z%27/%3E%3C/svg%3E");
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to.is-chosen .fhx-icon {
  background-color: #004a83;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23ffffff%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M2%2022h20M3.77%2010.77%202%209l2-4.5%201.1.55c.55.28.9.84.9%201.45s.35%201.17.9%201.45L8%208.5l3-6%201.05.53a2%202%200%200%201%201.09%201.52l.72%205.4a2%202%200%200%200%201.09%201.52l4.4%202.2c.42.22.78.55%201.01.96l.6%201.03c.49.88-.06%201.98-1.06%202.1l-1.18.15c-.47.06-.95-.02-1.37-.24L4.29%2011.15a2%202%200%200%201-.52-.38Z%27/%3E%3C/svg%3E");
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-hotel.is-chosen .fhx-icon {
  background-color: #004a83;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23ffffff%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M2%204v16M2%208h18a2%202%200%200%201%202%202v10M2%2017h20M6%208v9%27/%3E%3C/svg%3E");
}
/* stylelint-enable no-descending-specificity */

/*
 * Excursions (adc-api#3482): the photo, then the question, what a shore excursion is and the partner's
 * link, red as every tab's main action is, marked as opening a new tab. Under .sbx-exc-body, so the
 * older markup adc-sites still serves keeps the rules above.
 */
#main_search_box.sbx #excursions_tab .sbx-exc-photo img {
  display: block;
  width: 100%;
  max-width: 296px;
  margin: 0 auto 14px;
  border-radius: 8px;
}

#main_search_box.sbx #excursions_tab .sbx-exc-body {
  line-height: 1.45;
  text-align: left;
}

#main_search_box.sbx #excursions_tab .sbx-exc-body .large {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.25;
}

#main_search_box.sbx #excursions_tab .sbx-exc-what {
  margin: 6px 0 14px;
  color: var(--sbx-muted);
  font-size: 13px;
}

#main_search_box.sbx #excursions_tab .sbx-exc-what strong {
  color: var(--sbx-ink);
}

/* deals_search_box.css narrows it to 170px on phones, for the older layout. */
#main_search_box.sbx #excursions_tab .sbx-exc-body #excursionLink {
  gap: 6px;
  width: auto;
  margin: 0;
}

#main_search_box.sbx #excursions_tab .sbx-exc-body a.sbx-btn {
  align-self: stretch;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  box-sizing: border-box;
  background: var(--sbx-red);
  color: #fff;
  font-size: 15px;
}

#main_search_box.sbx #excursions_tab .sbx-exc-body a.sbx-btn:hover,
#main_search_box.sbx #excursions_tab .sbx-exc-body a.sbx-btn:focus {
  background: var(--sbx-red-dark);
  color: #fff;
}

#main_search_box.sbx #excursions_tab .sbx-exc-body .sbx-exc-text {
  text-align: left;
}

#main_search_box.sbx #excursions_tab .sbx-exc-body .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/*
 * Flights (adc-api#3482): no flight search yet, so the tab leads with what we can do (a travel expert
 * books the flight: call, or send a message), then points package travelers to the searches that
 * include flights. Under .sbx-fly, so the older markup adc-sites still serves keeps the rules above.
 */
#main_search_box.sbx #flights_tab .sbx-fly {
  padding: 16px 14px;
  color: var(--sbx-ink);
  line-height: 1.45;
  text-align: left;
}

/* The plane's tile shows only across the home page band. */
#main_search_box.sbx #flights_tab .sbx-fly-icon {
  display: none;
}

#main_search_box.sbx #flights_tab .sbx-fly p {
  margin: 0;
}

#main_search_box.sbx #flights_tab .sbx-fly .sbx-fly-title {
  color: var(--sbx-navy);
  font-size: 18px;
  font-weight: bold;
  line-height: 1.25;
}

#main_search_box.sbx #flights_tab .sbx-fly .sbx-fly-text {
  margin: 6px 0 14px;
  color: var(--sbx-muted);
  font-size: 13px;
}

#main_search_box.sbx #flights_tab .sbx-fly-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#main_search_box.sbx #flights_tab .sbx-fly-actions a {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

#main_search_box.sbx #flights_tab .sbx-fly-actions a.sbx-fly-call {
  background: var(--sbx-red);
  color: #fff;
}

/* The link's text is only the number, which the geotargeting scripts replace; the icon and "Call" sit before it. */
#main_search_box.sbx #flights_tab .sbx-fly-actions a.sbx-fly-call::before {
  padding-left: 24px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23fff%27%20stroke-width=%272.2%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M22%2016.9v3a2%202%200%200%201-2.2%202%2019.8%2019.8%200%200%201-8.6-3.1%2019.5%2019.5%200%200%201-6-6A19.8%2019.8%200%200%201%202.1%204.2%202%202%200%200%201%204.1%202h3a2%202%200%200%201%202%201.7c.1%201%20.4%201.9.7%202.8a2%202%200%200%201-.5%202.1L8%209.9a16%2016%200%200%200%206%206l1.3-1.3a2%202%200%200%201%202.1-.4c.9.3%201.8.6%202.8.7a2%202%200%200%201%201.7%202z%27/%3E%3C/svg%3E") left center / 16px no-repeat;
  content: "Call";
}

#main_search_box.sbx #flights_tab .sbx-fly-actions a.sbx-fly-call:hover,
#main_search_box.sbx #flights_tab .sbx-fly-actions a.sbx-fly-call:focus {
  background: var(--sbx-red-dark);
  color: #fff;
}

#main_search_box.sbx #flights_tab .sbx-fly-actions a.sbx-fly-msg {
  border: 1px solid var(--sbx-navy);
  background: #fff;
  color: var(--sbx-navy);
}

#main_search_box.sbx #flights_tab .sbx-fly-actions a.sbx-fly-msg:hover,
#main_search_box.sbx #flights_tab .sbx-fly-actions a.sbx-fly-msg:focus {
  background: #eef4fa;
  color: var(--sbx-navy);
}

#main_search_box.sbx #flights_tab .sbx-fly .sbx-fly-package {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--sbx-line);
  color: var(--sbx-muted);
  font-size: 13px;
}

#main_search_box.sbx #flights_tab .sbx-fly-package-q {
  display: block;
  color: var(--sbx-ink);
  font-weight: bold;
}

#main_search_box.sbx #flights_tab .sbx-fly-package button[data-sbx-go] {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sbx-navy);
  font: inherit;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#main_search_box.sbx #flights_tab .sbx-fly-package button[data-sbx-go]:hover {
  color: var(--sbx-navy-dark);
}

#main_search_box.sbx #flights_tab .sbx-fly .sbx-fly-note {
  margin-top: 8px;
  color: var(--sbx-muted);
  font-size: 12px;
}


/* stylelint-disable no-descending-specificity -- the card's rows, as in its block above. */

/* A row the visitor must fix (deals_search_box.js fhxValidate): red edge, tint, label and icon tile,
   and the message under the value. */
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row.is-invalid {
  background: #fff5f5;
  box-shadow: inset 3px 0 0 var(--sbx-red);
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row.is-invalid .fhx-label {
  color: #b3141f;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-row.is-invalid .fhx-icon {
  background-color: #fde3e5;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-error {
  position: relative;
  margin-top: 2px;
  color: #b3141f;
  font-size: 13px;
  font-weight: bold;
  line-height: 17px;
  pointer-events: none;
}

/* stylelint-enable no-descending-specificity */

/* stylelint-disable no-descending-specificity */

/*
 * Flying from and Going to as search fields (select2, deals_search_box.js): the choice sits under its
 * label, as the other rows' values do, whatever the row's height, and a layer over the row (the box's
 * ::after) makes the whole row open it.
 */
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from:has(.select2) .fhx-label,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to:has(.select2) .fhx-label {
  margin-bottom: 0;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from .select2-container,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to .select2-container {
  display: block;
  position: static;

  /* select2 writes width: 100% on the element. */
  width: 100% !important;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from .select2-selection--single,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to .select2-selection--single {
  position: static;
  height: auto;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: none;
  cursor: pointer;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from .select2-selection--single::after,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to .select2-selection--single::after {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%238a99a6%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M6%209l6%206%206-6%27/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  content: "";
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from .select2-selection__rendered,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to .select2-selection__rendered {
  padding: 0 26px 0 0;
  overflow: hidden;
  color: #1f2a37;
  font-size: 16px;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from .select2-selection__placeholder,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to .select2-selection__placeholder {
  color: #8a99a6;
}

#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-from .select2-selection__arrow,
#main_search_box.sbx #land_result #travImpForm.fhx-card .fhx-to .select2-selection__arrow {
  display: none;
}

/* While the phone dialog is open, the calendar shows above it (jquery-ui-adc-custom.css sets 1000). */
html.sbx-open #ui-datepicker-div {
  z-index: 2147483300 !important;
}

/*
 * The Flight + Hotel calendar (fhx-cal, set while it is open from the card): larger days in the
 * card's colors, the trip's nights shaded from Depart to Return. Other calendars keep jQuery UI's look.
 */
#ui-datepicker-div.fhx-cal {
  box-sizing: border-box;
  width: auto !important;
  padding: 14px 16px 16px;
  border: 1px solid #dfe8f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(0 40 80 / 18%);
  color: #1f2a37;
  font-family: inherit;

  /* jquery-ui-adc-custom.css sets 12px !important on every calendar. */
  font-size: 15px !important;
}

#ui-datepicker-div.fhx-cal .ui-datepicker-group {
  width: auto;
}

#ui-datepicker-div.fhx-cal .ui-datepicker-group + .ui-datepicker-group {
  margin-left: 24px;
}

#ui-datepicker-div.fhx-cal .ui-datepicker-header {
  position: relative;
  padding: 4px 0 10px;
  border: 0;
  background: none;
}

#ui-datepicker-div.fhx-cal .ui-datepicker-title {
  margin: 0 40px;
  color: #004a83;
  font-size: 16px;
  font-weight: bold;
  line-height: 32px;
}

#ui-datepicker-div.fhx-cal .ui-datepicker-prev,
#ui-datepicker-div.fhx-cal .ui-datepicker-next {
  top: 4px;
  width: 32px;
  height: 32px;
  border: 1px solid #c9d8e6;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23004a83%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M15%206l-6%206%206%206%27/%3E%3C/svg%3E") center / 16px no-repeat;
  cursor: pointer;
}

#ui-datepicker-div.fhx-cal .ui-datepicker-prev {
  left: 0;
}

#ui-datepicker-div.fhx-cal .ui-datepicker-next {
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23004a83%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M9%206l6%206-6%206%27/%3E%3C/svg%3E");
}

#ui-datepicker-div.fhx-cal .ui-datepicker-prev:hover,
#ui-datepicker-div.fhx-cal .ui-datepicker-next:hover {
  background-color: #eef4fa;
}

#ui-datepicker-div.fhx-cal .ui-datepicker-prev.ui-state-disabled,
#ui-datepicker-div.fhx-cal .ui-datepicker-next.ui-state-disabled {
  opacity: 0.35;
  cursor: default;
}

#ui-datepicker-div.fhx-cal .ui-datepicker-prev .ui-icon,
#ui-datepicker-div.fhx-cal .ui-datepicker-next .ui-icon {
  display: none;
}

#ui-datepicker-div.fhx-cal table {
  width: auto;
  margin: 0;
  border-collapse: collapse;
  font-size: 15px;
}

#ui-datepicker-div.fhx-cal th {
  width: 40px;
  padding: 0 0 6px;
  color: #5b6b78;
  font-size: 12px;
  font-weight: normal;
}

#ui-datepicker-div.fhx-cal td {
  width: 40px;
  height: 40px;
  padding: 0;
}

#ui-datepicker-div.fhx-cal td a,
#ui-datepicker-div.fhx-cal td span {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #1f2a37;
  font-weight: normal;
  text-align: center;
}

#ui-datepicker-div.fhx-cal td a:hover {
  background: #dbe8f5;
  color: #004a83;
}

#ui-datepicker-div.fhx-cal td.ui-datepicker-unselectable span {
  color: #c3ccd5;
}

#ui-datepicker-div.fhx-cal td.ui-datepicker-today a {
  box-shadow: inset 0 0 0 1px #8a99a6;
}

/* The trip: a band from Depart to Return, the two ends as navy circles. */
#ui-datepicker-div.fhx-cal td.fhx-in-range {
  background: #e6f0fa;
}

#ui-datepicker-div.fhx-cal td.fhx-range-start {
  background: linear-gradient(to right, transparent 50%, #e6f0fa 50%);
}

#ui-datepicker-div.fhx-cal td.fhx-range-end {
  background: linear-gradient(to left, transparent 50%, #e6f0fa 50%);
}

/* jQuery UI fades a day that can't be chosen; Depart's, in the Return calendar, keeps its full color. */
#ui-datepicker-div.fhx-cal td.fhx-range-start.ui-state-disabled {
  opacity: 1;
}

#ui-datepicker-div.fhx-cal td.fhx-range-one {
  background: none;
}

/* In the Return calendar, Depart's day can't be chosen (jQuery UI draws it as a span) but still marks the start. */
#ui-datepicker-div.fhx-cal td.fhx-range-start a,
#ui-datepicker-div.fhx-cal td.fhx-range-start span,
#ui-datepicker-div.fhx-cal td.fhx-range-end a {
  background: #004a83;
  color: #fff;
  font-weight: bold;
}

/* The trip under the months: its two dates with an arrow between them, and its nights in a pill. */
#ui-datepicker-div.fhx-cal .fhx-cal-foot {
  display: flex;
  clear: both;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

#ui-datepicker-div.fhx-cal .fhx-cal-foot:empty {
  display: none;
}

#ui-datepicker-div.fhx-cal .fhx-foot-trip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2a37;
  font-size: 15px;
  font-weight: bold;
}

#ui-datepicker-div.fhx-cal .fhx-foot-arrow {
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%238a99a6%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M5%2012h14M13%206l6%206-6%206%27/%3E%3C/svg%3E") center / 16px no-repeat;
}

#ui-datepicker-div.fhx-cal .fhx-foot-date.is-empty {
  color: #5b6b78;
  font-weight: normal;
}

#ui-datepicker-div.fhx-cal .fhx-foot-nights {
  padding: 4px 12px 4px 30px;
  border-radius: 999px;
  background: #e6f0fa url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23004a83%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M21%2012.8A9%209%200%201%201%2011.2%203a7%207%200%200%200%209.8%209.8z%27/%3E%3C/svg%3E") left 10px center / 14px no-repeat;
  color: #004a83;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

/* stylelint-enable no-descending-specificity */
