.empty-legs-intro { padding-block: clamp(24px, 2.6vw, 38px) clamp(14px, 1.6vw, 23px); }
.empty-legs-intro h1 { margin: 0 0 7px; }

.empty-legs-section .empty-legs-toolbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
}

.empty-legs-toolbar :is(.empty-legs-count, .empty-legs-sort) {
  position: relative;
  display: flex;
  flex: 0 1 172px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 53px;
  padding: 7px 13px;
  border: 1px solid #cedce5;
  border-radius: 9px;
  color: #203b50;
}
.empty-legs-toolbar .empty-legs-count { background: #f3f7f9; }
.empty-legs-toolbar :is([data-flight-count-label], .empty-sort-label) {
  display: block;
  color: #506779;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.28;
}
.empty-legs-count strong { font-size: 1.125rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.empty-legs-toolbar .empty-legs-sort { order: 0; padding: 0; border: 0; }
.empty-sort-trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  min-height: 53px;
  flex: 1;
  padding: 7px 29px 7px 13px;
  border: 1px solid #cedce5;
  border-radius: inherit;
  background: #fff;
  color: #203b50;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.empty-sort-trigger strong { font: 650 .875rem/1.25 var(--sans); overflow-wrap: anywhere; }
.empty-sort-trigger:disabled { opacity: .65; cursor: wait; }
.empty-sort-trigger[aria-expanded="true"] { border-color: #6d8a9c; background: #f4f8fa; }
.empty-sort-trigger:focus-visible, .empty-sort-menu button:focus-visible { outline: 2px solid #416b88; outline-offset: 2px; }
.empty-legs-sort .sort-caret { position: absolute; right: 11px; top: calc(50% - 8px); width: 16px; height: 16px; color: #31566d; pointer-events: none; }
.empty-sort-trigger[aria-expanded="true"] .sort-caret { transform: rotate(180deg); }
.empty-sort-menu {
  position: absolute;
  z-index: 4;
  right: 0;
  top: calc(100% + 5px);
  width: max(100%, 11.125rem);
  max-width: calc(100vw - 24px);
  padding: 5px;
  border: 1px solid #cad8e2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(16 42 59 / 17%);
}
.empty-sort-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #203b50;
  font: 550 .875rem/1.25 var(--sans);
  text-align: left;
  cursor: pointer;
}
.empty-sort-menu button[aria-checked="true"] { background: #e9f1f6; color: #173c54; font-weight: 700; }
.empty-sort-menu button[aria-checked="true"]::after {
  content: "";
  width: 7px;
  height: 12px;
  margin: -2px 4px 0 10px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.empty-sort-menu button:focus-visible { outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) {
  .empty-sort-menu:not([hidden]) { animation: empty-sort-in 130ms ease-out; }
  @keyframes empty-sort-in { from { transform: translateY(-3px); opacity: 0; } }
}
@media (hover: hover) {
  .empty-sort-trigger:hover { border-color: #6c8b9e; background: #f6f9fa; }
  .empty-sort-menu button:hover { background: #f0f5f8; }
}

.page-empty-legs .empty-legs-disclaimer { margin: 8px 0 28px; }
@media (max-width: 600px) {
  .empty-legs-intro { padding-block: 21px 12px; }
  .empty-legs-intro p { font-size: 13px; }
  .empty-legs-section .empty-legs-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empty-legs-toolbar .empty-legs-count { padding-inline: 10px; }
  .empty-sort-trigger { padding-inline: 10px 25px; }
  .empty-sort-trigger strong { font-size: .8125rem; }
  .empty-legs-sort .sort-caret { right: 7px; }
}
