/* RailSaver station pages — 8 November 2026.
   Place the ticket-search button before the existing savings heading. */

/* Match the lower journey planner to the header booking panel. */
.page-station .station-booking-footer .booking-panel {
  border: 2px solid var(--navy);
  box-shadow: 0 2px 8px rgb(27 42 103 / 14%);
}

.page-station .station-booking-footer .booking-panel:hover,
.page-station .station-booking-footer .booking-panel:focus-visible {
  border-color: var(--navy-dark);
  box-shadow: 0 3px 10px rgb(27 42 103 / 18%);
}

.page-station .station-booking-footer .booking-panel:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.page-station .station-savings-heading-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 7px;
}

.page-station .station-savings-heading-row .station-savings-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.page-station .station-savings-heading-row .station-savings-cta:hover {
  background: #a82319;
  color: #fff;
  text-decoration: none;
}

.page-station .station-savings-heading-row .station-savings-cta:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.page-station .station-savings-heading-row h2 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.page-station .station-savings-heading-row h2 strong {
  color: var(--red);
  font-size: 26px;
  white-space: nowrap;
}

/* Keep the legacy template's main navigation within tablet screens. */
@media (min-width: 621px) and (max-width: 800px) {
  .page-station > .site-nav .nav-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  .page-station .station-savings-heading-row .station-savings-cta {
    padding: 8px 11px;
    font-size: 11px;
  }

  .page-station .station-savings-heading-row .station-savings-cta .icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 620px) {
  .page-station .station-savings-heading-row {
    gap: 10px;
  }

  .page-station .station-savings-heading-row h2 {
    font-size: 17px;
  }

  .page-station .station-savings-heading-row h2 strong {
    font-size: 24px;
  }
}
