.fb-page {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  color: var(--shell-text);
  line-height: 1.45;
  box-sizing: border-box;
  --fb-border: #c9d0d8;
  --fb-border-soft: #e6eaee;
  --fb-border-strong: #9aa5b1;
  --shell-border: var(--fb-border);
  --bm-dp-border: var(--fb-border);
}
@media (max-width: 900px) {
  .fb-page {
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
  }
  .fb-box {
    padding: 12px 12px 12px;
    margin-bottom: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .fb-layout,
  .fb-panel,
  .fb-results,
  .fb-filters,
  .fb-recent,
  .fb-holds,
  .fb-notices,
  .fb-section,
  .fb-form,
  .fb-field,
  .fb-inp,
  .fb-inp input,
  .fb-inp select,
  .fb-sel {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* ── Form box: card trắng + chân mint gọn ── */
.fb-search-stage {
  --fb-sky-ink: #15733c;
  --fb-border: #a3aab2;
  --fb-border-soft: #c5cbd2;
  --fb-border-strong: #858c95;
  --bm-dp-border: #a3aab2;
  position: relative;
  padding: 0;
  margin: 0 0 12px;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  height: auto;
  align-self: flex-start;
  overflow: visible;
  z-index: 40;
}
.fb-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  padding: 12px 14px 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  height: auto;
}
.fb-search-stage .fb-box {
  margin-bottom: 0;
  height: auto;
  min-height: 0;
  padding: 28px 32px 24px;
  border: 1px solid #dbe3ea;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    2px 2px 4px rgba(15, 23, 42, 0.05),
    8px 10px 22px rgba(15, 23, 42, 0.08),
    6px 6px 0 #d5dce4;
}

.fb-search-stage .fb-inp,
.fb-search-stage .fb-sel,
.fb-search-stage .fb-pax-trigger {
  border-radius: 8px;
  border-color: #a3aab2;
  background: #fff;
}
.fb-search-stage .fb-inp:focus-within,
.fb-search-stage .fb-sel:focus,
.fb-search-stage .fb-pax-trigger:focus-visible {
  border-color: #15733c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 115, 60, 0.12);
}
.fb-search-stage .fb-inp__ico {
  border-right-color: #c5cbd1;
  color: #15733c;
}
.fb-search-stage .fb-form__row--radio {
  border-bottom-color: #eef2ef;
}
.fb-search-stage .fb-form__row--opts {
  position: relative;
  z-index: 3;
  margin-bottom: 0;
  padding: 2px 0 0;
  border-top: none;
  justify-content: flex-end;
}
.fb-search-stage .fb-search {
  border-radius: 8px;
  height: 42px;
  padding: 0 46px;
  min-width: 315px;
  width: auto;
  margin-left: auto;
  overflow: hidden;
  background: #15733c;
  box-shadow: 0 8px 16px rgba(21, 115, 60, 0.28);
}
.fb-search-stage .fb-search:hover:not(:disabled) {
  background: #0f5c30;
}

.fb-bubble {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 10px;
  box-shadow: none;
}
.fb-bubble:last-of-type {
  margin-bottom: 8px;
}
.fb-bubble .fb-form__row {
  margin-bottom: 0;
}

.fb-trip-pills {
  gap: 22px !important;
  border-bottom: none !important;
  padding-bottom: 2px !important;
  margin-bottom: 10px !important;
  justify-content: flex-start !important;
}
.fb-trip-pills .fb-radio {
  flex: 0 0 auto !important;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #1a2b48;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  gap: 8px;
  box-shadow: none;
  transition: color 0.15s ease;
}
.fb-trip-pills .fb-radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 1.5px solid #4b5563;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.fb-trip-pills .fb-radio input:checked {
  border-color: #15733c;
  box-shadow:
    inset 0 0 0 2.5px #fff,
    inset 0 0 0 8px #15733c;
}
.fb-trip-pills .fb-radio:has(input:checked) {
  background: transparent;
  color: #1a2b48;
  box-shadow: none;
}
.fb-trip-pills .fb-radio--off {
  opacity: 1;
  color: #c5c9d0;
  cursor: not-allowed;
}
.fb-trip-pills .fb-radio--off input,
.fb-trip-pills .fb-radio input:disabled {
  border-color: #d7dbe2;
  box-shadow: none;
  cursor: not-allowed;
  background: #fff;
}

.fb-search-stage .fb-box__title::before {
  background: #15733c;
}
@media (max-width: 900px) {
  .fb-search-stage {
    padding: 0;
    margin-bottom: 12px;
  }
  .fb-search-stage .fb-box {
    padding: 20px 16px 18px;
    border-radius: 16px;
    box-shadow:
      2px 2px 4px rgba(15, 23, 42, 0.05),
      8px 8px 18px rgba(15, 23, 42, 0.08),
      5px 5px 0 #d5dce4;
  }
  .fb-search-stage .fb-search {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 28px;
    font-size: 0.95rem;
  }
  .fb-form__row--opts {
    border-top: none;
  }
}
.fb-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.fb-box__head .fb-box__title {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.fb-box__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.fb-box__settings-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  border-radius: 8px;
  padding: 0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: opacity 0.12s;
}
.fb-box__settings-btn:hover {
  opacity: 0.92;
}
.fb-box__settings-label {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}
.fb-box__settings-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fb-box__settings-chip,
.fb-box__settings-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: #15733c;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
}
.fb-box__settings-chip--intl,
#priceMarkupBadgeIntl {
  background: #ea580c;
  color: #fff;
}
.fb-box__gds-fee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 0;
  white-space: nowrap;
}
.fb-box__gds-fee[hidden] {
  display: none !important;
}
.fb-box__gds-fee-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}
.fb-box__gds-fee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0f5c30;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.fb-price-markup-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--fb-border-soft);
}
.fb-price-markup-section:first-child {
  border-top: 0;
  padding-top: 0;
}
.fb-price-markup-section__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}
.fb-price-markup-section__note {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
}
.fb-price-markup-readonly {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--fb-border-soft);
  border-radius: 8px;
  background: #f8fafc;
}
.fb-price-markup-readonly__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #15733c;
}
.fb-box__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--shell-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fb-box__title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: var(--shell-blue, #15733c);
  flex-shrink: 0;
}

.fb-form__row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.fb-form__row:last-child { margin-bottom: 0; }

.fb-form__row--radio {
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fb-border-soft);
}

.fb-form__row--route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 8px;
}

.fb-form__row--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 768px) {
  .fb-form__row--3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fb-form__row--3 .fb-pax-field { grid-column: 1 / -1; }
  .fb-form__row--gds {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "sys sys"
      "view cabin";
  }
  .fb-form__row--gds .fb-field--system { grid-area: sys; }
  .fb-form__row--gds .fb-field--view { grid-area: view; }
  .fb-form__row--gds .fb-field--cabin { grid-area: cabin; }
  .fb-form__row--radio {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .fb-form__row--radio .fb-radio {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    gap: 5px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .fb-form__row--radio .fb-radio input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
}

@media (max-width: 900px) {
  .fb-box__head {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .fb-box__head .fb-box__title {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin: 0;
  }
  .fb-box__settings-btn {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin-left: auto;
    align-self: center;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 0.74rem;
    gap: 6px;
  }
  .fb-box__settings-btn:hover {
    border: none;
    background: transparent;
    box-shadow: none;
    opacity: 1;
  }
  .fb-box__settings-label {
    font-size: 0.74rem;
  }
  .fb-box__settings-chip,
  .fb-box__settings-badge {
    min-width: 0;
    padding: 4px 9px;
    font-size: 0.7rem;
  }
  .fb-box__gds-fee-label {
    display: none;
  }
  .fb-box__gds-fee-badge {
    min-width: 36px;
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .fb-box__title {
    font-size: 1.1rem;
  }
  .fb-field label {
    font-size: 0.86rem;
    margin-bottom: 6px;
  }
  .fb-inp {
    height: 44px;
  }
  .fb-inp input,
  .fb-inp select {
    font-size: 0.98rem;
    padding: 0 12px;
  }
  .fb-inp .bm-dp-trigger {
    font-size: 0.98rem;
  }
  .fb-pax-trigger {
    height: 44px;
  }
  .fb-pax-trigger-summary {
    font-size: 0.98rem;
  }
  .fb-sel {
    height: 44px;
    font-size: 0.98rem;
    padding: 0 12px;
  }
  .fb-form__row--route .fb-inp {
    height: 48px;
  }
  .fb-form__row--route .fb-swap {
    width: 48px;
    height: 48px;
  }
  .fb-form__row--route .fb-inp input {
    font-size: 1rem;
  }
  .fb-check,
  .fb-opts-label {
    font-size: 0.92rem;
  }
  .fb-search {
    font-size: 0.98rem;
    min-height: 44px;
  }
}

.fb-form__row--opts {
  align-items: center;
  gap: 24px;
  padding: 8px 0;
  border-top: 1px solid var(--fb-border-soft);
  flex-wrap: nowrap;
}
.fb-form__row--opts .fb-search {
  margin-left: auto;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .fb-form__row--opts {
    flex-wrap: wrap;
    gap: 12px;
  }
  .fb-form__row--opts .fb-search {
    margin-left: auto;
    width: auto;
  }
}
@media (max-width: 520px) {
  .fb-form__row--opts .fb-search {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* ── Field ── */
.fb-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.fb-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--shell-muted);
  margin-bottom: 5px;
}
.fb-req {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}

.fb-inp {
  display: flex;
  align-items: stretch;
  height: 40px;
  border: 1px solid var(--fb-border);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.fb-inp:focus-within {
  border-color: var(--shell-blue);
}
.fb-inp.is-disabled {
  background: #f3f4f6;
}
.fb-inp.is-disabled input,
.fb-inp.is-disabled select,
.fb-inp.is-disabled .bm-dp-trigger {
  color: #94a3b8;
  cursor: not-allowed;
}
.fb-inp__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  flex-shrink: 0;
  color: var(--shell-muted);
  border-right: 1px solid var(--fb-border-soft);
}
.fb-inp__ico img { width: 18px; height: 18px; }
.fb-inp__ico--air {
  color: var(--shell-blue);
  width: 44px;
}
.fb-inp__ico--air .fb-plane-ico {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.fb-inp input,
.fb-inp select {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0 10px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--shell-text);
  background: transparent;
}
.fb-inp input:focus,
.fb-inp select:focus { outline: none; }

.fb-inp .bm-dp-field {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
}

.fb-inp .bm-dp-trigger {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 10px;
  min-height: 0;
  height: 100%;
}

.fb-inp .bm-dp-trigger:hover,
.fb-inp .bm-dp-trigger:focus,
.fb-inp .bm-dp-field.is-open .bm-dp-trigger {
  border: none;
  box-shadow: none;
}

.fb-inp.is-disabled .bm-dp-field,
.fb-inp.is-disabled .bm-dp-trigger {
  cursor: not-allowed;
}

/* ── Passenger picker dropdown ── */
.fb-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.fb-pax-img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.fb-pax-field { z-index: 20; }
.fb-pax-dd {
  position: relative;
  width: 100%;
}
.fb-pax-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 0 10px 0 0;
  border: 1px solid var(--fb-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--shell-text);
  transition: border-color 0.12s ease;
}
.fb-pax-trigger:hover { border-color: var(--fb-border-strong); }
.fb-pax-trigger:focus-visible {
  outline: none;
  border-color: var(--shell-blue);
}
.fb-pax-dd.is-open .fb-pax-trigger {
  border-color: var(--shell-blue);
}
.fb-pax-trigger-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
  color: var(--shell-muted);
  border-right: 1px solid var(--fb-border-soft);
}
.fb-pax-trigger-icon .fb-pax-img {
  width: 18px;
  height: 18px;
}
.fb-pax-trigger-summary {
  flex: 1;
  min-width: 0;
  padding-left: 2px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--shell-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-pax-trigger-chevron {
  flex-shrink: 0;
  display: block;
  width: 0;
  height: 0;
  margin-right: 4px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  transition: transform 0.2s ease;
}
.fb-pax-dd.is-open .fb-pax-trigger-chevron { transform: rotate(180deg); }
.fb-pax-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1600;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--fb-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  padding: 4px 0 6px;
}
.fb-pax-panel[hidden] { display: none !important; }
.fb-pax-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--fb-border-soft);
}
.fb-pax-row:last-child { border-bottom: 0; }
.fb-pax-row-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.fb-pax-row-icon .fb-pax-img {
  width: 30px;
  height: 30px;
  background: #fff;
}
.fb-pax-row-text {
  flex: 1;
  min-width: 0;
}
.fb-pax-row-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.25;
}
.fb-pax-row-sub {
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
}
.fb-pax-stepper {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  margin-left: auto;
  border: 1px solid var(--fb-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.fb-pax-step {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  color: #334155;
  transition: background 0.12s ease;
}
.fb-pax-step:hover {
  background: #eef2ff;
  color: var(--shell-blue);
}
.fb-pax-step:focus-visible {
  outline: 2px solid var(--shell-blue);
  outline-offset: -2px;
  z-index: 1;
}
.fb-pax-step-val {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0 6px;
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #334155;
  background: #fff;
  border-left: 1px solid var(--fb-border-soft);
  border-right: 1px solid var(--fb-border-soft);
}

.fb-sel {
  width: 100%;
  height: 40px;
  border: 1px solid var(--fb-border);
  border-radius: 6px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--shell-text);
  background: #fff;
}
.fb-sel:focus {
  outline: none;
  border-color: var(--shell-blue);
}
.fb-sel--sm {
  width: auto;
  min-width: 120px;
  height: 34px;
  font-size: 0.78rem;
}

.fb-swap {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  border: 1px solid var(--fb-border);
  border-radius: 6px;
  background: #fff;
  color: var(--shell-blue);
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.fb-swap__ico {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
}
.fb-swap:hover { background: var(--shell-blue-hover); }

@media (max-width: 768px) {
  .fb-form__row--route {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 0;
  }
  #originWrap,
  #destWrap {
    width: 100%;
  }
  .fb-form__row--route .fb-field label {
    display: none;
  }
  .fb-search-stage .fb-form__row--route .fb-inp {
    height: 44px;
    border-radius: 12px;
    border: 1px solid #a3aab2;
    background: #fff;
    box-shadow: none;
  }
  .fb-search-stage .fb-swap,
  .fb-search-stage .fb-form__row--route .fb-swap {
    border-radius: 12px;
    border-color: #a3aab2;
    background: #fff;
  }
  .fb-form__row--route .fb-inp:focus-within,
  .fb-form__row--route .fb-field.is-airport-active .fb-inp {
    border-color: var(--shell-blue);
  }
  .fb-form__row--route .fb-inp__ico {
    border-right-color: var(--fb-border-soft);
  }
  .fb-form__row--route .fb-inp input {
    padding-right: 48px;
  }
  .fb-swap,
  .fb-form__row--route .fb-swap {
    position: absolute;
    right: 6px;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 6px;
    border: 1px solid var(--fb-border);
    background: #fff;
    box-shadow: none;
    transform: translateY(-50%);
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
  }
  .fb-swap__ico {
    width: 26px;
    height: 26px;
    transform: none;
  }
  .fb-swap:active {
    transform: translateY(-50%) scale(0.94);
  }
}

/* ── Radio / Check ── */
.fb-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--shell-text);
  cursor: pointer;
  user-select: none;
}
.fb-radio input {
  width: 15px;
  height: 15px;
  accent-color: var(--shell-blue);
  cursor: pointer;
}
.fb-radio--off { opacity: 0.45; cursor: not-allowed; }

.fb-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--shell-text);
  cursor: pointer;
}
.fb-check input { accent-color: var(--shell-blue); }

.fb-opts-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.fb-opts-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--shell-text);
  margin-right: 4px;
}

.fb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.fb-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 6px;
  background: var(--shell-blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
  transition: background 0.18s ease, transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.fb-search:hover:not(:disabled) { background: var(--shell-blue-dark); }
.fb-search:disabled { opacity: 0.65; cursor: wait; }
.fb-search svg { flex-shrink: 0; }

#searchBtn .fb-search__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 28%,
    rgba(255, 255, 255, 0.38) 48%,
    transparent 68%
  );
  transform: translateX(-130%);
  z-index: 1;
}
#searchBtn .fb-search__ico,
#searchBtn .fb-search__label,
#searchBtn .fb-spin {
  position: relative;
  z-index: 2;
}
#searchBtn .fb-search__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#searchBtn.is-loading {
  opacity: 1;
  cursor: wait;
}

@media (prefers-reduced-motion: no-preference) {
  #searchBtn:not(:disabled):not(.is-loading) .fb-search__shine {
    animation: fb-search-shine 2.8s ease-in-out infinite;
  }
  .fb-search-stage #searchBtn:not(:disabled):not(.is-loading) {
    animation: fb-search-glow 2.6s ease-in-out infinite;
  }
  .fb-search-stage #searchBtn:hover:not(:disabled):not(.is-loading) {
    transform: translateY(-2px);
    animation: none;
    box-shadow: 0 12px 22px rgba(21, 115, 60, 0.38);
  }
  .fb-search-stage #searchBtn:hover:not(:disabled):not(.is-loading) .fb-search__shine {
    animation: fb-search-shine 1.1s ease-in-out infinite;
  }
  .fb-search-stage #searchBtn:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 4px 10px rgba(21, 115, 60, 0.28);
  }
  #searchBtn.is-loading {
    opacity: 1;
    animation: fb-search-loading-pulse 1.2s ease-in-out infinite;
  }
  #searchBtn.is-loading .fb-search__shine {
    animation: fb-search-shine 1s linear infinite;
  }
}

@keyframes fb-search-shine {
  0% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}
@keyframes fb-search-glow {
  0%, 100% { box-shadow: 0 8px 16px rgba(21, 115, 60, 0.28); }
  50% { box-shadow: 0 10px 22px rgba(21, 115, 60, 0.4); }
}
@keyframes fb-search-loading-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

/* Bong bóng khi bấm Tìm chuyến bay */
.fb-search__bubble {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--fb-bub-size, 10px);
  height: var(--fb-bub-size, 10px);
  margin: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    circle at 32% 28%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.45) 42%,
    rgba(180, 220, 255, 0.35) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 6px rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.35);
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: no-preference) {
  .fb-search__bubble {
    animation: fb-search-bubble var(--fb-bub-dur, 1.6s) cubic-bezier(0.18, 0.55, 0.25, 1) forwards;
    animation-delay: var(--fb-bub-delay, 0s);
  }
}
@keyframes fb-search-bubble {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  12% {
    opacity: 0.95;
  }
  70% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--fb-bub-x, 0px)),
        calc(-50% + var(--fb-bub-y, -40px))
      )
      scale(var(--fb-bub-scale, 1));
  }
}

@media (min-width: 769px) {
  .fb-search-stage {
    padding: 0;
    border-radius: 0;
  }
  .fb-box {
    padding: 12px 16px 12px;
  }
  .fb-search-stage .fb-box {
    padding: 28px 32px 24px;
    box-shadow:
      2px 2px 4px rgba(15, 23, 42, 0.05),
      8px 10px 22px rgba(15, 23, 42, 0.08),
      6px 6px 0 #d5dce4;
  }
  .fb-box__head .fb-box__title {
    font-size: 1.05rem;
    margin-bottom: 0;
  }
  .fb-form__row {
    gap: 12px;
    margin-bottom: 12px;
  }
  .fb-form__row--3 {
    gap: 12px;
  }
  .fb-form__row--radio {
    gap: 20px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .fb-form__row--opts {
    gap: 24px;
    padding: 10px 0 0;
  }
  .fb-field label {
    font-size: 0.78rem;
    margin-bottom: 5px;
  }
  .fb-inp {
    height: 42px;
  }
  .fb-inp__ico {
    width: 38px;
  }
  .fb-inp__ico img {
    width: 18px;
    height: 18px;
  }
  .fb-inp__ico--air {
    width: 44px;
  }
  .fb-inp__ico--air .fb-plane-ico {
    width: 26px;
    height: 26px;
  }
  .fb-inp input,
  .fb-inp select {
    font-size: 0.88rem;
    padding: 0 12px;
  }
  .fb-inp .bm-dp-trigger {
    font-size: 0.88rem;
  }
  .fb-pax-trigger {
    height: 42px;
  }
  .fb-pax-trigger-icon {
    width: 38px;
  }
  .fb-pax-trigger-icon .fb-pax-img {
    width: 18px;
    height: 18px;
  }
  .fb-pax-trigger-summary {
    font-size: 0.88rem;
  }
  .fb-sel {
    height: 42px;
    padding: 0 12px;
    font-size: 0.88rem;
  }
  .fb-swap {
    width: 42px;
    height: 42px;
  }
  .fb-swap__ico {
    width: 28px;
    height: 28px;
  }
  .fb-radio,
  .fb-check,
  .fb-opts-label {
    font-size: 0.88rem;
  }
  .fb-radio input {
    width: 16px;
    height: 16px;
  }
  .fb-search {
    height: 42px;
    padding: 0 22px;
    font-size: 0.88rem;
  }
  .fb-search svg {
    width: 20px;
    height: 20px;
  }
}

/* ── Airport field active / tap feedback ── */
@media (prefers-reduced-motion: no-preference) {
  .fb-field.is-airport-active .fb-inp {
    border-color: var(--shell-blue);
    transition: border-color 0.12s ease;
  }
  .fb-field.is-airport-pulse .fb-inp {
    animation: none;
  }
  .fb-field.is-airport-active .fb-plane-ico {
    animation: fb-airport-plane-bounce 0.52s cubic-bezier(0.34, 1.4, 0.64, 1);
  }
  .fb-ap__airport.is-tapped {
    animation: fb-ap-airport-tap 0.32s ease;
  }
}
@keyframes fb-airport-field-pulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.012); }
  100% { transform: scale(1); }
}
@keyframes fb-airport-plane-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px) rotate(-6deg); }
  70% { transform: translateY(1px) rotate(2deg); }
}
@keyframes fb-ap-airport-tap {
  0% { transform: scale(1); background: transparent; }
  45% { transform: scale(0.98); background: var(--shell-blue-hover); }
  100% { transform: scale(1); }
}

