:root{
  --wi-hotfix-text:#132238;
  --wi-hotfix-muted:#5f738d;
  --wi-hotfix-line:#dbe5f0;
  --wi-hotfix-line-strong:#cbd8e8;
  --wi-hotfix-surface:#ffffff;
  --wi-hotfix-green-1:#0f7a4f;
  --wi-hotfix-green-2:#0c6944;
}

/* keep hidden panels actually hidden */
.wi-searchbox__panel[hidden],
.ww-search-drop[hidden]{display:none !important;}

/* kill the broken two-row mobile search everywhere */
body .wi-searchbox,
body .wi-searchbox .wi-searchbox__form{
  width:100% !important;
}
body .wi-searchbox .wi-searchbox__form{
  position:relative !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
body .wi-searchbox .wi-searchbox__labelrow{
  display:block !important;
  margin:0 0 10px !important;
}
body .wi-searchbox .wi-searchbox__label{
  display:block !important;
  margin:0 !important;
  position:relative !important;
  z-index:1 !important;
  color:#667b96 !important;
  -webkit-text-fill-color:#667b96 !important;
  font-size:12px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}
body .wp-home-v4 .whm-search .wi-searchbox__label,
body .wp-transfers-v2 .whm-search .wi-searchbox__label{
  color:rgba(247,252,255,.92) !important;
  -webkit-text-fill-color:rgba(247,252,255,.92) !important;
}
body .wi-searchbox .wi-searchbox__row,
body .ww-search-shell{
  position:relative !important;
  display:block !important;
  grid-template-columns:none !important;
  gap:0 !important;
  width:100% !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:24px !important;
  background:var(--wi-hotfix-surface) !important;
  border:1px solid var(--wi-hotfix-line) !important;
  box-shadow:0 18px 40px rgba(9,18,34,.10) !important;
}
body .wi-searchbox .wi-searchbox__input,
body .ww-search input{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  min-height:60px !important;
  height:60px !important;
  margin:0 !important;
  padding:0 64px 0 18px !important;
  border:0 !important;
  border-radius:24px !important;
  background:transparent !important;
  box-shadow:none !important;
  color:var(--wi-hotfix-text) !important;
  -webkit-text-fill-color:var(--wi-hotfix-text) !important;
  font-size:16px !important;
  font-weight:700 !important;
}
body .wi-searchbox .wi-searchbox__input::placeholder,
body .ww-search input::placeholder{
  color:#8797aa !important;
  -webkit-text-fill-color:#8797aa !important;
  opacity:1 !important;
}
body .wi-searchbox .wi-searchbox__submit,
body .wi-searchbox .wi-searchbox__submit--label,
body .wi-searchbox .wi-searchbox__submit--icon,
body .ww-search-btn{
  position:absolute !important;
  right:10px !important;
  top:50% !important;
  left:auto !important;
  transform:translateY(-50%) !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:42px !important;
  min-width:42px !important;
  max-width:42px !important;
  height:42px !important;
  min-height:42px !important;
  max-height:42px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  border-radius:999px !important;
  border:1px solid rgba(7,18,34,.06) !important;
  background:linear-gradient(180deg,var(--wi-hotfix-green-1),var(--wi-hotfix-green-2)) !important;
  box-shadow:0 12px 24px rgba(11,105,68,.22) !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
  text-indent:-9999px !important;
  white-space:nowrap !important;
  z-index:2 !important;
}
body .wi-searchbox .wi-searchbox__submit::before,
body .wi-searchbox .wi-searchbox__submit--label::before,
body .wi-searchbox .wi-searchbox__submit--icon::before,
body .ww-search-btn::before{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width:18px;
  height:18px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:18px 18px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M8.75 3.75a5 5 0 1 0 0 10a5 5 0 0 0 0-10Zm0 0c2.761 0 5 2.239 5 5a4.98 4.98 0 0 1-1.189 3.24m0 0L16.25 15.75' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body .wi-searchbox .wi-searchbox__panel{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:calc(100% + 10px) !important;
  z-index:40 !important;
  border-radius:22px !important;
  border:1px solid var(--wi-hotfix-line) !important;
  background:#fff !important;
  box-shadow:0 22px 48px rgba(9,18,34,.14) !important;
}

/* home / transfers hero search shell specifically */
body .wp-home-v4 .whm-search,
body .wp-transfers-v2 .whm-search{
  max-width:650px !important;
}
body .wp-home-v4 .whm-search .wi-searchbox__form,
body .wp-transfers-v2 .whm-search .wi-searchbox__form{
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body .wp-home-v4 .whm-search .wi-searchbox__row,
body .wp-transfers-v2 .whm-search .wi-searchbox__row{
  background:#fff !important;
  border-color:rgba(219,229,240,.88) !important;
}

/* route hero contrast fix */
body .wr-hero,
body .ws-hero,
body .wi-hero,
body .wi-hub-hero,
body .wfleet-hero,
body .wt-trips .t-hero,
body .wt-trip .t-hero,
body .wt-trip .t-hero-shell{
  color:var(--wi-hotfix-text) !important;
}
body .wr-hero .wr-hero-copy h1,
body .wr-hero h1,
body .ws-hero h1,
body .wi-hero h1,
body .wi-hub-hero h1,
body .wfleet-hero h1,
body .wt-trips .t-title,
body .wt-trip .t-hero-card h1{
  color:var(--wi-hotfix-text) !important;
  -webkit-text-fill-color:var(--wi-hotfix-text) !important;
  opacity:1 !important;
  text-shadow:none !important;
}
body .wr-hero .wr-hero-tagline,
body .wr-hero .wr-hero-meta,
body .wr-hero .wr-hero-micro,
body .ws-hero p,
body .wi-hero p,
body .wi-hub-hero p,
body .wfleet-hero p,
body .wt-trips .t-sub,
body .wt-trip .t-hero-card .t-summary{
  color:var(--wi-hotfix-muted) !important;
  -webkit-text-fill-color:var(--wi-hotfix-muted) !important;
  opacity:1 !important;
}

/* make light-page hero/system buttons consistent */
body :where(.ws-actions .wi-btn,.wi-hero-cta .wi-btn,.wfleet-cta .wi-btn,.t-hero-actions .wi-btn,.wfleet-hero .wi-btn,.wr-hero-actions .wr-btn--primary){
  background:linear-gradient(180deg,var(--wi-hotfix-green-1),var(--wi-hotfix-green-2)) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border-color:rgba(11,105,68,.35) !important;
  box-shadow:0 14px 28px rgba(11,105,68,.16) !important;
}
body :where(.ws-actions .wi-btn2,.wi-hero-cta .wi-btn--ghost,.wfleet-cta .wi-btn2,.t-hero-actions .wi-btn2,.wfleet-hero .wi-btn2,.wr-hero-actions .wr-btn--ghost){
  background:#fff !important;
  color:var(--wi-hotfix-text) !important;
  -webkit-text-fill-color:var(--wi-hotfix-text) !important;
  border:1px solid var(--wi-hotfix-line) !important;
  box-shadow:none !important;
}

@media (max-width:760px){
  body .wi-searchbox .wi-searchbox__input,
  body .ww-search input{
    min-height:56px !important;
    height:56px !important;
    padding:0 58px 0 16px !important;
    font-size:15px !important;
  }
  body .wi-searchbox .wi-searchbox__submit,
  body .wi-searchbox .wi-searchbox__submit--label,
  body .wi-searchbox .wi-searchbox__submit--icon,
  body .ww-search-btn{
    width:40px !important;
    min-width:40px !important;
    max-width:40px !important;
    height:40px !important;
    min-height:40px !important;
    max-height:40px !important;
  }
}