/* ── Airport picker (2 cột: khu vực + sân bay) ── */
.fb-ap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  max-height: min(420px, calc(100vh - 120px));
  background: #fff;
  border: 1px solid var(--shell-border);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}
.fb-ap__panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.fb-ap__head {
  display: none;
}
.fb-ap[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  .fb-ap:not(.fb-ap--sheet) {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .fb-ap:not(.fb-ap--sheet).is-open {
    opacity: 1;
    transform: translateY(0);
  }
}
.fb-ap__search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--shell-border);
  background: #fafbfc;
}
.fb-ap__search-svg {
  flex-shrink: 0;
  color: var(--shell-muted);
}
.fb-ap__search-ico {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  color: var(--shell-blue);
  border: 1px solid #e8ecf1;
  border-radius: 3px;
  background: #fff;
}
.fb-ap__search-ico--air .fb-plane-ico {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}
.fb-ap__search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--shell-text);
  outline: none;
}
.fb-ap__body {
  display: grid;
  grid-template-columns: 168px 1fr;
  flex: 1;
  min-height: 0;
  height: 320px;
  overflow: hidden;
}
.fb-ap__regions {
  border-right: 1px solid var(--shell-border);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #c5cee0 transparent;
}
.fb-ap__regions::-webkit-scrollbar,
.fb-ap__airports::-webkit-scrollbar {
  width: 6px;
}
.fb-ap__regions::-webkit-scrollbar-thumb,
.fb-ap__airports::-webkit-scrollbar-thumb {
  background: #c5cee0;
  border-radius: 3px;
}
.fb-ap__regions::-webkit-scrollbar-thumb:hover,
.fb-ap__airports::-webkit-scrollbar-thumb:hover {
  background: #a8b3c9;
}
.fb-ap__region,
.fb-ap__airport {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--shell-text);
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.12s, color 0.12s;
}
.fb-ap__region {
  border-left: 3px solid transparent;
}
.fb-ap__region:hover,
.fb-ap__airport:hover { background: var(--shell-blue-hover); }
.fb-ap__region.is-active {
  background: var(--shell-blue);
  color: #fff;
  border-left-color: var(--shell-blue-dark);
  font-weight: 600;
}
.fb-ap__region.is-static {
  cursor: default;
  font-weight: 600;
  color: var(--shell-muted);
  background: #f8fafc;
}
.fb-ap__airports {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #c5cee0 transparent;
}
.fb-ap__airport {
  padding-left: 16px;
  padding-right: 16px;
}
.fb-ap__airport.is-active {
  background: var(--shell-blue);
  color: #fff;
  font-weight: 600;
}
.fb-ap__airport.is-active .fb-ap__code { color: rgba(255,255,255,0.85); }
.fb-ap__code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--shell-muted);
  flex-shrink: 0;
}
.fb-ap__empty {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--shell-muted);
}

@media (max-width: 768px) {
  .fb-ap.fb-ap--sheet {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 600;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #334155;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
  }

  .fb-ap.fb-ap--sheet.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .fb-ap.fb-ap--sheet.is-closing {
    opacity: 0;
    pointer-events: none;
  }

  .fb-ap.fb-ap--sheet .fb-ap__panel {
    height: 100%;
    background: #fff;
    box-shadow: none;
    transform: translateY(100%);
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: auto;
  }

  .fb-ap.fb-ap--sheet.is-open .fb-ap__panel {
    transform: translateY(0);
  }

  .fb-ap.fb-ap--sheet.is-closing .fb-ap__panel {
    transform: translateY(100%);
  }

  @media (prefers-reduced-motion: reduce) {
    .fb-ap.fb-ap--sheet,
    .fb-ap.fb-ap--sheet .fb-ap__panel {
      transition: none;
    }
    .fb-ap.fb-ap--sheet .fb-ap__panel {
      transform: none;
    }
  }

  .fb-ap.fb-ap--sheet .fb-ap__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 14px 16px 10px;
    border-bottom: none;
    background: #fff;
  }

  .fb-ap.fb-ap--sheet .fb-ap__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shell-blue-dark);
    line-height: 1.3;
  }

  .fb-ap.fb-ap--sheet .fb-ap__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
  }

  .fb-ap.fb-ap--sheet .fb-ap__close:active {
    transform: scale(0.94);
  }

  .fb-ap.fb-ap--sheet .fb-ap__close:hover {
    background: #f8fafc;
    color: #0f172a;
  }

  .fb-ap.fb-ap--sheet .fb-ap__search {
    margin: 0 16px 12px;
    padding: 0;
    gap: 0;
    border: 1px solid var(--fb-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
  }

  .fb-ap.fb-ap--sheet .fb-ap__search-svg {
    display: none;
  }

  .fb-ap.fb-ap--sheet .fb-ap__search-ico {
    display: flex;
    border: none;
    border-right: 1px solid var(--fb-border-soft);
    border-radius: 0;
    height: 44px;
  }

  .fb-ap.fb-ap--sheet .fb-ap__search input {
    height: 44px;
    padding: 0 12px;
    font-size: 0.88rem;
    background: #fff;
  }

  .fb-ap.fb-ap--sheet .fb-ap__body {
    grid-template-columns: minmax(108px, 38%) 1fr;
    height: auto;
    flex: 1;
    min-height: 0;
    border-top: 1px solid var(--shell-border);
  }

  .fb-ap.fb-ap--sheet .fb-ap__regions {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid var(--shell-border);
    border-bottom: none;
    max-height: none;
  }

  .fb-ap.fb-ap--sheet .fb-ap__region {
    width: 100%;
    white-space: normal;
    border-left: 3px solid transparent;
    border-bottom: none;
    padding: 12px 10px;
    font-size: 0.82rem;
  }

  .fb-ap.fb-ap--sheet .fb-ap__region.is-active {
    border-left-color: var(--shell-blue-dark);
    border-bottom-color: transparent;
  }

  .fb-ap.fb-ap--sheet .fb-ap__airport {
    padding: 12px 14px;
    font-size: 0.86rem;
  }
}

body.fb-ap-sheet-open {
  overflow: hidden;
}

/* legacy autocomplete - ẩn */
.fb-ac { display: none !important; }

/* ── Alert ── */
.fb-alert {
  display: none;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.fb-alert.is-show { display: block; }
.fb-alert--info { background: #e8f5ec; color: #0f5a2e; border: 1px solid #b8dcc4; }
.fb-alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.fb-alert--ok { background: var(--shell-blue-hover); color: var(--shell-blue-dark); border: 1px solid #c5e6d0; }

/* ── Results layout ── */
#contentGrid {
  scroll-margin-top: calc(var(--shell-header-h, 56px) + 12px);
}
.fb-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 960px) {
  .fb-layout.has-results.has-filters {
    grid-template-columns: minmax(0, 1fr) minmax(278px, 326px);
    align-items: start;
  }
  .fb-layout.has-results.has-filters.has-booking {
    grid-template-columns: minmax(0, 1fr) minmax(278px, 326px) minmax(315px, 355px);
  }
  .fb-layout.has-results:not(.has-filters).has-booking {
    grid-template-columns: minmax(0, 1fr) minmax(315px, 355px);
  }
}

/* MacBook / desktop hẹp - thu cột lọc + booking, scale nội dung */
@media (min-width: 960px) and (max-width: 1499px) {
  .fb-layout.has-results.has-filters {
    grid-template-columns: minmax(0, 1fr) clamp(200px, 20vw, 280px);
  }
  .fb-layout.has-results.has-filters.has-booking {
    grid-template-columns: minmax(0, 1fr) clamp(200px, 20vw, 280px) clamp(240px, 22vw, 320px);
  }
  .fb-layout.has-results:not(.has-filters).has-booking {
    grid-template-columns: minmax(0, 1fr) clamp(240px, 22vw, 320px);
  }

  #resultsFilters.fb-filters {
    --fb-filter-pad: 12px;
  }
  .fb-filters-head {
    padding: 12px var(--fb-filter-pad) 10px;
    gap: 8px;
  }
  .fb-filters-head__title { font-size: 0.82rem; }
  .fb-filters-head__badge { font-size: 0.62rem; padding: 2px 7px; }
  .fb-filters-head__clear { font-size: 0.68rem; }
  .fb-filter-block { padding: 8px var(--fb-filter-pad) 7px; }
  .fb-filter-label { font-size: 0.68rem; margin-bottom: 5px; }
  .fb-filter-search {
    height: 31px;
    padding: 0 10px;
    gap: 6px;
  }
  .fb-filter-search input { font-size: 0.72rem; }
  .fb-filter-section__head {
    padding: 8px var(--fb-filter-pad);
    font-size: 0.72rem;
  }
  .fb-filter-section__body { padding: 0 var(--fb-filter-pad) 9px; }
  .fb-filter-chip {
    min-height: 26px;
    padding: 0 10px;
    font-size: 0.66rem;
  }
  .fb-filter-airline {
    grid-template-columns: 16px 27px 1fr auto;
    padding: 5px var(--fb-filter-pad);
    gap: 8px;
  }
  .fb-filter-airline__logo {
    width: 27px;
    height: 27px;
    border-radius: 7px;
  }
  .fb-filter-airline__logo img {
    width: 20px;
    height: 20px;
  }
  .fb-filter-airline__name { font-size: 0.68rem; }
  .fb-filter-airline__meta { font-size: 0.58rem; }
  .fb-filter-airline__price { font-size: 0.68rem; }
  .fb-filter-stop {
    padding: 5px var(--fb-filter-pad);
  }
  .fb-filter-stop__name { font-size: 0.68rem; }
  .fb-filter-stop__meta { font-size: 0.58rem; }
  .fb-filter-toggle {
    padding: 8px var(--fb-filter-pad) 9px;
  }
  .fb-filter-toggle__text strong { font-size: 0.72rem; }
  .fb-filter-toggle__text small { font-size: 0.62rem; }

  .fb-book h3 { font-size: 0.84rem; }
  .fb-book .sub { font-size: 0.7rem; }
  .fb-summary { font-size: 0.72rem; padding: 8px 10px; }
}
@media (max-width: 959px) {
  #resultsFilters.fb-filters:not(.is-sheet-open) {
    display: none !important;
  }
  .fb-layout.has-results.has-booking .fb-book { order: 3; }
}

/* Filter sidebar (kết quả tìm) - tránh trùng class .fb-filters ở form */
#resultsFilters[hidden],
#resultsSection[hidden],
#contentGrid[hidden] {
  display: none !important;
}
#resultsFilters.fb-panel {
  padding: 0;
}
#resultsFilters.fb-filters {
  --fb-filter-pad: 16px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}
@media (min-width: 960px) {
  #resultsFilters.fb-filters {
    position: sticky;
    top: 12px;
    align-self: start;
  }
}

/* Sidebar SVG/icons: tránh max-width:100% của shell làm icon thành khối lớn */
#resultsFilters svg.fb-sel-leg__chev,
#resultsFilters svg.fb-filter-section__chev,
#resultsFilters svg.fb-filters-head__ico {
  max-width: none;
}

.fb-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px var(--fb-filter-pad, 16px) 12px;
  border-bottom: 1px solid #eef2f6;
  background: linear-gradient(180deg, #f8fcf9 0%, #fff 100%);
}
.fb-filters-head__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fb-filters-head__ico {
  flex-shrink: 0;
  color: var(--shell-blue);
}
.fb-filters-head__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}
.fb-filters-head__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--shell-blue);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
}
.fb-filters-head__clear {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--shell-blue);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.fb-filters-head__clear:hover { text-decoration: underline; }
.fb-filters-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.fb-filters-head__close {
  display: none;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.fb-filters-head__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.fb-filters-sheet-foot {
  display: none;
}
.fb-filters-sheet-backdrop {
  display: none;
}
.fb-mobile-filter-btn {
  display: none;
}
.fb-mobile-filter-rail {
  display: none;
}
.fb-results-list-wrap {
  position: relative;
}

@media (max-width: 959px) {
  .fb-results {
    overflow: visible;
  }
  .fb-mobile-filter-rail:not([hidden]) {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    width: 56px;
    pointer-events: none;
  }
  .fb-mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 7px;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #dbe3ea;
    border-radius: 9px;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
  }
  .fb-mobile-filter-btn.is-pinned {
    position: fixed;
    top: var(--fb-filter-pin-top, 66px);
    right: var(--fb-filter-pin-right, 7px);
  }
  .fb-mobile-filter-btn.is-end {
    top: auto;
    bottom: 8px;
  }
  .fb-mobile-filter-btn svg {
    flex-shrink: 0;
    color: var(--shell-blue, #15733c);
  }
  .fb-mobile-filter-btn__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--shell-blue, #15733c);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }
  .fb-mobile-filter-btn__badge[hidden] {
    display: none !important;
  }
  body.fb-filters-sheet-open .fb-mobile-filter-rail {
    visibility: hidden;
    pointer-events: none;
  }

  body.fb-filters-sheet-open {
    overflow: hidden;
  }
  .fb-filters-sheet-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(15, 23, 42, 0.45);
  }
  #resultsFilters.fb-filters.is-sheet-open {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 1200;
    width: 100%;
    max-width: 100%;
    max-height: min(88vh, 720px);
    margin: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: fb-filters-sheet-in 0.22s ease-out;
  }
  .fb-filters-head__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .fb-filters-sheet-foot {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: auto;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #eef2f6;
    background: #fff;
  }
  .fb-filters-sheet-done {
    display: block;
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--shell-blue, #15733c);
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
  }
  .fb-filters-sheet-done:hover {
    filter: brightness(0.96);
  }
}
@keyframes fb-filters-sheet-in {
  from { transform: translateY(24px); opacity: 0.85; }
  to { transform: translateY(0); opacity: 1; }
}
@media (min-width: 960px) {
  .fb-mobile-filter-btn,
  .fb-mobile-filter-rail,
  .fb-filters-head__close,
  .fb-filters-sheet-foot,
  .fb-filters-sheet-backdrop {
    display: none !important;
  }
}

.fb-filter-block {
  padding: 10px var(--fb-filter-pad, 16px) 8px;
  border-bottom: 1px solid #eef2f6;
}
.fb-filter-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.fb-filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.fb-filter-search:focus-within {
  border-color: var(--shell-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(21, 115, 60, 0.1);
}
.fb-filter-search svg {
  flex-shrink: 0;
  color: #94a3b8;
}
.fb-filter-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--shell-text);
  outline: none;
}
.fb-filter-search input::placeholder { color: #94a3b8; }

.fb-sort-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.fb-sort-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1e293b;
  text-align: center;
  line-height: 1.25;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.fb-sort-opt:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.fb-sort-opt.is-active {
  background: var(--shell-blue);
  border-color: var(--shell-blue);
  color: #fff;
  font-weight: 500;
}

.fb-filter-section {
  border-bottom: 1px solid #eef2f6;
}
.fb-filter-section:last-child { border-bottom: none; }
.fb-filter-section--flat {
  padding: 0;
}

.fb-filter-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px var(--fb-filter-pad, 16px);
  border: none;
  background: #fff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}
.fb-filter-section__head:hover { background: #fafbfc; }
.fb-filter-section__chev {
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.2s;
}
.fb-filter-section__head:not(.is-open) + .fb-filter-section__body { display: none; }
.fb-filter-section__head:not(.is-open) .fb-filter-section__chev { transform: rotate(180deg); }

.fb-filter-section__body {
  padding: 0 var(--fb-filter-pad, 16px) 10px;
}

.fb-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fb-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.fb-filter-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.fb-filter-chip.is-active {
  background: #ecfdf3;
  border-color: var(--shell-blue);
  color: var(--shell-blue-dark);
  box-shadow: 0 0 0 1px rgba(21, 115, 60, 0.15);
}
.fb-filter-chip__count {
  margin-left: 3px;
  font-weight: 700;
  color: #94a3b8;
  font-size: 0.66rem;
}
.fb-filter-chip.is-active .fb-filter-chip__count {
  color: var(--shell-blue-soft, #2a8f52);
}

.fb-filter-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px var(--fb-filter-pad, 16px) 10px;
  cursor: pointer;
  box-sizing: border-box;
}
.fb-filter-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.fb-filter-toggle__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  position: relative;
  transition: background 0.12s, border-color 0.12s;
}
.fb-filter-toggle input:checked + .fb-filter-toggle__box {
  background: var(--shell-blue);
  border-color: var(--shell-blue);
}
.fb-filter-toggle input:checked + .fb-filter-toggle__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.fb-filter-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fb-filter-toggle__text strong {
  font-size: 0.76rem;
  font-weight: 600;
  color: #1e293b;
}
.fb-filter-toggle__text small {
  font-size: 0.66rem;
  color: #64748b;
  line-height: 1.35;
}

.fb-price-range {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 4px 0;
}
.fb-price-range__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.fb-price-range__cap {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}
.fb-price-range__val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #c45c26;
  font-variant-numeric: tabular-nums;
}
.fb-price-range__slider {
  width: 100%;
  height: 6px;
  accent-color: var(--shell-blue);
  cursor: pointer;
}
.fb-price-range__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.66rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.fb-price-range__foot #filterPriceRangeMaxLbl {
  font-weight: 700;
  color: #64748b;
}
.fb-price-range__hint {
  flex: 1;
  text-align: center;
  font-size: 0.62rem;
}

.fb-time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.fb-time-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 6px 4px;
  border: 1px solid #e8edf2;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s, transform 0.12s;
}
.fb-time-slot svg,
.fb-time-ico {
  width: 18px;
  height: 18px;
  display: block;
  color: #64748b;
  flex-shrink: 0;
}
.fb-time-slot span {
  font-size: 0.6rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}
.fb-time-slot:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}
.fb-time-slot.is-active {
  background: #ecfdf3;
  border-color: var(--shell-blue);
  box-shadow: 0 2px 8px rgba(21, 115, 60, 0.12);
}
.fb-time-slot.is-active svg,
.fb-time-slot.is-active .fb-time-ico { color: var(--shell-blue); }
.fb-time-slot.is-active span { color: var(--shell-blue-dark); }

.fb-filter-airlines {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 calc(-1 * var(--fb-filter-pad, 16px));
}
.fb-filter-airline {
  display: grid;
  grid-template-columns: 16px 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px var(--fb-filter-pad, 16px);
  border: none;
  border-bottom: 1px solid #eef2f6;
  border-radius: 0;
  cursor: pointer;
  background: #fff;
  transition: background 0.12s;
  box-sizing: border-box;
}
.fb-filter-airline:last-child {
  border-bottom: none;
}
.fb-filter-airline:hover {
  background: #fafbfc;
}
.fb-filter-airline.is-on {
  background: #f0fdf4;
}
.fb-filter-airline input {
  width: 15px;
  height: 15px;
  accent-color: var(--shell-blue);
  cursor: pointer;
  margin: 0;
}
.fb-filter-airline__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  overflow: hidden;
}
.fb-filter-airline__logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.fb-filter-airline__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fb-filter-airline__name {
  font-size: 0.74rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-filter-airline__meta {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 500;
}
.fb-filter-airline__meta em {
  font-style: normal;
  font-weight: 700;
  color: #94a3b8;
}
.fb-filter-airline__price {
  font-size: 0.68rem;
  font-weight: 700;
  color: #c45c26;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.fb-filter-stops {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 calc(-1 * var(--fb-filter-pad, 16px));
}
.fb-filter-stop {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px var(--fb-filter-pad, 16px);
  border: none;
  border-bottom: 1px solid #eef2f6;
  border-radius: 0;
  cursor: pointer;
  background: #fff;
  transition: background 0.12s;
  box-sizing: border-box;
}
.fb-filter-stop:last-child {
  border-bottom: none;
}
.fb-filter-stop:hover {
  background: #fafbfc;
}
.fb-filter-stop.is-on {
  background: #f0fdf4;
}
.fb-filter-stop input {
  width: 15px;
  height: 15px;
  accent-color: var(--shell-blue);
  cursor: pointer;
  margin: 0;
}
.fb-filter-stop__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fb-filter-stop__name {
  font-size: 0.74rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
}
.fb-filter-stop__meta {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 500;
}

/* ── Chuyến bay đã chọn (sidebar) ── */
.fb-sel-flights {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--shell-border);
  background: #fff;
}
.fb-sel-flights__title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--shell-border);
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}
.fb-sel-flights__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fb-sel-leg {
  border-bottom: 1px solid #eef2f6;
  padding-bottom: 12px;
}
.fb-sel-leg:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.fb-sel-leg__route-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.fb-sel-leg__num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #15733c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.fb-sel-leg__route {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
.fb-sel-leg__chev {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: #94a3b8;
  margin-top: 2px;
  display: block;
  overflow: visible;
}
.fb-sel-leg__chev path {
  fill: none;
  stroke: currentColor;
}
.fb-sel-leg__rules {
  display: inline-block;
  margin: 0 0 6px 30px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  color: #15733c;
  cursor: pointer;
  text-decoration: none;
}
.fb-sel-leg__rules:hover { text-decoration: underline; }
.fb-sel-leg__datetime {
  margin: 0 0 6px 30px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}
.fb-sel-leg__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px 30px;
}
.fb-sel-leg__meta {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.35;
}
.fb-sel-leg__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
}
.fb-sel-leg__logo-img,
.fb-sel-leg__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.fb-sel-leg__price-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: 30px;
  cursor: pointer;
}
.fb-sel-leg__price-block .fb-sel-leg__price-row {
  margin-bottom: 0;
}
.fb-sel-leg__price-block:not(.is-open) .fb-sel-leg__prices {
  display: none;
}
.fb-sel-leg__prices {
  margin: 6px 0 0 30px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
}
.fb-sel-leg__prices--plain {
  margin: 0 0 0 30px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.fb-sel-leg__price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
}
.fb-sel-leg__price-line + .fb-sel-leg__price-line {
  margin-top: 4px;
}
.fb-sel-leg__price-type {
  color: #64748b;
}
.fb-sel-leg__price-amt {
  font-weight: 700;
  color: #e55e2d;
  white-space: nowrap;
}
.fb-sel-leg__chev--open {
  transform: rotate(180deg);
}
.fb-sel-leg__price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e55e2d;
}
.fb-sel-flights__total {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--shell-border);
}
.fb-sel-flights__breakdown {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fb-sel-flights__breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.fb-sel-flights__breakdown-label {
  color: #64748b;
}
.fb-sel-flights__breakdown-amt {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}
.fb-sel-flights__total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.fb-sel-flights__total-label {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.fb-sel-flights__total-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e55e2d;
}
.fb-sel-flights__total-price.is-loading {
  color: #64748b;
  font-weight: 600;
  font-size: 0.92rem;
}
.fb-sel-flights__quote-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #64748b;
}
.fb-sel-flights__quote-hint.is-ok {
  color: #0f766e;
}
.fb-sel-flights__quote-hint.is-error {
  color: #b91c1c;
}
.fb-continue-btn.is-quoting {
  opacity: 0.72;
  pointer-events: none;
}

.fb-panel {
  background: var(--shell-surface);
  border: 1px solid var(--shell-border);
  border-radius: 4px;
  padding: 14px 16px;
}
.fb-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--shell-border);
}
.fb-panel__head h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.fb-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--shell-blue-dark);
  background: var(--shell-blue-hover);
  padding: 3px 10px;
  border-radius: 999px;
}
.fb-hint {
  margin: 0 0 10px;
  padding: 8px 10px;
  font-size: 0.74rem;
  color: var(--shell-muted);
  background: #f8fafc;
  border: 1px solid var(--shell-border);
  border-radius: 3px;
  line-height: 1.45;
}
.fb-hint strong { color: var(--shell-blue-dark); }
.fb-hint .missing { color: #d97706; }
.fb-hint__part {
  display: inline;
}
.fb-hint__part + .fb-hint__part::before {
  content: " · ";
}
.fb-hint__part--warn {
  color: #d97706;
}

/* ── Results hero - gradient (đồng bộ fbs-hero, không dùng ảnh nền) ── */
.fb-results {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--shell-border);
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.fb-results-hero {
  position: relative;
  padding: 18px 18px 0;
  background: linear-gradient(135deg, #0f5a2e 0%, #15733c 45%, #2a8f52 100%);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.fb-hero-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.fb-hero-cards--rt {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) {
  .fb-hero-cards--rt {
    grid-template-columns: 1fr;
  }
}
.fb-hero-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.fb-hero-card.is-active {
  background: #fff;
  border-color: #cbd5e1;
}
.fb-hero-card.is-idle {
  background: #eef1f4;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}
.fb-hero-card.is-idle:hover {
  background: #e8ecf1;
}
.fb-hero-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.fb-hero-card__route {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.fb-hero-card__leg {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 8px 3px 3px;
  white-space: nowrap;
  line-height: 1;
}
.fb-hero-card__leg-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
  flex-shrink: 0;
}
.fb-hero-card__leg-ico img,
.fb-hero-card__leg-ico svg,
.fb-hero-card__leg-svg {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.fb-hero-card__leg-svg--ret {
  transform: scaleX(-1);
}
.fb-hero-card__leg-txt {
  padding-right: 2px;
}
.fb-hero-card__leg--dep {
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(21, 115, 60, 0.06);
}
.fb-hero-card__leg--dep .fb-hero-card__leg-ico {
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 115, 60, 0.1);
}
.fb-hero-card__leg--dep .fb-hero-card__leg-svg {
  color: #15733c;
}
.fb-hero-card__leg--ret {
  color: #fff;
  background: linear-gradient(135deg, #0f5a2e 0%, #15733c 55%, #1d8a4a 100%);
  border: 1px solid #0d4a26;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(15, 90, 46, 0.22);
}
.fb-hero-card__leg--ret .fb-hero-card__leg-ico {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.fb-hero-card__leg--ret .fb-hero-card__leg-svg {
  color: #fff;
}
.fb-hero-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.fb-hero-card__meta {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}
.fb-hero-card__state {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0f172a;
}

.fb-datebar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  margin: 0 -18px;
  padding: 0;
  background: #0d4a26;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid #0a3d1f;
  color: #fff;
  overflow: hidden;
}
.fb-datebar__nav {
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  transition: color 0.12s, background 0.12s;
}
.fb-datebar__nav:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.fb-datebar__days {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: stretch;
  gap: 4px;
  padding: 8px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fb-datebar__days::-webkit-scrollbar {
  display: none;
}
.fb-datebar__day {
  flex: 0 0 auto;
  min-width: 102px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  padding: 10px 8px 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.fb-datebar__day:hover {
  background: rgba(255, 255, 255, 0.1);
}
.fb-datebar__day.is-active {
  background: #fff;
  color: #15733c;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), inset 0 -2px 0 var(--shell-accent, #f9d448);
  transform: none;
}
.fb-datebar__day-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.fb-datebar__day.is-active .fb-datebar__day-label {
  color: #475569;
}
.fb-datebar__day-price {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.fb-datebar__day.is-active .fb-datebar__day-price {
  color: #15733c;
}
.fb-datebar__day:not(.is-active) .fb-datebar__day-label {
  color: #f8fafc;
  font-weight: 700;
  opacity: 1;
  text-shadow: none;
}
.fb-datebar__day:not(.is-active) .fb-datebar__day-price {
  color: #fff;
  opacity: 1;
  font-weight: 700;
}
.fb-datebar__cal {
  display: none !important;
}

/* Desktop: giãn đều 7 ngày - tránh dồn trái, khoảng trống bên phải */
@media (min-width: 901px) {
  .fb-datebar__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 6px;
    overflow-x: visible;
    align-items: stretch;
  }
  .fb-datebar__day {
    flex: none;
    width: 100%;
    min-width: 0;
    padding: 12px 10px 14px;
  }
  .fb-datebar__day-label,
  .fb-datebar__day-price {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fb-datebar__day-price {
    font-size: 0.84rem;
  }
}

.fb-results__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 16px 0;
}
.fb-results__foot .fb-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--shell-muted);
  background: transparent;
  padding: 0;
  border-radius: 0;
}
#resultsList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px clamp(10px, 1.2vw, 16px) 14px;
  background: #f3f5f7;
}

@keyframes fb-vn-reveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#resultsList.is-revealing .fb-vn--enter {
  animation: fb-vn-reveal 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--fb-enter-i, 0) * 26ms);
}

@media (prefers-reduced-motion: reduce) {
  #resultsList.is-revealing .fb-vn--enter {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .fb-results {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    overflow: visible;
  }
  .fb-results-hero {
    padding: 10px 16px 0;
    border-radius: 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0f5a2e 0%, #15733c 45%, #2a8f52 100%);
  }
  .fb-hero-cards {
    gap: 8px;
    margin-bottom: 10px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .fb-hero-card {
    padding: 8px 10px;
    border-radius: 10px;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  }
  .fb-search__bubble {
    display: none !important;
  }
  .fb-results {
    box-shadow: none;
  }
  .fb-page,
  .fb-box,
  .fb-results,
  .fb-results-hero,
  .fb-hero-card,
  .fb-datebar,
  .fb-flight,
  .fb-vn {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none;
  }
  .fb-hero-card__top {
    gap: 5px;
    margin-bottom: 5px;
    align-items: center;
  }
  .fb-hero-card__route {
    font-size: 0.68rem;
    line-height: 1.22;
    letter-spacing: -0.01em;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
  }
  .fb-hero-card__leg {
    font-size: 0.54rem;
    gap: 3px;
    padding: 2px 6px 2px 2px;
    border-radius: 999px;
  }
  .fb-hero-card__leg-ico {
    width: 20px;
    height: 20px;
  }
  .fb-hero-card__leg-ico img,
  .fb-hero-card__leg-ico svg,
  .fb-hero-card__leg-svg {
    width: 14px;
    height: 14px;
  }
  .fb-hero-card__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 6px;
    padding-top: 6px;
  }
  .fb-hero-card__meta {
    font-size: 0.68rem;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fb-hero-card__state {
    font-size: 0.56rem;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fb-datebar {
    margin: 0 -16px;
    padding: 0;
    background: #0d4a26;
  }
  .fb-datebar__nav {
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    font-size: 1.1rem;
  }
  .fb-datebar__days {
    gap: 4px;
    padding: 6px 2px;
    overflow: hidden;
  }
  .fb-datebar__day {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 7px 4px 9px;
    border-radius: 6px;
    gap: 3px;
  }
  .fb-datebar__day-label {
    font-size: 0.72rem;
  }
  .fb-datebar__day-price {
    font-size: 0.74rem;
  }
  .fb-datebar__day:not(.is-active) .fb-datebar__day-price {
    color: #fff;
    opacity: 1;
  }
  .fb-datebar__day:not(.is-active) .fb-datebar__day-label {
    color: #f8fafc;
    opacity: 1;
  }
  .fb-datebar__day.is-active {
    transform: none;
  }
  .fb-rtoolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    overflow: visible;
  }
  .fb-rtoolbar__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .fb-rtoolbar__right {
    display: none;
  }
  #btnExportQuote {
    display: none;
  }
  .fb-rbtn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 10px;
    font-size: 0.72rem;
    text-align: center;
    border-radius: 6px;
  }
  .fb-rtoolbar .fb-sel--sm {
    display: none;
  }
  .fb-toolbar-pick {
    position: relative;
    width: 100%;
  }
  .fb-toolbar-pick > select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
  }
  .fb-toolbar-pick__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }
  .fb-toolbar-pick__label {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
  }
  .fb-toolbar-pick__val {
    flex-shrink: 0;
    max-width: 46%;
    font-size: 0.76rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
  }
  .fb-toolbar-pick__chev {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1;
  }
  .fb-toolbar-pick__sheet {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .fb-toolbar-pick__sheet[hidden] {
    display: none !important;
  }
  .fb-toolbar-pick__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
  }
  .fb-toolbar-pick__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(70vh, 420px);
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
    overflow: hidden;
  }
  .fb-toolbar-pick__title {
    margin: 0 0 10px;
    padding: 0 4px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #eef2f7;
  }
  .fb-toolbar-pick__opts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: calc(min(70vh, 420px) - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fb-toolbar-pick__opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    color: #334155;
    text-align: left;
    cursor: pointer;
  }
  .fb-toolbar-pick__opt.is-active {
    background: #e8f5ec;
    color: #15733c;
    font-weight: 700;
  }
  .fb-toolbar-pick__opt.is-active::after {
    content: "✓";
    font-size: 0.9rem;
    color: #15733c;
  }
  .fb-results .fb-hint {
    margin: 0 10px 8px;
    padding: 8px 10px;
    font-size: 0.66rem;
    border-radius: 8px;
  }
  .fb-hint__part {
    display: block;
  }
  .fb-hint__part + .fb-hint__part::before {
    content: none;
  }
  .fb-hint__part + .fb-hint__part {
    margin-top: 4px;
  }
  .fb-results__foot {
    padding: 6px 10px 0;
  }
  .fb-results__foot .fb-count {
    font-size: 0.66rem;
  }
  #resultsList {
    padding: 8px 6px 12px;
  }
}

@media (min-width: 901px) {
  .fb-toolbar-pick__btn,
  .fb-toolbar-pick__sheet {
    display: none !important;
  }
  .fb-toolbar-pick > select.fb-sel--sm {
    display: block;
    position: static;
    width: auto;
    min-width: 120px;
    height: 34px;
    opacity: 1;
    pointer-events: auto;
    clip: auto;
    overflow: visible;
  }
}

.fb-rtoolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--fb-border);
  background: #fff;
}
.fb-rtoolbar__left,
.fb-rtoolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .fb-rtoolbar__right {
    display: none !important;
  }
}
.fb-rbtn {
  border: 1px solid var(--fb-border);
  background: #fff;
  color: #334155;
  border-radius: 8px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.fb-rbtn:hover {
  border-color: var(--fb-border-strong);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.fb-rtoolbar .fb-sel--sm {
  border-radius: 8px;
  border-color: var(--fb-border);
  font-size: 0.74rem;
  padding: 7px 10px;
  min-height: 34px;
}

/* ── Flight card (professional) ── */
.fb-vn {
  --fb-vn-border: #e2e8f0;
  --fb-vn-border-soft: #edf1f5;
  border: 1px solid var(--fb-vn-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.fb-vn:first-child { border-top: 1px solid var(--fb-vn-border); }
.fb-vn:hover {
  background: #fff;
  border-color: #c5d4cc;
  box-shadow: 0 2px 8px rgba(21, 115, 60, 0.08);
}
.fb-vn.is-selected {
  background: #f3faf5;
  border-color: #15733c;
  box-shadow: 0 0 0 1px #15733c, 0 2px 10px rgba(21, 115, 60, 0.1);
}
.fb-vn.is-selected .fb-vn__head {
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.fb-vn.is-expanded {
  background: #fff;
  border-color: #b8d4c4;
}

.fb-results-continue {
  display: flex;
  justify-content: flex-end;
  padding: 8px clamp(8px, 1.2vw, 14px) 10px;
  border-top: 1px solid var(--fb-border);
  background: #fff;
}
.fb-results-continue[hidden] {
  display: none !important;
}
.fb-continue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 40px;
  padding: 0 22px;
  border: none;
  border-radius: 4px;
  background: var(--shell-blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.fb-continue-btn:hover { background: var(--shell-blue-dark); }

.fb-vn__head {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(220px, 2.2fr) 72px minmax(120px, 1fr) 28px;
  align-items: center;
  gap: 10px 16px;
  padding: 14px clamp(12px, 1.2vw, 18px);
  cursor: pointer;
}

/* Logo | mã chuyến (trên) + loại máy bay (dưới) */
.fb-vn__airline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fb-vn__flight-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex-shrink: 0;
}

.fb-vn__flightno {
  display: block;
  order: 1;
  font-weight: 500;
  color: #263238;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1.2;
  text-align: left;
}

.fb-vn__flightdate {
  display: block;
  order: 2;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  line-height: 1.2;
  text-align: left;
}

.fb-vn__aircraft {
  display: none;
}

.fb-vn__price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

/* Desktop - nội địa (không áp GDS card) */
@media (min-width: 901px) {
  .fb-vn:not(.fb-vn--gds) .fb-vn__head {
    gap: 10px 16px;
    padding: 14px clamp(12px, 1.2vw, 18px);
    grid-template-columns: minmax(140px, 1.2fr) minmax(220px, 2.2fr) 72px minmax(120px, 1fr) 28px;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__head > * {
    min-width: 0;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    grid-column: 4;
    grid-row: 1;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__airline {
    grid-column: 1;
    grid-row: 1;
    gap: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    overflow: visible;
  }

  .fb-layout.has-filters .fb-vn:not(.fb-vn--gds) .fb-vn__head {
    grid-template-columns: minmax(132px, 1.1fr) minmax(0, 2.4fr) 72px minmax(112px, 1fr) 28px;
  }

  .fb-layout.has-filters .fb-vn:not(.fb-vn--gds) .fb-vn__airline {
    width: auto;
    max-width: none;
    flex-shrink: 0;
  }

  .fb-layout.has-filters .fb-vn:not(.fb-vn--gds) .fb-vn__logo-box {
    width: 88px;
    height: 36px;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__route {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
    min-width: 0;
    max-width: max-content;
    justify-self: center;
    overflow: visible;
    justify-content: center;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__bag {
    grid-column: 3;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-self: stretch;
    align-self: center;
    margin-left: 0;
    width: 72px;
    max-width: 72px;
    min-width: 72px;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__bag-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    line-height: 0;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__bag-txt {
    flex: 0 0 auto;
    font-size: 0.86rem;
    text-align: right;
    white-space: nowrap;
    min-width: 4.5ch;
    width: 4.5ch;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: #64748b;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__price {
    font-size: 1.15rem;
    font-weight: 700;
    min-width: 0;
    width: 100%;
    text-align: right;
    transform: none;
    font-variant-numeric: tabular-nums;
    color: #e64a19;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__class-toggle {
    font-size: 0.92rem;
    gap: 2px;
    width: auto;
    min-width: 0;
    max-width: none;
    justify-content: flex-end;
    padding: 3px 2px;
    color: #37474f;
    box-sizing: border-box;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__class-meta {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: auto;
    min-width: 0;
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__class-meta--empty {
    display: inline-block;
    text-align: center;
    width: 3ch;
    min-width: 3ch;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__class-code {
    font-weight: 600;
    flex-shrink: 0;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__class-seats {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-width: 2ch;
    width: 2ch;
    text-align: left;
    display: inline-block;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__radio {
    grid-column: 5;
    grid-row: 1;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    justify-self: center;
  }

  .fb-vn.fb-vn--class-view:not(.fb-vn--gds) .fb-vn__head {
    grid-template-columns: minmax(118px, 1fr) minmax(200px, 1.55fr) 72px minmax(240px, 2.3fr) 0;
  }

  .fb-layout.has-filters .fb-vn.fb-vn--class-view:not(.fb-vn--gds) .fb-vn__head {
    grid-template-columns: minmax(110px, 0.95fr) minmax(180px, 1.4fr) 68px minmax(220px, 2.4fr) 0;
  }

  .fb-vn.fb-vn--class-view:not(.fb-vn--gds) .fb-vn__price-col {
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    gap: 6px;
  }

  .fb-vn.fb-vn--class-view:not(.fb-vn--gds) .fb-vn__route-side {
    flex-direction: column-reverse;
    gap: 4px;
  }

  .fb-vn.fb-vn--class-view:not(.fb-vn--gds) .fb-vn__time {
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
  }

  .fb-vn.fb-vn--class-view:not(.fb-vn--gds) .fb-vn__day {
    color: #c62828;
    font-size: 0.62rem;
    font-weight: 700;
    top: -3px;
  }

  .fb-vn.fb-vn--class-view:not(.fb-vn--gds) .fb-vn__flightno {
    font-weight: 700;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__logo-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 42px;
    padding: 4px 6px;
    margin: 0;
    border: 1px solid var(--fb-vn-border-soft, #edf1f5);
    border-radius: 8px;
    background: #f8fafb;
    box-sizing: border-box;
    line-height: 0;
    overflow: hidden;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__flight-meta {
    gap: 2px;
    line-height: 1.15;
    align-items: flex-start;
    width: auto;
    min-width: 0;
    flex-shrink: 0;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__ac-under {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__flightno {
    font-size: 0.96rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: left;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__route-side {
    gap: 6px;
    min-width: 0;
    flex-shrink: 0;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__tag {
    font-size: 0.96rem;
    padding: 5px 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #263238;
    background: #eceff1;
    border-radius: 999px;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__time {
    font-size: 0.99rem;
    font-weight: 500;
    color: #263238;
    letter-spacing: 0;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__mid {
    min-width: 72px;
    max-width: 88px;
    flex-shrink: 0;
    gap: 4px;
    padding: 0 2px;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__mid-aircraft {
    display: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: #78909c;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__mid-line {
    width: 64px;
    height: 8px;
    color: #90a4ae;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__dur {
    font-size: 0.76rem;
    font-weight: 600;
    color: #607d8b;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__bag-ico svg {
    width: 20px;
    height: 20px;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__chev {
    width: 15px;
    height: 15px;
    color: #15733c;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__fares {
    font-size: 0.86rem;
  }

  .fb-vn__fares th {
    font-size: 0.74rem;
  }

  .fb-vn__fares td.col-bag {
    font-size: 0.84rem;
  }

  .fb-vn__fares .price {
    font-size: 0.92rem;
  }
}

@media (min-width: 1400px) {
  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__head {
    grid-template-columns: minmax(156px, 1.25fr) minmax(0, 2.3fr) 72px minmax(128px, 1fr) 28px;
    gap: 12px 18px;
  }

  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__airline {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: auto;
    max-width: none;
  }

  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__logo-box {
    width: 116px;
    height: 44px;
  }

  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__flight-meta {
    align-items: flex-start;
    width: auto;
  }

  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__flightno {
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
  }

  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__route {
    gap: 8px;
  }

  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__tag {
    font-size: 1.04rem;
    padding: 5px 12px;
  }

  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__time {
    font-size: 1.01rem;
    font-weight: 500;
  }

  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__mid {
    min-width: 76px;
    max-width: 92px;
  }

  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__mid-line {
    width: 68px;
  }

  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__mid-aircraft {
    font-size: 0.82rem;
  }

  .fb-layout.has-results:not(.has-filters) .fb-vn:not(.fb-vn--gds) .fb-vn__dur {
    font-size: 0.8rem;
  }
}

.fb-vn:not(.fb-vn--gds) .fb-vn__route {
  gap: 6px;
  max-width: max-content;
}
.fb-vn:not(.fb-vn--gds) .fb-vn__mid {
  min-width: 72px;
  max-width: 88px;
  padding: 0 2px;
}
.fb-vn:not(.fb-vn--gds) .fb-vn__mid-line {
  width: 64px;
}

.fb-vn__route {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}

.fb-vn__route-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 0;
}

.fb-vn__route-side--dep,
.fb-vn__route-side--arr {
  align-self: stretch;
}

.fb-vn__time-wrap {
  position: relative;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.fb-vn__day {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 2px;
  font-size: 0.55rem;
  font-weight: 600;
  color: #90a4ae;
  line-height: 1;
  white-space: nowrap;
}

.fb-vn__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 126px;
  padding: 0 6px;
  flex-shrink: 0;
  gap: 6px;
}

.fb-vn__mid-aircraft {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #78909c;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.fb-vn__mid-aircraft--empty {
  visibility: hidden;
}

.fb-vn__mid-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 0;
  flex-shrink: 0;
}

.fb-vn__tag {
  display: inline-block;
  font-size: 0.96rem;
  font-weight: 500;
  color: #263238;
  background: #eceff1;
  border-radius: 999px;
  padding: 5px 11px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  flex-shrink: 0;
}

.fb-vn__time {
  font-size: 0.94rem;
  font-weight: 500;
  color: #263238;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: 0;
}

.fb-vn__mid-line {
  display: block;
  width: 131px;
  height: 9px;
  color: #90a4ae;
  flex-shrink: 0;
}

.fb-vn__dur {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #607d8b;
  white-space: nowrap;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
}

.fb-vn__bag {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.fb-vn__bag-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78909c;
  line-height: 0;
}
.fb-vn__fares tr.is-biz .fb-vn__bag-ico {
  color: #c9a227;
}
.fb-vn__fares tr.is-biz .fb-vn__bag-txt {
  color: #8a7018;
}
.fb-vn__bag-ico svg {
  width: 20px;
  height: 20px;
}
.fb-vn__bag-txt {
  font-size: 0.84rem;
  font-weight: 600;
  color: #37474f;
  white-space: nowrap;
  line-height: 1.2;
  text-align: right;
  min-width: 4.5ch;
  font-variant-numeric: tabular-nums;
}

.fb-vn__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e64a19;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.fb-vn__class-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 3px 2px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #37474f;
  cursor: pointer;
  white-space: nowrap;
}
.fb-vn__class-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-variant-numeric: tabular-nums;
}
.fb-vn__class-code::after {
  content: none;
}
.fb-vn__class-seats {
  display: inline-block;
  min-width: 2ch;
  width: 2ch;
  text-align: left;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.fb-vn__chev {
  width: 14px;
  height: 14px;
  color: #15733c;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.fb-vn.is-expanded .fb-vn__chev { transform: rotate(180deg); }

.fb-vn__radio {
  width: 16px;
  height: 16px;
  accent-color: #15733c;
  cursor: pointer;
  justify-self: center;
}

.fb-vn__ac-under {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.fb-vn:not(.fb-vn--gds) .fb-vn__mid-aircraft {
  display: none;
}

.fb-vn--class-view .fb-vn__radio {
  display: none;
}

.fb-vn__class-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px 10px;
  width: 100%;
  max-width: 100%;
}

.fb-vn__chip-unit {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}

.fb-vn__chip-unit.is-avail {
  cursor: pointer;
}

.fb-vn__chip-unit:hover,
.fb-vn__chip-unit:focus-visible {
  z-index: 6;
}

.fb-vn__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-sizing: border-box;
}

.fb-vn__chip-price {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  z-index: 7;
  transform: translateX(-50%);
  font-size: 0.64rem;
  font-weight: 700;
  color: #15733c;
  line-height: 1.15;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fb-vn__chip-unit.is-avail:hover .fb-vn__chip-price,
.fb-vn__chip-unit.is-avail:focus-visible .fb-vn__chip-price,
.fb-vn__chip-unit.is-empty:hover .fb-vn__chip-price {
  opacity: 1;
  visibility: visible;
}

.fb-vn__chip-unit.is-picked .fb-vn__chip-price,
.fb-vn__chip-unit.is-picked:hover .fb-vn__chip-price,
.fb-vn__chip-unit.is-picked:focus-visible .fb-vn__chip-price {
  display: none;
}

.fb-vn__chip-price--empty,
.fb-vn__chip-unit.is-empty .fb-vn__chip-price {
  color: #94a3b8;
  font-weight: 600;
}

.fb-vn--class-view .fb-vn__price--class-picked {
  width: 100%;
  color: #15733c;
  font-size: 1.08rem;
  font-weight: 800;
  text-align: right;
  line-height: 1.15;
}

.fb-vn__chip-unit.is-avail .fb-vn__chip {
  border: 1px solid #15733c;
  color: #15733c;
}

.fb-vn__chip-unit.is-avail:hover .fb-vn__chip {
  background: #15733c;
  color: #fff;
}

.fb-vn__chip-unit.is-picked .fb-vn__chip,
.fb-vn__chip-unit.is-picked:hover .fb-vn__chip {
  background: #15733c;
  color: #fff;
  border-color: #15733c;
}

.fb-vn__chip-unit.is-empty .fb-vn__chip {
  border: 1px solid #cfd4da;
  color: #334155;
  cursor: default;
}

#resultsList.fb-results--class-view {
  gap: 0;
}

#resultsList.fb-results--class-view .fb-vn:not(.fb-vn--gds) {
  position: relative;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid #e5e7eb;
}

#resultsList.fb-results--class-view .fb-vn:not(.fb-vn--gds):hover {
  z-index: 3;
  box-shadow: none;
  background: #fcfcfd;
  border-color: transparent;
  border-bottom-color: #e5e7eb;
}

#resultsList.fb-results--class-view .fb-vn:not(.fb-vn--gds).is-selected {
  background: #fff;
  box-shadow: none;
  border-color: transparent;
  border-bottom-color: #e5e7eb;
}

@media (max-width: 900px) {
  #resultsList {
    gap: 10px;
    padding: 8px 6px 12px;
    background: #f3f5f7;
  }

  .fb-vn {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  .fb-vn.is-selected {
    border-color: #15733c;
    box-shadow: 0 0 0 1px #15733c, 0 2px 8px rgba(21, 115, 60, 0.1);
    background: #f3faf5;
    margin-inline: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .fb-vn.is-selected .fb-vn__head {
    padding: 12px 10px;
    gap: 8px 10px;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
  }

  .fb-vn.is-selected .fb-vn__body {
    padding-left: 10px;
    padding-right: 10px;
  }

  .fb-vn.is-expanded {
    border-color: #b8d4c4;
  }

  /* 1 hàng ngang: logo+mã | hành trình | giá+hạng | radio */
  .fb-vn__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "airline route price radio";
    align-items: center;
    gap: 8px 10px;
    padding: 12px 10px;
    cursor: pointer;
  }

  .fb-vn.fb-vn--class-view .fb-vn__head {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "airline route"
      "chips chips";
    row-gap: 8px;
  }

  .fb-vn.fb-vn--class-view .fb-vn__price-col {
    grid-area: chips;
    align-items: stretch;
    width: 100%;
  }

  .fb-vn.fb-vn--class-view .fb-vn__class-chips {
    justify-content: flex-end;
  }

  .fb-vn.fb-vn--class-view .fb-vn__route-side {
    flex-direction: column-reverse;
  }

  .fb-vn__airline {
    grid-area: airline;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 52px;
    flex-shrink: 0;
    min-width: 0;
  }

  .fb-vn__logo-box {
    width: 48px;
    height: 22px;
    flex-shrink: 0;
    padding: 2px 3px;
    border: 1px solid #edf1f5;
    border-radius: 6px;
    background: #f8fafb;
    line-height: 0;
    overflow: hidden;
  }

  .fb-vn__logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .fb-vn__flight-meta {
    gap: 0;
    align-items: center;
    width: 100%;
    min-width: 0;
  }

  .fb-vn__flightno {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__route {
    grid-area: route;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    max-width: max-content;
    padding: 0;
    background: transparent;
    border: none;
  }

  .fb-vn__route-side {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex-shrink: 0;
    justify-content: center;
  }

  .fb-vn__route-side--dep,
  .fb-vn__route-side--arr {
    align-items: center;
    align-self: stretch;
  }

  .fb-vn__time-wrap {
    position: relative;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
  }

  .fb-vn__day {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 2px;
    font-size: 0.5rem;
  }

  .fb-vn__time {
    font-size: 0.76rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.05;
    letter-spacing: 0;
  }

  .fb-vn__tag {
    font-size: 0.76rem;
    font-weight: 500;
    color: #263238;
    background: #eceff1;
    padding: 3px 7px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    line-height: 1.2;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__mid {
    min-width: 68px;
    max-width: 80px;
    gap: 4px;
    padding: 0 2px;
  }

  .fb-vn:not(.fb-vn--gds) .fb-vn__mid-line {
    width: 56px;
    height: 8px;
    color: #64748b;
  }

  .fb-vn__mid-aircraft {
    display: none;
    font-size: 0.62rem;
    color: #475569;
    font-weight: 600;
  }

  .fb-vn__mid {
    min-width: 104px;
    gap: 5px;
    padding: 0 4px;
  }

  .fb-vn__mid-line {
    width: 99px;
    height: 8px;
    color: #64748b;
  }

  .fb-vn__dur {
    font-size: 0.62rem;
    font-weight: 600;
    color: #475569;
  }

  .fb-vn__bag {
    display: none;
  }

  .fb-vn__price-col {
    grid-area: price;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
  }

  .fb-vn__price {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: right;
    color: #e65100;
    white-space: nowrap;
  }

  .fb-vn__class-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e293b;
    min-height: 0;
    border-radius: 0;
  }

  .fb-vn__class-meta {
    display: inline-flex;
  }

  .fb-vn__chev {
    width: 10px;
    height: 10px;
  }

  .fb-vn__radio {
    grid-area: radio;
    width: 17px;
    height: 17px;
    margin: 0;
    flex-shrink: 0;
    justify-self: center;
  }

  .fb-vn__body {
    padding: 0 0 2px;
    overflow: visible;
    background: #fafbfc;
    border-top-color: #edf1f5;
  }

  .fb-fare-panel {
    padding: 0 10px 8px;
  }

  .fb-vn__fares {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 0.62rem;
    table-layout: auto;
    box-sizing: border-box;
  }
  .fb-vn__fares thead {
    display: none;
  }
  .fb-vn__fares tbody {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .fb-vn__fares tbody tr {
    border-bottom: none;
  }
  /*
   * Mobile 1 hàng (DOM order = visual order):
   * [Eco] 0K 134 [ĐK] …… 896.600 (○)
   */
  .fb-vn__fares tr {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 28px;
    padding: 5px 6px;
    border: 1px solid var(--fb-vn-border, var(--fb-border));
    border-radius: 5px;
    background: #fff;
  }
  .fb-vn__fares tr.is-picked {
    border-color: #15733c;
    background: #f0fdf4;
  }
  .fb-vn__fares tr.is-picked:has(.fb-fare-class--biz),
  .fb-vn__fares tr.is-picked.is-biz {
    border-color: #d4a84b;
    background: #fff8e1;
  }
  .fb-vn__fares td {
    display: block;
    border: none;
    padding: 0 !important;
    margin: 0;
    line-height: 1.1;
    width: auto !important;
    max-width: none;
    min-width: 0;
    background: transparent;
    text-align: left;
  }
  .fb-vn__fares .class-code {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 1.75rem;
    max-width: 1.75rem;
    overflow: hidden;
  }
  .fb-vn--vj .fb-vn__fares .class-code {
    min-width: 4.6rem;
    max-width: 5.5rem;
  }
  .fb-vn__fares .fb-fare-class {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1.5rem;
    min-width: 1.5rem;
    max-width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    font-size: 0.62rem;
    border-radius: 3px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--shell-blue, #15733c);
    border-color: var(--shell-blue, #15733c);
    color: #fff;
  }
  .fb-vn--vj .fb-vn__fares .fb-fare-class,
  .fb-vn__fares .fb-fare-class--vj {
    width: auto;
    min-width: 4.6rem;
    max-width: 100%;
    height: 20px;
    padding: 0 8px;
  }
  .fb-vn__fares .col-bag {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 2.6rem;
    max-width: 3.6rem;
    font-size: 0.55rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fb-vn__fares .fb-bag__full {
    display: none !important;
  }
  .fb-vn__fares .fb-bag__short {
    display: inline !important;
  }
  .fb-vn__fares .col-seats {
    flex: 0 0 1.6rem;
    width: 1.6rem !important;
    font-size: 0.5rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: right !important;
    margin-left: 6px;
  }
  .fb-vn__fares .col-seats::before {
    content: none;
  }
  .fb-vn__fares .col-rules {
    flex: 0 0 1.7rem;
    width: 1.7rem !important;
    margin-left: 18px;
    text-align: left !important;
  }
  .fb-vn__fares .col-rules .fb-fare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    height: 16px;
    padding: 0 2px;
    font-size: 0.45rem;
    font-weight: 600;
    border-radius: 2px;
    line-height: 1;
  }
  .fb-vn__fares .col-rules .fb-fare-btn__full {
    display: none;
  }
  .fb-vn__fares .col-rules .fb-fare-btn__short {
    display: inline;
  }
  .fb-vn__fares .price {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 700;
    color: #c45c26;
    white-space: nowrap;
    text-align: right !important;
    font-variant-numeric: tabular-nums;
  }
  .fb-vn__fares .col-pick {
    flex: 0 0 16px;
    width: 16px !important;
    text-align: center !important;
  }
  .fb-vn__fares .col-pick .fb-vn__radio {
    width: 14px;
    height: 14px;
    margin: 0;
    vertical-align: middle;
  }
}

.fb-vn__body {
  border-top: 1px solid #edf1f5;
  background: #fafbfc;
  padding: 0 0 4px;
}

/* ── Fare panel (Giá vé & Quyền lợi) ── */
.fb-fare-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 clamp(12px, 1.2vw, 18px) 10px;
}
.fb-fare-panel__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 2px;
  padding: 11px 0 12px;
  border-bottom: 1px solid #e6eaee;
  color: #0f5a2e;
  font-size: 0.86rem;
  font-weight: 600;
}
.fb-fare-panel__head svg {
  flex-shrink: 0;
  color: #15733c;
}
.fb-fare-panel__tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #e6eaee;
  margin: 0 0 2px;
  padding: 0;
}
.fb-fare-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 11px 2px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: -1px;
}
.fb-fare-tab svg { flex-shrink: 0; opacity: 0.75; }
.fb-fare-tab:hover { color: #0f5a2e; }
.fb-fare-tab.is-active {
  color: #0f5a2e;
  border-bottom-color: #15733c;
}
.fb-fare-tab.is-active svg { opacity: 1; color: #15733c; }

.fb-fare-panel__list {
  display: flex;
  flex-direction: column;
}
.fb-fare-opt {
  border-bottom: 1px dashed #d7dde5;
  background: transparent;
}
.fb-fare-opt:last-child { border-bottom: none; }
.fb-fare-opt.is-picked {
  background: #eef8f1;
  border-radius: 8px;
}
.fb-fare-opt__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 28px;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 8px;
  cursor: pointer;
}
.fb-fare-opt__pick {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}
.fb-fare-opt__main { min-width: 0; }
.fb-fare-opt__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f5a2e;
  line-height: 1.35;
  margin-bottom: 5px;
}
.fb-fare-opt__codes {
  font-weight: 700;
  color: #15733c;
  font-size: 0.9em;
}
/* Thương gia / SkyBoss: tên hạng màu vàng */
.fb-fare-opt.is-biz .fb-fare-opt__title,
.fb-fare-opt.is-biz .fb-fare-opt__codes {
  color: #c9a227;
}
/* Thương gia: mọi icon (chỗ / HL / hoàn / đổi) + số chỗ đều vàng */
.fb-fare-opt.is-biz .fb-fare-perk__ico,
.fb-fare-opt.is-biz .fb-fare-perk.is-ok .fb-fare-perk__ico,
.fb-fare-opt.is-biz .fb-fare-perk--seats strong {
  color: #c9a227 !important;
}
.fb-fare-opt.is-biz .fb-fare-perk.is-ok {
  color: #8a7018;
}
.fb-fare-opt__perks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.fb-fare-opt__perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
}
.fb-fare-opt__perks-row--rules {
  flex-wrap: nowrap;
  gap: 4px 14px;
}
.fb-fare-perk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.3;
  max-width: 100%;
  white-space: nowrap;
}
.fb-fare-perk span { min-width: 0; }
.fb-fare-perk__ico {
  flex-shrink: 0;
  color: #94a3b8;
}
.fb-fare-perk.is-ok .fb-fare-perk__ico {
  color: #15733c;
}
.fb-fare-perk--bag.is-ok .fb-fare-perk__ico {
  color: #15733c;
}
.fb-fare-perk--seats {
  color: #64748b;
  font-weight: 400;
}
.fb-fare-perk--seats strong {
  color: #15733c;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fb-fare-opt__price {
  min-width: 248px;
  text-align: right;
}
.fb-fare-opt__price-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 0 14px;
  align-items: end;
  justify-content: end;
  font-variant-numeric: tabular-nums;
}
.fb-fare-opt__col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}
.fb-fare-opt__lbl {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1;
}
.fb-fare-opt__net,
.fb-fare-opt__tax {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.2;
}
.fb-fare-opt__col--total {
  padding-left: 12px;
  border-left: 1px solid #e2e8f0;
}
.fb-fare-opt__total {
  font-size: 0.98rem;
  font-weight: 800;
  color: #dc2626;
  line-height: 1.2;
}

.fb-fare-opt__rules,
.fb-fare-opt .fb-fare-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 11px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.fb-fare-opt__rules:hover,
.fb-fare-opt .fb-fare-btn:hover {
  border-color: #15733c;
  color: #0f5a2e;
  background: #f3faf5;
}
.fb-fare-opt .fb-fare-btn__short { display: none; }

.fb-fare-panel__detail {
  padding: 10px 4px 4px;
}
.fb-fare-panel__detail .fb-vn__detail-row {
  padding: 6px 0;
  border-bottom: 1px dashed #e6eaee;
  font-size: 0.84rem;
  color: #334155;
}
.fb-fare-panel__detail .fb-vn__detail-row:last-child { border-bottom: none; }

.fb-fr-cond h4 {
  margin: 0 0 2px;
  font-size: 0.88rem;
  line-height: 1.25;
  color: #0f172a;
}
.fb-fr-cond__rbds {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.2;
}
.fb-fr-cond > p {
  margin: 0 0 6px;
  font-size: 0.78rem;
  line-height: 1.25;
  color: #475569;
}
.fb-fr-cond__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 8px;
}
.fb-fr-cond__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 5px 0;
  border-bottom: 1px solid #eef2f6;
  min-height: 0;
  line-height: 1.3;
}
.fb-fr-cond__row dt,
.fb-fr-cond__label {
  margin: 0 !important;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.3;
}
.fb-fr-cond__row dd,
.fb-fr-cond__value {
  margin: 0 !important;
  padding: 0;
  flex: 0 1 auto;
  max-width: 55%;
  text-align: right;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}
.fb-fr-cond__row dd strong,
.fb-fr-cond__value strong {
  font-weight: 700;
}
.fb-fr-cond__detail {
  display: none;
}
.fb-fr-body .fb-fr-cond {
  line-height: 1.2;
}
.fb-fr-cond__notes {
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.74rem;
  line-height: 1.35;
}
.fb-fr-cond__notes li + li { margin-top: 1px; }

@media (max-width: 900px) {
  .fb-fare-panel {
    padding-left: 10px;
    padding-right: 10px;
  }
  .fb-fare-panel__tabs {
    gap: 12px;
    overflow-x: auto;
  }
  .fb-fare-tab {
    font-size: 0.8rem;
    padding: 9px 2px 10px;
    white-space: nowrap;
  }
  .fb-fare-panel__list {
    gap: 8px;
  }
  .fb-fare-opt {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    overflow: hidden;
  }
  .fb-fare-opt:last-child {
    border-bottom: 1px solid #e2e8f0;
  }
  .fb-fare-opt.is-picked {
    border-color: #a7d4b5;
    background: #eef8f1;
    border-radius: 10px;
  }
  .fb-fare-opt__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 22px;
    grid-template-areas:
      "main rules pick"
      "price price price";
    gap: 0;
    column-gap: 8px;
    padding: 12px 10px 10px;
    align-items: start;
  }
  .fb-fare-opt__pick {
    grid-area: pick;
    align-self: start;
    padding-top: 3px;
  }
  .fb-fare-opt__main {
    grid-area: main;
    min-width: 0;
    padding-bottom: 10px;
  }
  .fb-fare-opt__title {
    font-size: 0.86rem;
    margin-bottom: 8px;
    line-height: 1.3;
  }
  .fb-fare-opt__codes {
    display: inline;
    white-space: nowrap;
  }
  .fb-fare-opt__perks {
    gap: 6px;
  }
  .fb-fare-opt__perks-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 5px;
  }
  .fb-fare-opt__perks-row--rules {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .fb-fare-perk {
    font-size: 0.74rem;
    white-space: normal;
    max-width: 100%;
    align-items: flex-start;
  }
  .fb-fare-perk__ico {
    margin-top: 1px;
  }
  .fb-fare-opt__rules {
    grid-area: rules;
    height: 28px;
    min-width: 40px;
    padding: 0 8px;
    align-self: start;
    margin-top: 0;
  }
  .fb-fare-opt .fb-fare-btn__full { display: none; }
  .fb-fare-opt .fb-fare-btn__short { display: inline; }
  .fb-fare-opt__price {
    grid-area: price;
    min-width: 0;
    width: 100%;
    text-align: left;
    padding: 10px 0 0;
    margin: 0;
    border-top: 1px solid #e8edf2;
  }
  .fb-fare-opt__price-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
    width: 100%;
    gap: 0 8px;
    justify-content: stretch;
    align-items: end;
  }
  .fb-fare-opt__col {
    align-items: flex-start;
  }
  .fb-fare-opt__col--total {
    align-items: flex-end;
    padding-left: 10px;
    border-left: 1px solid #e2e8f0;
  }
  .fb-fare-opt__lbl {
    font-size: 0.6rem;
  }
  .fb-fare-opt__net,
  .fb-fare-opt__tax {
    font-size: 0.78rem;
  }
  .fb-fare-opt__total {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  .fb-fare-opt__row {
    padding: 11px 8px 9px;
    column-gap: 6px;
  }
  .fb-fare-opt__price-grid {
    gap: 0 6px;
  }
  .fb-fare-opt__net,
  .fb-fare-opt__tax {
    font-size: 0.74rem;
  }
  .fb-fare-opt__total {
    font-size: 0.9rem;
  }
  .fb-fare-opt__col--total {
    padding-left: 8px;
  }
}

.fb-vn__fares {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  table-layout: fixed;
}
.fb-vn__fares th,
.fb-vn__fares td {
  padding: 9px 8px;
  border-bottom: none;
  text-align: left;
  vertical-align: middle;
}
.fb-vn__fares thead tr {
  border-bottom: 1px solid var(--fb-vn-border, var(--fb-border));
}
.fb-vn__fares tbody tr {
  border-bottom: 1px solid var(--fb-vn-border-soft, var(--fb-border-soft));
}
.fb-vn__fares tbody tr:last-child {
  border-bottom: none;
}
.fb-vn__fares th {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: transparent !important;
}
.fb-vn__fares .col-class,
.fb-vn__fares th.col-class { width: 12%; text-align: center; white-space: nowrap; }
.fb-vn--vj .fb-vn__fares .col-class,
.fb-vn--vj .fb-vn__fares th.col-class { width: 16%; text-align: left; }
.fb-vn__fares .col-bag,
.fb-vn__fares th.col-bag { width: 16%; text-align: center; }
.fb-vn__fares .col-seats,
.fb-vn__fares th.col-seats { width: 12%; text-align: center; }
.fb-vn__fares .col-rules,
.fb-vn__fares th.col-rules { width: 22%; text-align: center; }
.fb-vn__fares .col-price,
.fb-vn__fares th.col-price { width: 26%; text-align: center; }
.fb-vn__fares .col-pick,
.fb-vn__fares th.col-pick { width: 12%; text-align: center; }
.fb-vn__fares td.col-bag {
  color: #64748b;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.fb-vn__fares td.col-seats {
  font-weight: 700;
  color: #475569;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.fb-vn__fares td.col-rules,
.fb-vn__fares td.col-pick {
  text-align: center;
}
.fb-vn__fares .price,
.fb-vn__fares td.price,
.fb-vn__fares td.col-price {
  font-weight: 700;
  color: #c45c26;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  width: 26%;
}
.fb-vn__fares .class-code,
.fb-vn__fares td.class-code {
  width: 12%;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
}
.fb-vn--vj .fb-vn__fares .class-code,
.fb-vn--vj .fb-vn__fares td.class-code {
  width: 16%;
  text-align: left;
}
.fb-fare-class {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.75rem;
  min-width: 1.75rem;
  max-width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border-radius: 5px;
  background: var(--shell-blue, #15733c);
  border: 1px solid var(--shell-blue, #15733c);
  color: #fff;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* VJ: Eco / Deluxe / SkyBoss — rộng đều, cùng nền xanh chữ trắng */
.fb-vn--vj .fb-fare-class,
.fb-fare-class--vj {
  width: auto;
  min-width: 5.75rem;
  max-width: 100%;
  height: 26px;
  padding: 0 12px;
  letter-spacing: 0.02em;
}
/* Thương gia (J/C/D/I, SkyBoss…): nền vàng đậm chữ trắng */
.fb-fare-class--biz {
  background: #c9a227 !important;
  border-color: #b8921f !important;
  color: #fff !important;
}
.fb-vn__fares tr.is-picked .fb-fare-class--biz {
  background: #b8921f !important;
  border-color: #a07f18 !important;
  color: #fff !important;
}
/* Mặc định: chỉ hiện bản đầy đủ; mobile đổi sang short. */
.fb-vn__fares .fb-bag__full { display: inline; }
.fb-vn__fares .fb-bag__short { display: none; }
@media (min-width: 901px) {
  .fb-vn__fares {
    display: table;
    table-layout: fixed;
  }
  .fb-vn__fares thead {
    display: table-header-group;
  }
  .fb-vn__fares tbody {
    display: table-row-group;
  }
  .fb-vn__fares tr {
    display: table-row;
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: 0;
    gap: 0;
    width: auto;
    overflow: visible;
  }
  .fb-vn__fares td {
    display: table-cell;
    min-height: 0;
    min-width: 0;
    padding: 9px 6px;
  }
  .fb-vn__fares .class-code,
  .fb-vn__fares .col-bag,
  .fb-vn__fares .col-seats,
  .fb-vn__fares .col-rules,
  .fb-vn__fares .col-price,
  .fb-vn__fares .price,
  .fb-vn__fares .col-pick {
    order: initial;
    flex: none;
    margin-left: 0;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    align-self: auto;
  }
  .fb-vn__fares .col-class,
  .fb-vn__fares th.col-class,
  .fb-vn__fares td.class-code {
    width: 12%;
    max-width: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
  }
  .fb-vn--vj .fb-vn__fares .col-class,
  .fb-vn--vj .fb-vn__fares th.col-class,
  .fb-vn--vj .fb-vn__fares td.class-code {
    width: 16%;
    text-align: left;
  }
  .fb-vn__fares .col-bag,
  .fb-vn__fares th.col-bag,
  .fb-vn__fares td.col-bag {
    width: 16%;
    max-width: none;
    text-align: center;
  }
  .fb-vn__fares .col-seats,
  .fb-vn__fares th.col-seats,
  .fb-vn__fares td.col-seats {
    width: 12%;
    max-width: none;
    text-align: center;
  }
  .fb-vn__fares .col-rules,
  .fb-vn__fares th.col-rules,
  .fb-vn__fares td.col-rules {
    width: 22%;
    max-width: none;
    text-align: center;
  }
  .fb-vn__fares .col-price,
  .fb-vn__fares th.col-price,
  .fb-vn__fares td.price,
  .fb-vn__fares td.col-price {
    width: 26%;
    max-width: none;
    text-align: center;
    padding-right: 6px;
  }
  .fb-vn__fares .col-pick,
  .fb-vn__fares th.col-pick,
  .fb-vn__fares td.col-pick {
    width: 12%;
    max-width: none;
    text-align: center;
  }
  .fb-vn__fares .col-seats::before {
    content: none;
  }
  .fb-vn__fares .col-rules .fb-fare-btn__full {
    display: inline;
  }
  .fb-vn__fares .col-rules .fb-fare-btn__short {
    display: none;
  }
  .fb-vn__fares .fb-fare-class {
    display: inline-flex;
    width: 1.75rem;
    min-width: 1.75rem;
    max-width: 1.75rem;
    box-sizing: border-box;
    height: 1.75rem;
    padding: 0;
    font-size: 0.72rem;
    justify-content: center;
    background: var(--shell-blue, #15733c);
    border-color: var(--shell-blue, #15733c);
    color: #fff;
  }
  .fb-vn--vj .fb-vn__fares .fb-fare-class,
  .fb-vn__fares .fb-fare-class--vj {
    width: auto;
    min-width: 5.75rem;
    max-width: 100%;
    height: 26px;
    padding: 0 12px;
  }
  .fb-vn__fares .fb-bag__full {
    display: inline !important;
  }
  .fb-vn__fares .fb-bag__short {
    display: none !important;
  }
}
.fb-vn__fares tr.is-picked .fb-fare-class {
  background: #0f5a2e;
  border-color: #0f5a2e;
  color: #fff;
}
.fb-vn__fares tr:hover { background: #f7fdf9; }
.fb-vn__fares tr.is-picked { background: #f0fdf4; }
.fb-vn__fares tr:hover:has(.fb-fare-class--biz),
.fb-vn__fares tr:hover.is-biz {
  background: #fffbeb;
}
.fb-vn__fares tr.is-picked:has(.fb-fare-class--biz),
.fb-vn__fares tr.is-picked.is-biz {
  background: #fff8e1;
  border-color: #d4a84b;
}
.fb-fare-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fb-border);
  background: #fff;
  color: #475569;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.fb-fare-btn__short { display: none; }
.fb-fare-btn:hover {
  border-color: #c5e6d0;
  background: var(--shell-blue-hover, #ecfdf5);
  color: var(--shell-blue-dark, #15733c);
}
.fb-vn__detail {
  padding: 12px 4px;
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.5;
}
.fb-vn__detail-row { margin-bottom: 6px; }

.fb-vn--gds .fb-vn__fares tr.is-picked {
  background: #f0fdf4;
}
.fb-vn--gds .fb-vn__fares tr.is-picked:has(.fb-fare-class--biz),
.fb-vn--gds .fb-vn__fares tr.is-picked.is-biz {
  background: #fff8e1;
}
.fb-vn--gds .fb-fare-class {
  background: var(--shell-blue, #15733c);
  border-color: var(--shell-blue, #15733c);
  color: #fff;
  width: 1.75rem;
  min-width: 1.75rem;
  max-width: 1.75rem;
  height: 1.75rem;
  padding: 0;
}
.fb-vn--gds .fb-vn__fares tr.is-picked .fb-fare-class {
  background: #0f5a2e;
  border-color: #0f5a2e;
  color: #fff;
}
.fb-vn--gds .fb-fare-btn:hover {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
}

/* ── GDS quốc tế - card compact ── */
.fb-vn--gds {
  border: 1px solid #e2e8f0;
  margin: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.fb-vn--gds + .fb-vn--gds { margin-top: 0; }
.fb-vn--gds:hover {
  background: #fff;
  border-color: #c5d4cc;
  box-shadow: 0 2px 8px rgba(21, 115, 60, 0.08);
}
.fb-vn--gds.is-selected {
  background: #f3faf5;
  border-color: #15733c;
  box-shadow: 0 0 0 1px #15733c, 0 2px 10px rgba(21, 115, 60, 0.1);
}
.fb-vn--gds.is-expanded {
  background: #fff;
  border-color: #b8d4c4;
}
.fb-vn--gds .fb-vn__head.fb-gds-card {
  display: block;
  padding: 0;
  cursor: pointer;
  position: relative;
  box-shadow: none;
  border-radius: 0;
}
.fb-vn--gds.is-selected .fb-vn__head { box-shadow: none; border-radius: 0; }

.fb-gds-card__inner {
  display: grid;
  /* Hãng | Hành trình | Hành lý | Giá+hạng | radio */
  grid-template-columns:
    minmax(84px, 14fr)
    minmax(0, 44fr)
    minmax(92px, 13fr)
    minmax(132px, 24fr)
    22px;
  align-items: center;
  gap: 0 6px;
  padding: 10px 14px;
  min-width: 0;
  overflow: hidden;
}

/* Brand - logo trên, tên hãng dưới (1 cột) */
.fb-gds-card__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  padding: 0 10px 0 0;
  border-right: 1px solid #eef2f6;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}
/* Logo - viền đen nhạt mỏng */
.fb-gds-card__logo {
  flex-shrink: 0;
  width: 68px;
  height: 34px;
  max-width: 68px;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0;
  padding: 2px 3px;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 3px;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box;
}
.fb-gds-card__airline {
  flex: 0 0 auto;
  width: 100%;
  font-size: 0.62rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  word-break: break-word;
}
.fb-gds-card__flightno {
  display: none;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

/* Legs */
.fb-gds-card__legs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.fb-gds-leg {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2px 0;
  min-width: 0;
}
.fb-gds-leg + .fb-gds-leg {
  border-top: 1px solid #eef2f6;
  padding-top: 8px;
  margin-top: 0;
}

/* Khứ hồi - chiều đi / chiều về xếp dọc; nhãn căn giữa theo hàng điểm đi */
.fb-gds-leg--labeled {
  --gds-label-pad-top: 1.2rem;
  --gds-ep-h: 1.45rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
}
.fb-gds-leg--labeled .fb-gds-leg__tag {
  margin: var(--gds-label-pad-top) 0 0;
  flex-shrink: 0;
  min-height: var(--gds-ep-h, 1.45rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  font-size: 0.58rem;
  line-height: 1.1;
}
.fb-gds-leg--labeled .fb-gds-leg__grid {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: var(--gds-label-pad-top);
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 118px) minmax(0, 1fr);
  column-gap: 6px;
}
.fb-gds-leg--labeled .fb-gds-leg__ep {
  align-self: start;
  height: var(--gds-ep-h, 1.45rem);
}
.fb-gds-leg--labeled .fb-gds-leg__path {
  align-self: start;
}
.fb-gds-card__legs--combo .fb-gds-leg__dur {
  font-size: 0.52rem;
  padding: 0 3px;
  line-height: 1.15;
}
.fb-gds-leg__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #475569;
  background: #f1f5f9;
}
.fb-gds-leg__tag--out,
.fb-gds-leg__tag--ret {
  color: #fff;
  background: linear-gradient(135deg, #0f5a2e 0%, #15733c 55%, #1d8a4a 100%);
  font-weight: 500;
  border: 1px solid #0d4a26;
}
.fb-gds-leg__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 158px) minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  width: min(100%, 460px);
  max-width: 100%;
  margin: 0 auto;
  padding-top: 1.25rem;
  --gds-ep-h: 1.45rem;
}
.fb-gds-leg__ep {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  min-width: 0;
  align-self: center;
  position: relative;
  z-index: 1;
}
.fb-gds-leg__ep--dep {
  justify-content: flex-start;
  text-align: left;
  justify-self: stretch;
}
.fb-gds-leg__ep--dep .fb-gds-leg__ap { order: 1; }
.fb-gds-leg__ep--dep .fb-gds-leg__time { order: 2; }
.fb-gds-leg__ep--arr {
  justify-content: flex-end;
  text-align: right;
  justify-self: stretch;
  overflow: visible;
}
.fb-gds-leg__ep--arr .fb-gds-leg__ap { order: 1; }
.fb-gds-leg__ep--arr .fb-gds-leg__time { order: 2; }
.fb-gds-leg__time {
  display: inline-block;
  position: relative;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.fb-gds-leg__ep--arr .fb-gds-leg__time {
  position: relative;
}
.fb-gds-leg__day {
  position: absolute;
  top: -0.92em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 800;
  color: #ea580c;
  line-height: 1;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  pointer-events: none;
}
.fb-gds-leg__ap {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: auto;
  flex-shrink: 0;
}
.fb-gds-leg__ep--dep .fb-gds-leg__ap {
  align-items: flex-start;
}
.fb-gds-leg__ep--arr .fb-gds-leg__ap {
  align-items: flex-end;
}
.fb-gds-leg__ap strong {
  display: inline-block;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--shell-blue, #15733c);
  letter-spacing: 0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fb-gds-leg__ap em {
  display: none;
}

.fb-gds-leg__path {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: var(--gds-ep-h);
  justify-self: center;
  align-self: center;
  overflow: visible;
}
.fb-gds-leg__path:has(.fb-gds-leg__dots) {
  /* Giữ line cùng cao với điểm đi/đến; hub transit overflow bên dưới, không kéo line lệch. */
  min-height: var(--gds-ep-h);
  padding-bottom: 0;
  align-items: flex-start;
  overflow: visible;
}
.fb-gds-leg__path:has(.fb-gds-leg__dots) .fb-gds-leg__line {
  /* Chừa chỗ hub label bên dưới mà không đổi vị trí line */
  margin-bottom: 0.95rem;
}
.fb-gds-leg__dur {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--shell-blue, #15733c);
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.25;
  white-space: nowrap;
  z-index: 2;
}
/* Timeline chung - 1 điểm / nhiều điểm dừng dùng cùng biến */
.fb-gds-leg__line {
  --gds-track-h: calc(var(--gds-ep-h) * 0.45);
  --gds-line-y: 50%;
  --gds-line-w: 1.75;
  --gds-line-end: 7px;
  --gds-dot: 6px;
  --gds-dot-ring: 1.5px;
  --gds-green: var(--shell-blue, #15733c);
  position: relative;
  width: 100%;
  max-width: none;
  height: var(--gds-ep-h);
  margin: 0 auto;
  isolation: isolate;
  flex-shrink: 0;
  align-self: center;
}
.fb-gds-leg__bar {
  position: absolute;
  left: 0;
  right: var(--gds-line-end);
  top: var(--gds-line-y);
  transform: translateY(-50%);
  display: block;
  height: var(--gds-track-h);
  overflow: visible;
  z-index: 0;
  pointer-events: none;
}
.fb-gds-leg__bar line {
  stroke-width: var(--gds-line-w, 1.75);
  vector-effect: non-scaling-stroke;
  shape-rendering: crispEdges;
}
.fb-gds-leg__dots {
  position: absolute;
  left: 0;
  right: var(--gds-line-end);
  top: var(--gds-line-y);
  transform: translateY(-50%);
  height: auto;
  min-height: var(--gds-track-h);
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}
.fb-gds-leg__stop {
  position: absolute;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transform: translate(-50%, calc(var(--gds-dot) / -2));
  pointer-events: auto;
  z-index: 2;
}
.fb-gds-leg__dot {
  width: var(--gds-dot);
  height: var(--gds-dot);
  border-radius: 50%;
  background: #fff;
  border: var(--gds-dot-ring) solid var(--gds-green);
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.fb-gds-leg__hub {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gds-green);
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
  background: #fff;
  padding: 0 1px;
}
.fb-gds-leg__plane {
  position: absolute;
  right: 0;
  top: var(--gds-line-y);
  transform: translateY(-50%) rotate(90deg);
  color: var(--gds-green);
  flex-shrink: 0;
  z-index: 3;
}
.fb-gds-leg__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}
.fb-gds-leg__fn {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  font-variant-numeric: tabular-nums;
}
.fb-gds-leg__stops {
  display: none;
  font-size: 0.66rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-gds-leg__stops--direct { color: #15803d; }

.fb-gds-card__bag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0 6px;
  border-left: 1px solid #eef2f6;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
}
.fb-gds-card__bag .fb-vn__bag {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.fb-gds-card__bag .fb-vn__bag-ico svg {
  width: 18px;
  height: 18px;
}
.fb-gds-card__bag .fb-vn__bag-txt {
  font-size: 0.72rem;
  font-weight: 600;
  color: #37474f;
  white-space: nowrap;
  text-align: left;
  line-height: 1.2;
}

/* Aside - giá & chọn */
.fb-gds-card__aside {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 0 0 6px;
  border-left: 1px solid #eef2f6;
  box-sizing: border-box;
}
.fb-gds-card__price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 0;
  min-width: 0;
  padding: 0 10px 0 18px;
}
.fb-gds-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ea580c;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
}
.fb-gds-card__currency {
  font-size: 0.56rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
}
.fb-gds-card__fare-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.fb-gds-card__fare-btn:hover {
  border-color: #0d9488;
  background: #f0fdfa;
}
.fb-gds-card__class {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  min-width: 1rem;
  text-align: center;
}
.fb-gds-card__seats {
  font-size: 0.68rem;
  font-weight: 600;
  color: #475569;
}
.fb-gds-card__chev {
  color: #94a3b8;
  transition: transform 0.15s ease;
}
.fb-vn--gds.is-expanded .fb-gds-card__chev { transform: rotate(180deg); }
.fb-gds-card__radio {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #0d9488;
}

/* Desktop - scale card GDS, tránh chồng chéo (mọi màn hình ≥901px) */
@media (min-width: 901px) {
  .fb-gds-card__inner {
    grid-template-columns:
      minmax(80px, 13fr)
      minmax(0, 44fr)
      minmax(88px, 13fr)
      minmax(136px, 24fr)
      22px;
    padding: 8px 10px;
  }
  .fb-layout.has-filters .fb-gds-card__inner {
    grid-template-columns:
      minmax(76px, 12fr)
      minmax(0, 44fr)
      minmax(84px, 12fr)
      minmax(140px, 26fr)
      22px;
    padding: 8px 8px;
  }
  .fb-gds-card__flightno { display: none; }
  .fb-gds-card__airline { display: -webkit-box; }
  .fb-gds-card__brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding-right: 6px;
    overflow: hidden;
    text-align: center;
  }
  .fb-gds-card__logo {
    width: 76px;
    height: 38px;
    max-width: 76px;
    padding: 2px 4px;
    object-position: center center;
  }
  .fb-gds-card__airline {
    font-size: 0.6rem;
    line-height: 1.15;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    flex: 0 0 auto;
  }
  .fb-gds-card__legs {
    padding: 0 8px;
    overflow: visible;
    align-items: stretch;
  }
  .fb-gds-leg--labeled {
    --gds-label-pad-top: 1.15rem;
    --gds-ep-h: clamp(0.95rem, 1.8vw, 1.28rem);
  }
  .fb-gds-leg--labeled .fb-gds-leg__grid {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: var(--gds-label-pad-top);
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(64px, 108px) minmax(0, 1fr);
    column-gap: 6px;
  }
  .fb-gds-leg--labeled .fb-gds-leg__time {
    font-size: 0.78rem;
  }
  .fb-gds-leg--labeled .fb-gds-leg__ap strong {
    font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  }
  .fb-gds-leg__grid {
    width: min(100%, 440px);
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(92px, 132px) minmax(0, 1fr);
    column-gap: 8px;
    margin: 0 auto;
    align-items: center;
    padding-top: 1.2rem;
    --gds-ep-h: clamp(0.95rem, 1.8vw, 1.28rem);
  }
  .fb-gds-leg__ep {
    align-items: center;
  }
  .fb-gds-leg__path {
    height: auto;
    min-height: var(--gds-ep-h);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }
  .fb-gds-leg__path:has(.fb-gds-leg__dots) {
    min-height: var(--gds-ep-h);
    align-items: flex-start;
    padding-bottom: 0;
  }
  .fb-gds-leg__path:has(.fb-gds-leg__dots) .fb-gds-leg__line {
    margin-bottom: 0.9rem;
  }
  .fb-gds-leg__dur {
    font-size: 0.58rem;
    padding: 2px 6px;
    bottom: calc(100% + 4px);
  }
  .fb-gds-card__legs--combo .fb-gds-leg__dur {
    padding: 0 3px;
    font-size: 0.52rem;
    line-height: 1.15;
    border-width: 1px;
  }
  .fb-gds-leg__time { font-size: 0.84rem; line-height: 1; }
  .fb-gds-leg__ap strong {
    font-size: clamp(0.95rem, 1.8vw, 1.28rem);
  }
  .fb-gds-leg__line { height: var(--gds-ep-h); --gds-track-h: calc(var(--gds-ep-h) * 0.45); --gds-line-y: 50%; }
  .fb-gds-leg__plane {
    width: 16px;
    height: 16px;
  }
  .fb-gds-card__bag {
    padding: 0 4px;
    overflow: hidden;
    justify-content: center;
    min-width: 0;
  }
  .fb-gds-card__bag .fb-vn__bag {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    max-width: 100%;
    text-align: center;
  }
  .fb-gds-card__bag .fb-vn__bag-ico svg {
    width: 18px;
    height: 18px;
  }
  .fb-gds-card__bag .fb-vn__bag-txt {
    font-size: 0.62rem;
    line-height: 1.15;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: 100%;
  }
  .fb-gds-card__aside {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-left: 4px;
    overflow: visible;
    min-width: 0;
  }
  .fb-gds-card__price-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    padding: 0 8px 0 14px;
  }
  .fb-gds-card__price {
    font-size: clamp(0.96rem, 1.35vw, 1.12rem);
    letter-spacing: -0.03em;
    white-space: nowrap;
    text-align: center;
  }
  .fb-gds-card__fare-btn {
    padding: 2px 5px;
    gap: 2px;
    max-width: 100%;
  }
  .fb-gds-card__class { font-size: 0.68rem; }
  .fb-gds-card__seats { font-size: 0.58rem; }
  .fb-gds-card__chev { width: 12px; height: 12px; }
  .fb-gds-card__radio {
    width: 16px;
    height: 16px;
  }
}

/* Desktop lớn - icon rộng/cao hơn; đường bay dài hơn (MacBook 901-1499 giữ nguyên) */
@media (min-width: 1500px) {
  .fb-gds-card__logo {
    width: 88px;
    height: 44px;
    max-width: 88px;
  }
  .fb-gds-leg__plane {
    width: 18px;
    height: 18px;
  }
  .fb-gds-card__bag .fb-vn__bag-ico svg {
    width: 20px;
    height: 20px;
  }
  .fb-gds-leg--labeled .fb-gds-leg__grid {
    grid-template-columns: minmax(0, 1fr) minmax(80px, 136px) minmax(0, 1fr);
  }
  .fb-gds-leg__grid {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 160px) minmax(0, 1fr);
  }
}

/* Body GDS */
.fb-vn--gds .fb-vn__body {
  padding: 0 0 4px;
  border-top: 1px solid #edf1f5;
  background: #fafbfc;
}
.fb-gds-detail-leg + .fb-gds-detail-leg { margin-top: 0; }

.fb-vn__detail--gds {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Chi tiết hành trình GDS - timeline dọc */
.fb-gds-detail {
  border: 1px solid #e8ecef;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.fb-gds-detail .fb-gds-tl {
  border: none;
  border-radius: 0;
  background: transparent;
}
.fb-gds-detail .fb-gds-tl--leg {
  border-top: 1px solid #eef2f6;
}
.fb-gds-tl {
  border: 1px solid #e8ecef;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.fb-gds-tl__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 20px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f6;
  background: #fff;
}
.fb-gds-tl__head--main {
  justify-content: flex-start;
  padding: 10px 16px 8px;
  border-bottom: 1px solid #e8ecef;
  background: #fff;
}
.fb-gds-tl__head--main .fb-gds-tl__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #15733c;
  letter-spacing: 0;
  text-align: left;
}
.fb-gds-tl__head--leg {
  justify-content: flex-start;
  padding: 8px 16px 4px;
  border-bottom: none;
  background: #fff;
}
.fb-gds-tl__head-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.fb-gds-tl__leg {
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.2;
}
.fb-gds-tl__leg--out,
.fb-gds-tl__leg--ret {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, #0f5a2e 0%, #15733c 55%, #1d8a4a 100%);
  border: 1px solid #0d4a26;
}
.fb-gds-tl__title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #212121;
  line-height: 1.25;
}

.fb-gds-tl__body {
  padding: 6px 0 12px;
  --tl-pad-x: 16px;
  --tl-time-w: 46px;
  --tl-gap: 10px;
  --tl-pin-w: 22px;
  --tl-content-inset: calc(var(--tl-pad-x) + var(--tl-time-w) + var(--tl-gap) + var(--tl-pin-w) + var(--tl-gap));
}
.fb-gds-tl__seg-inner {
  position: relative;
}
.fb-gds-tl__seg-spine {
  position: absolute;
  top: 10px;
  bottom: calc(0.9rem * 1.2 + 1px + 1.25 * 0.76rem + 2px - 11px);
  left: calc(var(--tl-pad-x) + var(--tl-time-w) + var(--tl-gap) + var(--tl-pin-w) / 2);
  width: var(--tl-pin-w);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
.fb-gds-tl__seg-inner:has(.fb-gds-tl__term) .fb-gds-tl__seg-spine {
  bottom: calc(0.9rem * 1.2 + 1px + 1.25 * 0.76rem + 2px + 5px + 1.3 * 0.65rem + 4px - 11px);
}
.fb-gds-tl__seg-line {
  position: absolute;
  left: 50%;
  top: 9px;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #86efac 0%, var(--shell-blue, #15733c) 100%);
  border-radius: 1px;
}
.fb-gds-tl__seg-flow {
  position: relative;
  z-index: 1;
}

.fb-gds-tl__node {
  display: grid;
  grid-template-columns: 46px 22px 1fr;
  gap: 0 10px;
  padding: 10px 16px 0;
  align-items: start;
}
.fb-gds-tl__when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-top: 1px;
}
.fb-gds-tl__hm {
  font-size: 0.95rem;
  font-weight: 700;
  color: #212121;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.fb-gds-tl__date {
  font-size: 0.7rem;
  font-weight: 500;
  color: #90a4ae;
  line-height: 1.2;
}
.fb-gds-tl__rail {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.fb-gds-tl__dot--dep {
  position: relative;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--shell-blue, #15733c);
  box-sizing: border-box;
  margin-top: 5px;
  flex-shrink: 0;
}
.fb-gds-tl__rail-plane {
  display: block;
  position: relative;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  flex-shrink: 0;
  transform: rotate(180deg);
  color: var(--shell-blue, #15733c);
}
.fb-gds-tl__place {
  min-width: 0;
  padding-bottom: 2px;
}
.fb-gds-tl__ap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fb-gds-tl__iata {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--shell-blue, #15733c);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.fb-gds-tl__city {
  font-size: 0.76rem;
  font-weight: 500;
  color: #78909c;
  line-height: 1.25;
}
.fb-gds-tl__term {
  display: inline-block;
  align-self: flex-start;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--shell-blue-dark, #0f5a2e);
  background: var(--shell-blue-hover, #e8f5e9);
  line-height: 1.3;
}

.fb-gds-tl__flight {
  display: grid;
  grid-template-columns: 46px 22px 1fr;
  gap: 0 10px;
  padding: 2px 16px 4px;
  align-items: start;
}
.fb-gds-tl__flight-card {
  grid-column: 3;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 0 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  min-width: 0;
}
.fb-gds-tl__logo {
  flex-shrink: 0;
  width: auto;
  height: 32px;
  max-width: 72px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin: 0;
  padding: 2px 4px;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 3px;
  background: #fff;
  box-sizing: border-box;
}
.fb-gds-tl__flight-body { min-width: 0; flex: 1; }
.fb-gds-tl__flight-top {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fb-gds-tl__flight-airline {
  font-size: 0.76rem;
  font-weight: 700;
  color: #37474f;
  line-height: 1.25;
}
.fb-gds-tl__flight-no {
  font-size: 0.82rem;
  font-weight: 800;
  color: #212121;
  margin-top: 1px;
  line-height: 1.25;
}
.fb-gds-tl__flight-meta {
  margin-top: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #90a4ae;
  line-height: 1.35;
}

.fb-gds-tl__xfer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px var(--tl-pad-x, 16px) 8px var(--tl-content-inset, 84px);
  padding: 9px 12px;
  border-radius: 5px;
  background: var(--shell-blue-hover, #f0fdf4);
  border: 1px solid rgba(21, 115, 60, 0.22);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--shell-blue, #15733c);
  line-height: 1.35;
}
.fb-gds-tl__xfer strong {
  font-weight: 700;
  color: var(--shell-blue-dark, #0f5a2e);
}
.fb-gds-tl__xfer-ico {
  flex-shrink: 0;
  color: var(--shell-blue, #15733c);
}
.fb-gds-tl__xfer-txt {
  min-width: 0;
  flex: 1;
}
.fb-vn__detail-empty {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.72rem;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .fb-vn--gds {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
  }
  .fb-vn--gds.is-selected {
    margin-inline: 0;
    width: 100%;
    border-color: #15733c;
    box-shadow: 0 0 0 1px #15733c, 0 2px 8px rgba(21, 115, 60, 0.1);
    background: #f3faf5;
  }
  .fb-vn--gds.is-selected .fb-gds-card__inner {
    box-shadow: none;
    border-radius: 0;
  }

  .fb-vn--gds .fb-vn__head.fb-gds-card {
    display: block;
    padding: 0;
  }

  /* Hạng vé GDS - badge GALILEO gọn, chừa chỗ cột hành lý */
  .fb-vn--gds .fb-vn__fares .class-code {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 1.5rem;
    max-width: 1.5rem;
  }
  .fb-vn--gds .fb-vn__fares .fb-fare-class {
    width: 1.5rem;
    min-width: 1.5rem;
    max-width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    justify-content: center;
    letter-spacing: 0;
    background: var(--shell-blue, #15733c);
    border-color: var(--shell-blue, #15733c);
    color: #fff;
  }
  .fb-vn--gds .fb-vn__fares .col-bag {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    max-width: 5.2rem;
    font-size: 0.42rem;
  }

  /* Mobile GDS - 1 hàng như quốc nội: logo+mã | hành trình | giá+hạng | radio */
  .fb-gds-card__inner {
    display: grid;
    grid-template-columns: auto max-content auto auto;
    grid-template-areas: "brand legs aside radio";
    align-items: center;
    justify-content: space-between;
    column-gap: 6px;
    row-gap: 4px;
    padding: 12px 10px;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .fb-gds-card__brand {
    grid-area: brand;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 46px;
    max-width: 46px;
    padding: 0;
    margin: 0;
    border: none;
    text-align: center;
  }
  .fb-gds-card__logo {
    width: 44px;
    height: 20px;
    max-width: 44px;
    padding: 2px 3px;
    border-radius: 5px;
    border: 1px solid var(--fb-vn-border, var(--fb-border)) !important;
    background: #fafbfc !important;
  }
  .fb-gds-card__airline {
    display: none;
  }
  .fb-gds-card__flightno {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    max-width: 46px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fb-gds-card__legs {
    grid-area: legs;
    flex: none;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: none;
    align-items: center;
    justify-content: center;
    justify-self: center;
  }
  .fb-gds-leg {
    width: max-content;
    max-width: 100%;
  }
  .fb-gds-leg__grid {
    width: max-content;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    --gds-ep-h: auto;
  }
  .fb-gds-leg__ep {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 0 0 auto;
    align-self: center;
    min-width: 0;
  }
  .fb-gds-leg__ep--dep,
  .fb-gds-leg__ep--arr {
    justify-content: center;
    justify-self: auto;
  }
  .fb-gds-leg__ep--dep .fb-gds-leg__ap,
  .fb-gds-leg__ep--dep .fb-gds-leg__time,
  .fb-gds-leg__ep--arr .fb-gds-leg__ap,
  .fb-gds-leg__ep--arr .fb-gds-leg__time {
    order: unset;
  }
  .fb-gds-leg__ap {
    align-items: center !important;
  }
  .fb-gds-leg__ap strong {
    font-size: 0.78rem;
    font-weight: 500;
    color: #263238;
    letter-spacing: 0;
    background: #eceff1;
    padding: 3px 6px;
    border-radius: 999px;
    line-height: 1.15;
  }
  .fb-gds-leg__time {
    font-size: 0.76rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.05;
  }
  .fb-gds-leg__day {
    top: -0.85em;
    font-size: 0.5rem;
    color: #e65100;
  }
  .fb-gds-leg__path {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 108px;
    width: auto;
    padding: 0 1px;
    min-height: 0;
    align-self: center;
  }
  .fb-gds-leg__path:has(.fb-gds-leg__dots) {
    min-height: 0;
    padding-bottom: 0;
  }
  .fb-gds-leg__line {
    position: relative;
    width: 72px;
    max-width: 100%;
    height: 9px;
    --gds-track-h: 7px;
    --gds-line-end: 7px;
    --gds-dot: 4px;
    --gds-dot-ring: 1.25px;
    --gds-line-w: 1.5;
    --gds-line-y: 50%;
  }
  .fb-gds-leg__dots { display: none; }
  .fb-gds-leg__plane {
    width: 10px;
    height: 10px;
  }
  .fb-gds-leg__stops {
    display: block;
    font-size: 0.52rem;
    font-weight: 600;
    color: #475569;
    max-width: 108px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fb-gds-leg__dur {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    font-size: 0.52rem;
    font-weight: 500;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    line-height: 1.1;
    white-space: nowrap;
  }

  /* Khứ hồi GDS mobile - 2 chân xếp dọc trong cột hành trình */
  .fb-gds-card__legs--combo {
    gap: 6px;
    padding: 0;
  }
  .fb-gds-card__legs--combo .fb-gds-leg + .fb-gds-leg {
    margin-top: 0;
    padding-top: 6px;
    border-top: 1px solid #eef2f6;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled {
    --gds-label-pad-top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled .fb-gds-leg__tag {
    margin: 0;
    min-height: auto;
    align-self: flex-start;
    font-size: 0.58rem;
    padding: 2px 6px;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled .fb-gds-leg__grid {
    padding-top: 0;
    width: max-content;
    max-width: 100%;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled .fb-gds-leg__ap strong {
    font-size: 0.72rem;
    padding: 2px 5px;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled .fb-gds-leg__time {
    font-size: 0.7rem;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled .fb-gds-leg__path {
    min-height: 0;
    padding-top: 0;
    max-width: 64px;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled .fb-gds-leg__line {
    height: 9px;
    width: 36px;
  }

  .fb-gds-card__bag {
    display: none;
  }

  .fb-gds-card__aside {
    grid-area: aside;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    flex: none;
    width: auto;
    min-width: 0;
    max-width: 92px;
    padding: 0;
    border: none;
  }
  .fb-gds-card__price-wrap {
    flex: none;
    align-items: flex-end;
    min-width: 0;
    padding: 0;
  }
  .fb-gds-card__price {
    font-size: 0.88rem;
    font-weight: 800;
    text-align: right;
    line-height: 1.1;
    color: #e65100;
    white-space: nowrap;
  }
  .fb-gds-card__currency {
    text-align: right;
  }
  .fb-gds-card__fare-btn {
    display: inline-flex;
    height: auto;
    min-height: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    gap: 2px;
    align-items: center;
  }
  .fb-gds-card__fare-btn:hover {
    border: none;
    background: transparent;
  }
  .fb-gds-card__class {
    font-size: 0.72rem;
    font-weight: 700;
  }
  .fb-gds-card__seats {
    font-size: 0.68rem;
    font-weight: 600;
  }
  .fb-gds-card__chev {
    width: 10px;
    height: 10px;
  }
  .fb-gds-card__radio {
    grid-area: radio;
    width: 17px;
    height: 17px;
    justify-self: center;
    align-self: center;
  }

  /* Chi tiết hành trình GDS - mobile */
  .fb-vn--gds .fb-vn__body {
    padding: 0 0 2px;
    background: #fafbfc;
    border-top-color: #edf1f5;
  }
  .fb-vn--gds.is-expanded { background: #fff; }
  .fb-vn__detail--gds {
    margin: 0;
    padding: 0;
  }
  .fb-gds-detail-leg + .fb-gds-detail-leg { margin-top: 0; }

  .fb-gds-detail,
  .fb-gds-tl {
    border: none;
    border-radius: 0;
    border-top: 1px solid #eef2f6;
  }
  .fb-vn__detail--gds .fb-gds-detail { border-top: none; }
  .fb-gds-detail .fb-gds-tl--leg { border-top: 1px solid #eef2f6; }
  .fb-gds-tl__head--main {
    padding: 8px 12px 6px;
  }
  .fb-gds-tl__head--main .fb-gds-tl__title {
    font-size: 0.84rem;
    white-space: nowrap;
  }
  .fb-gds-tl__head--leg {
    padding: 6px 12px 2px;
  }
  .fb-gds-tl__head:not(.fb-gds-tl__head--main):not(.fb-gds-tl__head--leg) {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 6px;
  }
  .fb-gds-tl__head--main,
  .fb-gds-tl__head--leg {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  .fb-gds-tl__head-left {
    flex-direction: row;
    align-items: center;
    min-width: 0;
  }
  .fb-gds-tl__leg:not(.fb-gds-tl__leg--out):not(.fb-gds-tl__leg--ret) { font-size: 0.78rem; }
  .fb-gds-tl__head:not(.fb-gds-tl__head--main) .fb-gds-tl__title {
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .fb-gds-tl__body {
    padding: 4px 0 10px;
    overflow-x: hidden;
    --tl-pad-x: 12px;
    --tl-time-w: 40px;
    --tl-gap: 8px;
    --tl-pin-w: 16px;
  }
  .fb-gds-tl__seg-spine {
    top: 8px;
    bottom: calc(0.88rem * 1.1 + 1px + 1.25 * 0.72rem + 2px - 9px);
  }
  .fb-gds-tl__seg-inner:has(.fb-gds-tl__term) .fb-gds-tl__seg-spine {
    bottom: calc(0.88rem * 1.1 + 1px + 1.25 * 0.72rem + 2px + 4px + 1.3 * 0.62rem + 4px - 9px);
  }
  .fb-gds-tl__seg-line {
    top: 8px;
    bottom: 0;
    width: 2px;
  }

  .fb-gds-tl__node,
  .fb-gds-tl__flight {
    grid-template-columns: 40px 16px minmax(0, 1fr);
    gap: 0 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .fb-gds-tl__node { padding-top: 8px; }
  .fb-gds-tl__when { padding-top: 0; }
  .fb-gds-tl__hm { font-size: 0.88rem; }
  .fb-gds-tl__date { font-size: 0.66rem; }
  .fb-gds-tl__dot--dep {
    width: 7px;
    height: 7px;
    margin-top: 4px;
  }
  .fb-gds-tl__rail-plane {
    width: 12px;
    height: 12px;
    margin-top: 3px;
  }
  .fb-gds-tl__iata { font-size: 0.84rem; }
  .fb-gds-tl__city { font-size: 0.72rem; }
  .fb-gds-tl__term {
    margin-top: 4px;
    padding: 2px 7px;
    font-size: 0.62rem;
  }

  .fb-gds-tl__flight { padding-top: 0; padding-bottom: 2px; }
  .fb-gds-tl__flight-card {
    gap: 8px;
    padding: 2px 0 4px;
  }
  .fb-gds-tl__logo {
    height: 28px;
    max-width: 56px;
    padding: 1px 3px;
  }
  .fb-gds-tl__flight-top {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 5px;
  }
  .fb-gds-tl__flight-airline {
    font-size: 0.72rem;
    font-weight: 700;
    color: #37474f;
  }
  .fb-gds-tl__flight-no {
    font-size: 0.74rem;
    font-weight: 800;
    color: #212121;
    margin-top: 0;
  }
  .fb-gds-tl__flight-meta {
    font-size: 0.66rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .fb-gds-tl__xfer {
    margin: 6px var(--tl-pad-x) 6px var(--tl-content-inset);
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 0.68rem;
    align-items: flex-start;
    background: var(--shell-blue-hover, #f0fdf4);
    border: 1px solid rgba(21, 115, 60, 0.22);
  }
  .fb-gds-tl__xfer-ico {
    width: 14px;
    height: 14px;
    margin-top: 1px;
  }
}

@media (max-width: 480px) {
  .fb-gds-card__inner {
    padding: 8px 6px;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled .fb-gds-leg__grid {
    grid-template-columns: minmax(60px, 1fr) minmax(88px, 1.85fr) minmax(60px, 1fr);
    gap: 4px 10px;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled {
    padding-inline: 12px;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled .fb-gds-leg__ep--dep {
    padding-left: 4px;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled .fb-gds-leg__ep--arr {
    padding-right: 4px;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled .fb-gds-leg__ap strong {
    font-size: 0.96rem;
  }
  .fb-gds-card__legs--combo .fb-gds-leg--labeled .fb-gds-leg__time {
    font-size: 0.72rem;
  }
}
.fb-vn__stops {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 2px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}
.fb-vn__stops--direct {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.fb-vn__stops-chev {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.fb-vn.is-expanded .fb-vn__stops-chev { transform: rotate(180deg); }

/* Legacy flight row (fallback) */
.fb-flight {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--shell-border);
  border-radius: 4px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.fb-flight:hover { border-color: #c5e6d0; }
.fb-flight.is-selected {
  border-color: var(--shell-blue);
  background: var(--shell-blue-hover);
}
@media (max-width: 640px) { .fb-flight { grid-template-columns: 1fr; } }

.fb-flight__airline { text-align: center; min-width: 60px; }
.fb-flight__airline img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--shell-border);
}
.fb-flight__airline span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--shell-blue-dark);
  margin-top: 4px;
}
.fb-leg {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
}
.fb-leg__time { font-size: 1rem; font-weight: 800; }
.fb-leg__code { font-size: 0.68rem; color: var(--shell-muted); }
.fb-leg__mid { text-align: center; font-size: 0.68rem; color: var(--shell-muted); }
.fb-leg__mid .dur { font-weight: 700; color: var(--shell-text); display: block; }
.fb-leg__line {
  display: block; height: 1px;
  background: #cbd5e1; margin: 3px 0;
}
.fb-flight__meta { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.fb-tag {
  font-size: 0.6rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  background: #f1f5f9; color: var(--shell-muted);
}
.fb-tag--prov { background: var(--shell-blue-hover); color: var(--shell-blue-dark); }
.fb-tag--ndc { background: #fef3c7; color: #b45309; }

.fb-flight__side { text-align: right; }
.fb-flight__price { font-size: 1rem; font-weight: 800; color: var(--shell-blue-dark); }
.fb-flight__fare { font-size: 0.68rem; color: var(--shell-muted); }
.fb-flight__pick {
  margin-top: 6px;
  padding: 5px 12px;
  border: 1px solid var(--shell-blue);
  border-radius: 3px;
  background: #fff;
  color: var(--shell-blue-dark);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.fb-flight.is-selected .fb-flight__pick {
  background: var(--shell-blue);
  color: #fff;
}

.fb-empty { text-align: center; padding: 24px; color: var(--shell-muted); font-size: 0.84rem; }

/* ── Booking panel ── */
.fb-book { position: sticky; top: 12px; }
.fb-book h3 { margin: 0 0 4px; font-size: 0.9rem; font-weight: 700; }
.fb-book .sub { margin: 0 0 12px; font-size: 0.74rem; color: var(--shell-muted); }
.fb-summary {
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.76rem;
  background: var(--shell-blue-hover);
  border: 1px solid #c5e6d0;
  border-radius: 3px;
  line-height: 1.5;
}
.fb-summary strong { color: var(--shell-blue-dark); }
.fb-summary .muted { color: var(--shell-muted); }

.fb-form-field { margin-bottom: 8px; }
.fb-form-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--shell-muted);
  margin-bottom: 3px;
}
.fb-form-field input,
.fb-form-field select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--fb-border);
  border-radius: 3px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 0.8rem;
}
.fb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.fb-traveler {
  border: 1px solid var(--shell-border);
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 8px;
  background: #fafbfc;
}
.fb-traveler h4 {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--shell-blue-dark);
}

.fb-book-btn {
  width: 100%;
  height: 38px;
  margin-top: 6px;
  border: none;
  border-radius: 3px;
  background: var(--shell-blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.fb-book-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.fb-pnr {
  margin-top: 12px;
  padding: 14px;
  text-align: center;
  background: var(--shell-blue-hover);
  border: 2px solid var(--shell-blue);
  border-radius: 4px;
}
.fb-pnr__label { font-size: 0.7rem; font-weight: 700; color: var(--shell-blue-dark); }
.fb-pnr__code { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.1em; color: var(--shell-blue-dark); }
.fb-pnr p { margin: 6px 0 0; font-size: 0.72rem; color: var(--shell-muted); }

/* ── Recent searches (grid 5, full width, no scroll) ── */
.fb-field.is-airport-active {
  z-index: 50;
}
.fb-recent {
  container-type: inline-size;
  container-name: fb-recent;
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border: 1px solid #dbe3ea;
  border-radius: 16px;
  padding: 28px 32px 24px;
  margin-top: 16px;
  box-shadow:
    2px 2px 4px rgba(15, 23, 42, 0.05),
    8px 10px 22px rgba(15, 23, 42, 0.08),
    6px 6px 0 #d5dce4;
}
.fb-recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}
.fb-recent__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.fb-recent__clear {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  padding: 4px 0 4px 8px;
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.fb-recent__clear:hover {
  color: #15733c;
  background: #fff;
}
.fb-recent__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.fb-recent__item {
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.fb-recent__item:hover {
  border-color: #86c8a0;
  box-shadow: 0 4px 14px rgba(21, 115, 60, 0.1);
}
.fb-recent__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  padding: 14px 28px 14px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  min-width: 0;
  box-sizing: border-box;
}
.fb-recent__top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.fb-recent__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.fb-recent__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
}
.fb-recent__bottom .fb-recent__meta:first-child {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  flex: 1 1 auto;
}
.fb-recent__bottom .fb-recent__meta:first-child .fb-recent__svg {
  width: 13px;
  height: 13px;
}
.fb-recent__meta--pax {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.76rem;
}
.fb-recent__svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: #64748b;
}
.fb-recent__svg--plane {
  width: 12px;
  height: 12px;
  color: #15733c;
  transform: rotate(90deg);
}
.fb-recent__tag {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  background: #15733c;
  border: none;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
  letter-spacing: 0;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-recent__tag--rt {
  background: #0369a1;
}
.fb-recent__route {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.2;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
}
.fb-recent__route b {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
  flex-shrink: 0;
}
.fb-recent__meta > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-recent__dates {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.fb-recent__date {
  white-space: nowrap;
}
.fb-recent__meta--dates {
  align-items: flex-start;
}
.fb-recent__meta--dates > .fb-recent__svg {
  margin-top: 2px;
}
.fb-recent__del {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.fb-recent__del svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.fb-recent__del:hover {
  background: #f1f5f9;
  color: #334155;
}
.fb-recent__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 4px;
  font-size: 0.84rem;
  color: #64748b;
  text-align: center;
}

/* ── Vé đang giữ (dưới chuyến gần đây) ── */
.fb-holds {
  container-type: inline-size;
  container-name: fb-holds;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 14px 16px;
}
.fb-holds__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}
.fb-holds__title {
  position: relative;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.fb-holds__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 999px;
  background: #15733c;
}
.fb-holds__all {
  flex: 0 0 auto;
  font-size: 0.73rem;
  font-weight: 600;
  color: #15733c;
  text-decoration: none;
  white-space: nowrap;
}
.fb-holds__all:hover {
  text-decoration: underline;
}
.fb-holds__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.fb-holds__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.fb-holds__item:hover {
  border-color: #86c8a0;
  box-shadow: 0 4px 14px rgba(21, 115, 60, 0.1);
}
.fb-holds__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 10px 12px 8px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
}
.fb-holds__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fb-holds__logo {
  width: auto;
  height: 20px;
  max-width: 72px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  display: block;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.fb-holds__pnr {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.fb-holds__badge {
  flex: 0 0 auto;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #15733c;
  background: #e8f6ee;
  border: 1px solid #b7e0c6;
  border-radius: 999px;
  padding: 2px 7px;
  line-height: 1.2;
  white-space: nowrap;
}
.fb-holds__route {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
}
.fb-holds__airports {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-width: 0;
}
.fb-holds__route b {
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f172a;
  line-height: 1.2;
}
.fb-holds__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px 5px;
  min-width: 0;
  font-size: inherit;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-holds__arrow {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  color: #15733c;
}
.fb-holds__dot {
  color: #94a3b8;
  font-weight: 700;
}
.fb-holds__flight-bit {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}
.fb-holds__pax-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}
.fb-holds__pax {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-holds__owner {
  display: block;
  min-width: 0;
  margin-top: 2px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #0f766e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-holds__price {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c45c26;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
}
.fb-holds__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px 9px;
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
}
.fb-holds__deadline {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px 6px;
  margin-right: auto;
  min-width: 0;
  font-size: 0.66rem;
  color: #64748b;
  line-height: 1.25;
}
.fb-holds__deadline-at {
  color: #64748b;
}
.fb-holds__deadline-cd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #15733c;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.fb-holds__deadline.is-urgent .fb-holds__deadline-cd {
  color: #c2410c;
}
.fb-holds__deadline.is-expired .fb-holds__deadline-cd {
  color: #b91c1c;
}
.fb-holds__deadline--empty {
  flex: 1 1 auto;
}
.fb-holds__issue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #94a3b8;
  border-color: #94a3b8;
}
.fb-holds__issue {
  flex: 0 0 auto;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  background: #15733c;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.fb-holds__issue:hover {
  background: #0f5c30;
}
.fb-holds__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 4px;
  font-size: 0.84rem;
  color: #64748b;
  text-align: center;
}
.fb-hold-issue-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
  box-sizing: border-box;
}
.fb-hold-issue-overlay[hidden] {
  display: none !important;
}
.fb-hold-issue-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}
.fb-hold-issue-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef2f7;
}
.fb-hold-issue-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.fb-hold-issue-card__close {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fb-hold-issue-card__close:hover {
  background: #f1f5f9;
  color: #334155;
}
.fb-hold-issue-card__body {
  padding: 14px 16px 12px;
  max-height: min(62vh, 480px);
  overflow-y: auto;
}
.fb-hold-issue-card__summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fb-hold-issue-card__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  background: #fff;
}
.fb-hold-issue-card__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 12px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  background: transparent;
}
.fb-hold-issue-card__logo {
  width: auto;
  height: 36px;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  display: block;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
}
.fb-hold-issue-card__pnr {
  margin: 0;
  flex: 0 0 auto;
  padding: 5px 11px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  background: #15733c;
  border: none;
  border-radius: 8px;
  text-align: center;
  line-height: 1.2;
}
.fb-hold-issue-card__legs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fb-hold-issue-card__leg {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
.fb-hold-issue-card__leg-label {
  margin-bottom: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.fb-hold-issue-card__leg-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.fb-hold-issue-card__leg-route b {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #0f172a;
  line-height: 1.1;
}
.fb-hold-issue-card__route-arrow {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: #15733c;
}
.fb-hold-issue-card__leg-meta {
  margin-top: 6px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}
.fb-hold-issue-card__pax {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0 0;
  border-top: 1px solid #f1f5f9;
}
.fb-hold-issue-card__pax-head {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}
.fb-hold-issue-card__pax-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fb-hold-issue-card__pax-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.fb-hold-issue-card__pax-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}
.fb-hold-issue-card__pax-amt {
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ea580c;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fb-hold-issue-card__pax-amt small {
  font-size: 0.7rem;
  font-weight: 600;
}
.fb-hold-issue-card__pax-amt--empty {
  color: #94a3b8;
  font-weight: 500;
}
.fb-hold-issue-card__deadline {
  margin: 0;
  padding: 0 2px;
  font-size: 0.76rem;
  color: #64748b;
  text-align: center;
}
.fb-hold-issue-card__deadline strong {
  color: #0f172a;
  font-weight: 700;
}
.fb-hold-issue-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #15733c;
  color: #fff;
}
.fb-hold-issue-card__total-label {
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.92;
}
.fb-hold-issue-card__total-val {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.fb-hold-issue-card__total-val small {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.9;
}
.fb-hold-issue-card__lead {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
}
.fb-hold-issue-card__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  overflow: hidden;
}
.fb-hold-issue-card__facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 0.84rem;
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f7;
}
.fb-hold-issue-card__facts li:last-child {
  border-bottom: none;
}
.fb-hold-issue-card__facts li:nth-child(even) {
  background: #fafbfc;
}
.fb-hold-issue-card__facts span {
  color: #64748b;
  flex: 0 0 auto;
}
.fb-hold-issue-card__facts strong {
  color: #0f172a;
  text-align: right;
  font-weight: 650;
  min-width: 0;
  word-break: break-word;
}
.fb-hold-issue-card__status {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}
.fb-hold-issue-card__status.is-ok {
  color: #15733c;
  font-weight: 600;
}
.fb-hold-issue-card__status.is-error {
  color: #b91c1c;
  font-weight: 600;
}
.fb-hold-issue-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 18px 14px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
}
.fb-hold-issue-card__btn {
  border-radius: 8px;
  padding: 7px 16px;
  min-width: 88px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.fb-hold-issue-card__btn:active {
  transform: translateY(1px);
}
.fb-hold-issue-card__btn--ghost {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
}
.fb-hold-issue-card__btn--ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.fb-hold-issue-card__btn--primary {
  border: 1px solid #15733c;
  background: #15733c;
  color: #fff;
}
.fb-hold-issue-card__btn--primary:hover {
  background: #0f5c30;
}
.fb-hold-issue-overlay.is-busy .fb-hold-issue-card__btn--primary {
  opacity: 0.85;
}
.fb-hold-issue-card__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.fb-hold-issue-success-overlay .fb-hold-issue-success-card {
  text-align: center;
  max-width: 420px;
}
.fb-hold-issue-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 22px auto 0;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
}
.fb-hold-issue-success__head {
  justify-content: center;
  border-bottom: none;
  padding: 12px 22px 0;
}
.fb-hold-issue-success__title {
  color: #15803d;
  width: 100%;
  text-align: center;
}
.fb-hold-issue-success-overlay .fb-hold-issue-card__body {
  padding: 12px 22px 8px;
}
.fb-hold-issue-success__simple {
  text-align: center;
}
.fb-hold-issue-success__line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #0f172a;
}
.fb-hold-issue-success__line strong {
  color: #dc2626;
  font-weight: 700;
}
.fb-hold-issue-success__note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #b45309;
}
.fb-hold-issue-success__mail {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}
.fb-hold-issue-success__mail--ok {
  color: #15803d;
}
.fb-hold-issue-success__mail--warn {
  color: #b45309;
}
.fb-hold-issue-success__actions {
  justify-content: center;
  border-top: none;
  background: #fff;
  padding: 8px 22px 22px;
}
.fb-hold-issue-success__actions .fb-hold-issue-card__btn {
  min-width: 120px;
}
@media (max-width: 768px) {
  .fb-hold-issue-overlay {
    padding: 12px 10px;
    align-items: center;
  }
  .fb-hold-issue-card {
    max-width: 100%;
    border-radius: 16px 16px 12px 12px;
  }
  .fb-hold-issue-card__head {
    padding: 14px 16px;
  }
  .fb-hold-issue-card__title {
    font-size: 0.92rem;
  }
  .fb-hold-issue-card__close {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
  }
  .fb-hold-issue-card__body {
    padding: 12px 12px 10px;
    max-height: min(72vh, 620px);
  }
  .fb-hold-issue-card__hero {
    padding: 0 0 10px;
    gap: 10px;
  }
  .fb-hold-issue-card__logo {
    height: 32px;
    max-width: 100px;
  }
  .fb-hold-issue-card__pnr {
    padding: 5px 10px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }
  .fb-hold-issue-card__leg-route b {
    font-size: 1.08rem;
  }
  .fb-hold-issue-card__leg-meta,
  .fb-hold-issue-card__pax-line strong {
    font-size: 0.74rem;
  }
  .fb-hold-issue-card__total {
    padding: 7px 11px;
  }
  .fb-hold-issue-card__total-val {
    font-size: 0.94rem;
  }
  .fb-hold-issue-card__status {
    margin-top: 10px;
    font-size: 0.72rem;
  }
  .fb-hold-issue-card__actions {
    padding: 10px 14px 12px;
  }
  .fb-hold-issue-card__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .fb-hold-issue-success-overlay {
    align-items: center;
  }
  .fb-hold-issue-success__line {
    font-size: 0.84rem;
  }
  .fb-hold-issue-success__actions .fb-hold-issue-card__btn {
    flex: 0 0 auto;
    min-width: 120px;
  }
}
@container fb-holds (max-width: 1100px) {
  .fb-holds__list {
    gap: 8px;
  }
  .fb-holds__body {
    padding: 9px 10px 6px;
    gap: 5px;
  }
  .fb-holds__route b {
    font-size: inherit;
  }
}
@media (max-width: 900px) {
  .fb-holds {
    padding: 12px 10px 14px;
  }
  .fb-holds__title {
    font-size: 0.9rem;
  }
  .fb-holds__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
  }
  .fb-holds__item {
    max-width: none;
    width: 100%;
  }
  .fb-holds__body {
    padding: 10px 12px 7px;
    gap: 5px;
  }
  .fb-holds__logo {
    height: 18px;
    max-width: 64px;
  }
  .fb-holds__pnr {
    font-size: 0.86rem;
  }
  .fb-holds__badge {
    font-size: 0.54rem;
    padding: 2px 7px;
  }
  .fb-holds__route {
    flex-wrap: nowrap;
    gap: 5px 6px;
    font-size: 0.68rem;
  }
  .fb-holds__route b {
    font-size: inherit;
  }
  .fb-holds__meta {
    width: auto;
    flex: 1 1 auto;
    font-size: inherit;
    line-height: 1.2;
  }
  .fb-holds__pax {
    font-size: 0.7rem;
  }
  .fb-holds__price {
    font-size: 0.82rem;
  }
  .fb-holds__foot {
    align-items: center;
    gap: 8px;
    padding: 7px 12px 9px;
  }
  .fb-holds__deadline {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 0.66rem;
    line-height: 1.25;
  }
  .fb-holds__deadline-cd {
    font-size: 0.72rem;
  }
  .fb-holds__issue {
    align-self: center;
    padding: 5px 11px;
    font-size: 0.7rem;
    border-radius: 6px;
  }
}

@container fb-recent (max-width: 1100px) {
  .fb-recent__list {
    gap: 8px;
  }
  .fb-recent__body {
    padding: 10px 26px 10px 10px;
    gap: 6px;
  }
  .fb-recent__route b {
    font-size: 0.92rem;
  }
  .fb-recent__route {
    font-size: 0.84rem;
  }
  .fb-recent__tag {
    font-size: 0.58rem;
    padding: 2px 6px;
  }
  .fb-recent__bottom .fb-recent__meta:first-child {
    font-size: 0.78rem;
  }
  .fb-recent__meta {
    font-size: 0.72rem;
  }
  .fb-recent__meta--pax {
    font-size: 0.7rem;
  }
}
@media (max-width: 900px) {
  .fb-recent {
    padding: 20px 16px 18px;
    margin-top: 14px;
    box-shadow:
      2px 2px 4px rgba(15, 23, 42, 0.05),
      8px 8px 18px rgba(15, 23, 42, 0.08),
      5px 5px 0 #d5dce4;
  }
  .fb-recent__head {
    gap: 8px;
    align-items: baseline;
  }
  .fb-recent__title {
    font-size: 0.88rem;
    line-height: 1.25;
  }
  .fb-recent__clear {
    font-size: 0.72rem;
    padding: 2px 0 2px 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .fb-recent__list {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .fb-recent__item {
    flex: 0 0 218px;
    max-width: 218px;
    scroll-snap-align: start;
  }
  .fb-recent__body {
    padding: 10px 30px 10px 10px;
    gap: 7px;
  }
  .fb-recent__route {
    font-size: 0.78rem;
    gap: 3px;
  }
  .fb-recent__route b {
    font-size: 0.82rem;
  }
  .fb-recent__svg--plane {
    width: 10px;
    height: 10px;
  }
  .fb-recent__tag {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
  .fb-recent__meta {
    font-size: 0.74rem;
  }
  .fb-recent__bottom .fb-recent__meta:first-child {
    font-size: 0.82rem;
  }
  .fb-recent__del {
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
  }
  .fb-recent__del svg {
    width: 11px;
    height: 11px;
  }
}
@media (max-width: 480px) {
  .fb-recent__item {
    flex-basis: 202px;
    max-width: 202px;
  }
  .fb-recent__route b {
    font-size: 0.76rem;
  }
}

/* ── Announcements ── */
.fb-notices {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--shell-border);
  border-radius: 8px;
  padding: 14px 18px 16px;
}
.fb-notices__head {
  margin-bottom: 12px;
}
.fb-notices__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--shell-text);
  line-height: 1.3;
}
.fb-notices__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 901px) {
  .fb-notices__list--multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .fb-notices__list--multi .fb-notice {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    height: 100%;
  }
  .fb-notices__list--multi .fb-notice__media {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
  }
  .fb-notices__list--multi .fb-notice__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: #f1f5f9;
  }
  .fb-notices__list--multi .fb-notice__media--placeholder {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .fb-notices__list--multi .fb-notice__body {
    justify-content: flex-start;
    flex: 1 1 auto;
  }
}
.fb-notice {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e8f5ec;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}
.fb-notice__media {
  flex: 0 0 330px;
  width: 330px;
  min-height: 252px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.fb-notice__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 252px;
  object-fit: cover;
  cursor: zoom-in;
}
.fb-notice--no-media .fb-notice__body {
  width: 100%;
}
.fb-notice__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.fb-notice__item-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--shell-text);
  line-height: 1.35;
}
.fb-notice__meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--shell-muted);
  line-height: 1.35;
}
.fb-notice__content {
  margin: 0;
  font-size: 1rem;
  color: #475569;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.fb-notice-zoom {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 22000;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.82);
  cursor: zoom-out;
}
.fb-notice-zoom.is-open {
  display: flex;
}
.fb-notice-zoom__img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  cursor: default;
}
.fb-notice-zoom__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.fb-notice-zoom__close:hover {
  background: #fff;
}
body.fb-notice-zoom-open {
  overflow: hidden;
}
@media (max-width: 900px) {
  .fb-notices {
    padding: 12px 10px 14px;
  }
  .fb-notice {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .fb-notice__media {
    flex: none;
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .fb-notice__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
  }
  .fb-notice__media--placeholder {
    aspect-ratio: auto;
    min-height: 120px;
  }
  .fb-notice__media--placeholder img {
    width: 96px;
    height: 96px;
    min-height: 0;
    object-fit: contain;
  }
  .fb-notice__item-title {
    font-size: 1rem;
  }
  .fb-notice__content {
    font-size: 0.94rem;
  }
}


.fb-spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: fb-spin 0.7s linear infinite;
}
@keyframes fb-spin { to { transform: rotate(360deg); } }

.fb-skeleton {
  padding: 10px 0;
  border-bottom: 1px solid #eef2f6;
}
.fb-skeleton__bar {
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e8edf3 45%, #f1f5f9 90%);
  background-size: 220% 100%;
  animation: fb-shimmer 1.1s ease-in-out infinite;
}
@keyframes fb-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ── Điều kiện vé (popup) ── */
body.fb-fr-open,
body.fb-toolbar-pick-open { overflow: hidden; }
.fb-fr-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: none;
}
.fb-fr-overlay[hidden] { display: none !important; }
.fb-fr-modal {
  width: min(720px, 100%);
  max-height: min(85vh, 820px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}
.fb-fr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--shell-border);
  background: #f8fafc;
}
.fb-fr-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}
.fb-fr-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.fb-fr-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.fb-fr-body {
  padding: 16px 18px 20px;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #334155;
}
.fb-fr-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.fb-fr-body th,
.fb-fr-body td {
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  vertical-align: top;
}
.fb-fr-body th {
  background: #f1f5f9;
  font-weight: 600;
}
.fb-fr-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 8px;
  color: #64748b;
}
.fb-fr-loading .fb-spin {
  border-color: rgba(21, 115, 60, 0.25);
  border-top-color: #15733c;
}
.fb-fr-error {
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  background: #fef2f2;
  color: #b91c1c;
}
.fb-fr-empty {
  margin: 0;
  color: #64748b;
}
.fb-fr-rule {
  margin-bottom: 16px;
}
.fb-fr-rule h4 {
  margin: 0 0 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
}
.fb-fr-rule ul {
  margin: 0;
  padding-left: 1.2rem;
}
.fb-fr-rule li + li { margin-top: 4px; }
.fb-fr-rule p {
  margin: 0;
  line-height: 1.55;
  color: #334155;
}
.fb-fr-rule__html {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #334155;
}
.fb-price-markup-modal {
  width: min(460px, 100%);
}
.fb-price-markup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fb-price-markup-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}
.fb-price-markup-input-wrap {
  position: relative;
}
.fb-price-markup-input-wrap input {
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 52px 0 10px;
  border: 1px solid var(--fb-border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.76rem;
  color: #0f172a;
  background: #fff;
  box-sizing: border-box;
}
.fb-price-markup-unit {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}
.fb-price-markup-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #334155;
}
.fb-price-markup-note--muted {
  color: #64748b;
}
.fb-price-markup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
}
.fb-price-markup-actions .fb-rbtn,
.fb-price-markup-actions .fb-search {
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.76rem;
  border-radius: 6px;
  width: auto;
  flex: 0 0 auto;
  text-align: center;
}
.fb-price-markup-save {
  min-width: auto;
  justify-content: center;
}
@media (max-width: 900px) {
  .fb-price-markup-actions {
    justify-content: stretch;
  }
  .fb-price-markup-actions .fb-rbtn,
  .fb-price-markup-actions .fb-search {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: 0 10px;
  }
}

/* Chat AI widget đã gỡ — dùng Chat Zalo */

.hub-api-trace-panel {
  margin-top: 14px;
}
.hub-api-trace__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.hub-api-trace__title-row .hub-api-trace__title {
  margin: 0;
}
.hub-api-trace__step > summary,
.hub-api-trace__block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}
.hub-api-trace__step > summary::-webkit-details-marker,
.hub-api-trace__block > summary::-webkit-details-marker {
  display: none;
}
.hub-api-trace__sum-label {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}
.hub-api-trace__copy {
  flex-shrink: 0;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.hub-api-trace__copy:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
}
.hub-api-trace__copy.is-ok {
  background: #e8f5ec;
  border-color: #86efac;
  color: #166534;
}
.hub-api-trace__copy.is-err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.hub-api-trace__pre {
  margin: 6px 0 0;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Chụp báo giá (capture quote) ── */
.fb-capture-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.fb-capture-overlay[hidden] {
  display: none !important;
}
body.fb-capture-open {
  overflow: hidden;
}
.fb-capture-modal {
  width: min(920px, 100%);
  max-height: min(92vh, 980px);
  background: #f4f7fb;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fb-capture-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #0b4d2d;
  color: #fff;
}
.fb-capture-modal__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.fb-capture-modal__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.fb-capture-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.fb-capture-modal__hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #64748b;
}
.fb-capture-modal__hint[hidden] {
  display: none !important;
}
.fb-capture-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.fb-capture-btn--primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.fb-capture-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.fb-capture-modal__preview {
  flex: 1;
  overflow: auto;
  padding: 16px;
  background: #e2e8f0;
}
.fb-capture-airlines {
  width: 720px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.fb-capture-airline {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.fb-capture-airline__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.fb-capture-airline__logo {
  width: auto;
  height: 56px;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
}
.fb-capture-airline__info {
  flex: 1 1 160px;
  min-width: 0;
}
.fb-capture-airline__info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.fb-capture-airline__info span {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: #64748b;
}
.fb-capture-airline__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.fb-capture-airline .fb-capture-pages {
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  background: #f8fafc;
}
.fb-capture-pages {
  width: 720px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.fb-capture-pages--multi .fb-capture-page + .fb-capture-page {
  margin-top: 18px;
}
.fb-capture-sheet {
  width: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}
.fb-capture-sheet__brand {
  padding: 14px 16px 12px;
  background: #0b4d2d;
  color: #fff;
}
.fb-capture-sheet__brand small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 4px;
}
.fb-capture-sheet__brand strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.fb-capture-sheet__meta {
  padding: 10px 16px;
  font-size: 0.76rem;
  color: #64748b;
  border-bottom: 1px solid #e8ecf1;
  background: #f8fafc;
}
.fb-capture-sheet__count {
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #166534;
  background: #f0fdf4;
  border-bottom: 1px solid #dcfce7;
}
.fb-capture-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #e8ecf1;
  font-size: 0.82rem;
  color: #334155;
}
.fb-capture-row:first-of-type {
  border-top: none;
}
.fb-capture-row__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 0;
}
.fb-capture-row__logo img {
  display: block;
  width: 100px;
  height: auto;
  max-height: 34px;
  object-fit: contain;
  object-position: center;
}
.fb-capture-row__flight {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.fb-capture-row__airline {
  font-weight: 600;
  color: #334155;
}
.fb-capture-row__route {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.35;
}
.fb-capture-row__meta {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
}
.fb-capture-row__price {
  text-align: right;
  white-space: nowrap;
}
.fb-capture-row__price strong {
  display: block;
  font-size: 1.28rem;
  font-weight: 800;
  color: #dc2626;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.fb-capture-row__price span {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  color: #64748b;
}
.fb-capture-sheet__foot {
  padding: 10px 16px 12px;
  font-size: 0.7rem;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid #e8ecf1;
  background: #fff;
}

/* Báo giá dài: layout gọn hơn để ảnh xuất ra không vượt giới hạn canvas */
.fb-capture-pages--compact .fb-capture-sheet__brand {
  padding: 10px 14px 8px;
}
.fb-capture-pages--compact .fb-capture-sheet__brand strong {
  font-size: 0.95rem;
}
.fb-capture-pages--compact .fb-capture-sheet__meta,
.fb-capture-pages--compact .fb-capture-sheet__count {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 0.68rem;
}
.fb-capture-pages--compact .fb-capture-row {
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.76rem;
}
.fb-capture-pages--compact .fb-capture-row__logo img {
  width: 84px;
  height: auto;
  max-height: 30px;
}
.fb-capture-pages--compact .fb-capture-row__flight {
  font-size: 0.82rem;
  margin-bottom: 1px;
}
.fb-capture-pages--compact .fb-capture-row__route {
  font-size: 0.76rem;
}
.fb-capture-pages--compact .fb-capture-row__meta {
  font-size: 0.72rem;
}
.fb-capture-pages--compact .fb-capture-row__price strong {
  font-size: 1.12rem;
}
.fb-capture-pages--compact .fb-capture-sheet__foot {
  padding: 8px 14px 10px;
  font-size: 0.66rem;
}

@media (max-width: 900px) {
  .fb-capture-modal {
    width: 100%;
    max-height: 96vh;
    border-radius: 12px 12px 0 0;
    align-self: flex-end;
  }
  .fb-capture-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .fb-capture-modal__preview {
    padding: 10px;
  }
  .fb-capture-airlines,
  .fb-capture-pages {
    width: 100%;
  }
  .fb-capture-airline__head {
    padding: 10px 12px;
    gap: 10px;
  }
  /* Mobile: chỉ giữ logo + nút Tải/Copy — bỏ tên hãng / số chuyến / giá từ */
  .fb-capture-airline__info {
    display: none;
  }
  .fb-capture-airline__logo {
    height: 44px;
    max-width: 100px;
  }
  .fb-capture-airline__actions {
    flex: 1 1 auto;
    margin-left: auto;
    gap: 6px;
  }
  .fb-capture-airline__actions .fb-capture-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 7px 10px;
    font-size: 0.72rem;
    font-weight: 500;
  }
  .fb-capture-airline .fb-capture-pages {
    padding: 6px;
  }
  /* Mobile: hàng chuyến gọn — logo đúng tỉ lệ (không ép cao → html2canvas không méo) */
  .fb-capture-pages .fb-capture-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    grid-template-areas:
      "logo main price";
    gap: 6px 8px;
    align-items: center;
    font-size: 0.72rem;
    padding: 8px 10px;
  }
  .fb-capture-pages .fb-capture-row__logo {
    grid-area: logo;
    align-self: center;
    height: auto;
    min-height: 0;
  }
  .fb-capture-pages .fb-capture-row__logo img {
    width: 64px;
    height: auto;
    max-width: 64px;
    max-height: 28px;
  }
  .fb-capture-pages .fb-capture-row__main {
    grid-area: main;
    min-width: 0;
  }
  .fb-capture-pages .fb-capture-row__flight {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1px;
    line-height: 1.2;
  }
  .fb-capture-pages .fb-capture-row__airline {
    display: none;
  }
  .fb-capture-pages .fb-capture-row__route {
    font-size: 0.66rem;
    line-height: 1.3;
    color: #64748b;
  }
  .fb-capture-pages .fb-capture-row__meta {
    margin-top: 1px;
    font-size: 0.62rem;
    color: #94a3b8;
  }
  .fb-capture-pages .fb-capture-row__price {
    grid-area: price;
    align-self: center;
    text-align: right;
  }
  .fb-capture-pages .fb-capture-row__price strong {
    font-size: 0.95rem;
    font-weight: 700;
  }
  .fb-capture-pages .fb-capture-row__price span {
    margin-top: 1px;
    font-size: 0.58rem;
  }
  /* Hành trình (route) trên sheet báo giá — nhỏ hơn trên mobile */
  .fb-capture-pages .fb-capture-sheet__brand {
    padding: 11px 12px 9px;
  }
  .fb-capture-pages .fb-capture-sheet__brand small {
    font-size: 0.6rem;
  }
  .fb-capture-pages .fb-capture-sheet__brand strong {
    font-size: 0.86rem;
  }
  .fb-capture-pages .fb-capture-sheet__meta {
    padding: 8px 12px;
    font-size: 0.68rem;
  }
  .fb-capture-pages--compact .fb-capture-row {
    font-size: 0.7rem;
    padding: 7px 9px;
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }
  .fb-capture-pages--compact .fb-capture-row__logo {
    min-height: 0;
  }
  .fb-capture-pages--compact .fb-capture-row__logo img {
    width: 56px;
    height: auto;
    max-width: 56px;
    max-height: 26px;
  }
  .fb-capture-pages--compact .fb-capture-row__route {
    font-size: 0.62rem;
  }
  .fb-capture-pages--compact .fb-capture-row__price strong {
    font-size: 0.88rem;
  }
  .fb-capture-pages--compact .fb-capture-sheet__brand strong {
    font-size: 0.8rem;
  }
}
