/**
 * Receipt/Thank You Page Styles
 *
 * @package TripManagement
 */

/* ==========================================================
   Legacy receipt component (.trip-receipt)
   ========================================================== */

/* Receipt Container */
.trip-receipt {
  max-width: 800px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Receipt Header */
.trip-receipt__header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

/* Receipt Logo */
.trip-receipt__logo {
  margin-bottom: 20px;
}

.trip-receipt__logo a {
  display: inline-block;
  text-decoration: none;
}

.trip-receipt__logo-img {
  max-height: 60px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* White filter so logos with dark colors remain visible on coloured header backgrounds */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Icon-sized logo (site icon fallback) */
.trip-receipt__logo-img--icon {
  max-height: 64px;
  max-width: 64px;
  border-radius: 8px;
  filter: none;
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px;
}

.trip-receipt__header--pending {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.trip-receipt__header h1 {
  margin: 0 0 10px 0;
  font-size: 32px;
  font-weight: bold;
}

.trip-receipt__status-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Receipt Content */
.trip-receipt__content {
  padding: 40px 30px;
}

.trip-receipt__section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e5e7eb;
}

.trip-receipt__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.trip-receipt__section-title {
  font-size: 20px;
  font-weight: bold;
  color: #1f2937;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trip-receipt__section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 24px;
  background: #f2bc02;
  border-radius: 2px;
}

/* Detail Rows */
.trip-receipt__detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #f3f4f6;
}

.trip-receipt__detail-row:last-child {
  border-bottom: none;
}

.trip-receipt__detail-label {
  font-weight: 600;
  color: #6b7280;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trip-receipt__detail-value {
  font-weight: 500;
  color: #111827;
  font-size: 16px;
  text-align: right;
}

.trip-receipt__detail-value--large {
  font-size: 24px;
  font-weight: bold;
  color: #10b981;
}

.trip-receipt__detail-value--confirmed {
  color: #10b981;
  font-weight: bold;
}

.trip-receipt__detail-value--pending {
  color: #f59e0b;
  font-weight: bold;
}

.trip-receipt__detail-value--partially_paid {
  color: #f59e0b;
  font-weight: bold;
}

/* Payment Info Box */
.trip-receipt__payment-box {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.trip-receipt__payment-box--success {
  background: #d1fae5;
  border-left-color: #10b981;
}

.trip-receipt__transaction-id {
  font-family: "Courier New", monospace;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

/* Success Message */
.trip-receipt__success-message {
  background: #d1fae5;
  border: 2px solid #10b981;
  color: #065f46;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
}

.trip-receipt__success-message strong {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}

/* Actions */
.trip-receipt__actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.trip-receipt__button {
  flex: 1;
  min-width: 200px;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.trip-receipt__button--primary {
  background: #f2bc02;
  color: #1f2937;
}

.trip-receipt__button--primary:hover {
  background: #d9a502;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(242, 188, 2, 0.3);
}

.trip-receipt__button--secondary {
  background: #ffffff;
  color: #1f2937;
  border: 2px solid #e5e7eb;
}

.trip-receipt__button--secondary:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

/* ==========================================================
   Booking receipt (.trip-thankyou)

   Laid out as a travel document rather than a card: a ruled
   masthead, a quiet status line, a two-up facts ledger, an
   itemised charges table, and a payment panel. Colours are
   the theme's own palette (Kadence global palettes 1-9) so
   the receipt belongs to the brand instead of importing an
   unrelated one.
   ========================================================== */

.trip-thankyou {
  --doc-paper: #ffffff;
  --doc-surface: #f9f9fb;
  --doc-surface-2: #f3f4f7;
  --doc-rule: #e6e9ee;
  --doc-rule-strong: #ccd3db;
  --doc-ink: #1f2933;
  --doc-ink-2: #3e4c59;
  --doc-muted: #7b8794;
  --doc-gold: #f2bc02;
  --doc-amber: #b45309;
  --doc-paid: #0f7b53;
  --doc-paid-bg: #eef7f2;
  --doc-due-bg: #fdf5ea;
  --doc-danger: #b42318;
  --doc-danger-bg: #fdf2f1;

  max-width: 720px;
  margin: 40px auto;
  background: var(--doc-paper);
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(31, 41, 51, 0.06),
    0 14px 34px -14px rgba(31, 41, 51, 0.22);
  overflow: hidden;
  color: var(--doc-ink);
  font-size: 15px;
  line-height: 1.55;
}

/* --- Masthead: who issued it, and what this document is --- */
.trip-thankyou__masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px 22px;
  border-bottom: 2px solid var(--doc-ink);
}

.trip-thankyou__issuer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.trip-thankyou__issuer-mark {
  flex-shrink: 0;
  line-height: 0;
}

.trip-thankyou__issuer-mark img,
.trip-thankyou__issuer-mark .custom-logo {
  display: block;
  max-height: 40px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.trip-thankyou__issuer-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trip-thankyou__issuer-name {
  font-family: Montserrat, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--doc-ink);
}

.trip-thankyou__issuer-tagline {
  font-size: 12px;
  line-height: 1.35;
  color: var(--doc-muted);
}

.trip-thankyou__doc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  text-align: right;
}

.trip-thankyou__doc-kind {
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--doc-ink);
}

.trip-thankyou__doc-ref {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--doc-ink-2);
}

.trip-thankyou__doc-date {
  font-size: 12px;
  color: var(--doc-muted);
}

/* --- Status line --- */
.trip-thankyou__status {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 32px;
  background: var(--doc-surface);
  border-bottom: 1px solid var(--doc-rule);
  border-left: 4px solid var(--doc-muted);
}

.trip-thankyou__status--confirmed {
  background: var(--doc-paid-bg);
  border-left-color: var(--doc-paid);
}

.trip-thankyou__status--partial {
  background: var(--doc-due-bg);
  border-left-color: var(--doc-amber);
}

.trip-thankyou__status--cancelled {
  background: var(--doc-danger-bg);
  border-left-color: var(--doc-danger);
}

.trip-thankyou__status-icon {
  flex-shrink: 0;
  line-height: 0;
  /* Nudge the mark down so it optically centres on the first line of the
     message rather than floating above it. */
  margin-top: 2px;
  color: var(--doc-muted);
}

.trip-thankyou__status--confirmed .trip-thankyou__status-icon {
  color: var(--doc-paid);
}

.trip-thankyou__status--partial .trip-thankyou__status-icon {
  color: var(--doc-amber);
}

.trip-thankyou__status--cancelled .trip-thankyou__status-icon {
  color: var(--doc-danger);
}

.trip-thankyou__status-icon .trip-thankyou__icon {
  width: 34px;
  height: 34px;
}

.trip-thankyou__status-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--doc-ink-2);
}

.trip-thankyou__status-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--doc-ink);
}

/* --- Facts ledger --- */
.trip-thankyou__summary-card {
  padding: 24px 32px;
  border-bottom: 1px solid var(--doc-rule);
}

.trip-thankyou__trip-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 16px;
}

.trip-thankyou__trip-label {
  font-size: 12px;
  color: var(--doc-muted);
}

.trip-thankyou__trip-title {
  font-family: Montserrat, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--doc-ink);
}

.trip-thankyou__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
  margin: 0;
}

.trip-thankyou__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--doc-rule);
}

.trip-thankyou__fact dt {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--doc-muted);
}

.trip-thankyou__fact dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--doc-ink);
  text-align: right;
  overflow-wrap: anywhere;
}

/* Scoped to the dd so they outrank the rule above rather than tying with it. */
.trip-thankyou__fact dd.trip-thankyou__paid,
.trip-thankyou__fact dd.trip-thankyou__remaining {
  font-weight: 600;
}

.trip-thankyou__fact dd.trip-thankyou__paid {
  color: var(--doc-paid);
}

.trip-thankyou__fact dd.trip-thankyou__remaining {
  color: var(--doc-amber);
}

.trip-thankyou__fact--wide {
  grid-column: 1 / -1;
}

/* An odd number of facts would leave a dangling rule in the second column;
   let the last one run the full width instead. */
.trip-thankyou__fact:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* The payment panel is a short, wide-value list — one column keeps the
   transaction ID legible rather than wrapped into a narrow cell. */
.trip-thankyou__facts--payment {
  grid-template-columns: 1fr;
}

/* --- Charges --- */
.trip-thankyou__section {
  padding: 24px 32px;
  border-bottom: 1px solid var(--doc-rule);
}

.trip-thankyou__section:last-of-type {
  border-bottom: none;
}

.trip-thankyou__section-title {
  margin: 0 0 10px;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--doc-ink);
}

.trip-thankyou__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.trip-thankyou__line th,
.trip-thankyou__line td {
  padding: 8px 0;
  border: none;
  text-align: left;
  font-weight: 400;
  vertical-align: baseline;
}

.trip-thankyou__line-name {
  display: block;
  font-size: 14px;
  color: var(--doc-ink);
}

.trip-thankyou__line-meta {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: var(--doc-muted);
}

.trip-thankyou__line-amount {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--doc-ink);
}

/* Subtotal: the list-price sum the discounts come off */
.trip-thankyou__row-sum th,
.trip-thankyou__row-sum td {
  padding: 12px 0 6px;
  border-top: 1px solid var(--doc-rule-strong);
  text-align: left;
  font-weight: 500;
  color: var(--doc-ink-2);
}

.trip-thankyou__row-sum .trip-thankyou__line-amount {
  color: var(--doc-ink);
}

/* Discount rows */
.trip-thankyou__row-discount th,
.trip-thankyou__row-discount td {
  padding: 5px 0;
  border: none;
  text-align: left;
  font-weight: 400;
  color: var(--doc-paid);
}

.trip-thankyou__row-discount .trip-thankyou__line-name {
  color: var(--doc-paid);
}

.trip-thankyou__row-discount .trip-thankyou__line-meta {
  color: var(--doc-paid);
  opacity: 0.8;
}

.trip-thankyou__row-discount .trip-thankyou__line-amount {
  font-weight: 600;
  color: var(--doc-paid);
}

/* Total: the loudest thing on the page, as it should be */
.trip-thankyou__row-total th,
.trip-thankyou__row-total td {
  border-top: 2px solid var(--doc-ink);
  text-align: left;
}

.trip-thankyou__row-total th {
  padding: 14px 0 0;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--doc-ink);
}

.trip-thankyou__total {
  padding: 12px 0 0;
  font-family: Montserrat, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--doc-ink);
}

/* Coupon chip */
.trip-thankyou__coupon-code {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 7px;
  border: 1px dashed var(--doc-paid);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--doc-paid);
}

/* --- Savings note --- */
.trip-thankyou__saved {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  padding: 10px 14px;
  background: var(--doc-paid-bg);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--doc-paid);
}

.trip-thankyou__saved .trip-thankyou__icon {
  width: 17px;
  height: 17px;
}

.trip-thankyou__saved strong {
  font-weight: 700;
}

/* --- Payable-now strip --- */
.trip-thankyou__payable {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--doc-rule-strong);
}

.trip-thankyou__payable-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trip-thankyou__payable-label {
  font-size: 13px;
  color: var(--doc-muted);
}

.trip-thankyou__payable-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--doc-ink);
}

.trip-thankyou__amount-due {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--doc-ink);
}

.trip-thankyou__amount-due--outstanding {
  color: var(--doc-amber);
}

/* --- Payment panel --- */
.trip-thankyou__payment {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trip-thankyou__payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trip-thankyou__payment-method-name {
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--doc-ink);
}

/* Payment-method icon tile */
.trip-pm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--trip-pm-icon-size, 40px);
  height: var(--trip-pm-icon-size, 40px);
  border-radius: 10px;
  background: var(--doc-surface-2);
  color: var(--doc-ink);
}

.trip-pm-icon svg {
  width: 54%;
  height: 54%;
}

.trip-pm-icon--wallet {
  background: #eef3fb;
  color: #1c4e9c;
}

.trip-pm-icon--bank {
  background: #eaf6f1;
  color: var(--doc-paid);
}

.trip-pm-icon--later {
  background: var(--doc-due-bg);
  color: var(--doc-amber);
}

.trip-thankyou__txn-id {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--doc-ink-2);
  background: var(--doc-surface-2);
  padding: 2px 7px;
  border-radius: 4px;
}

/* --- What happens next --- */
.trip-thankyou__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip-thankyou__steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--doc-ink-2);
}

.trip-thankyou__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--doc-gold);
  color: var(--doc-ink);
  font-size: 12px;
  font-weight: 700;
}

/* --- Actions --- */
.trip-thankyou__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 32px 28px;
}

.trip-thankyou__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
  padding: 13px 26px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.trip-thankyou__btn .trip-thankyou__icon {
  width: 18px;
  height: 18px;
}

.trip-thankyou__btn--primary {
  background: var(--doc-gold);
  color: var(--doc-ink);
}

.trip-thankyou__btn--primary:hover {
  background: #d9a502;
  color: var(--doc-ink);
  text-decoration: none;
}

.trip-thankyou__btn--secondary {
  background: var(--doc-paper);
  color: var(--doc-ink-2);
  border: 1px solid var(--doc-rule-strong);
}

.trip-thankyou__btn--secondary:hover {
  background: var(--doc-surface);
  color: var(--doc-ink);
  text-decoration: none;
}

/* --- Colophon --- */
.trip-thankyou__colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 16px 32px 20px;
  border-top: 1px solid var(--doc-rule);
  background: var(--doc-surface);
  font-size: 12px;
  color: var(--doc-muted);
}

/* Default icon sizing for any icon not otherwise scoped */
.trip-thankyou__icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ==========================================================
   Print
   ========================================================== */

@media print {
  @page {
    margin: 12mm;
  }

  /* ---- 1. Remove theme chrome from the layout entirely ---- */
  #masthead,
  .site-header,
  .kadence-header-wrap,
  .header-wrap,
  .site-footer,
  #colophon,
  #wpadminbar,
  .kadence-breadcrumbs,
  nav,
  .nav-container-inner,
  .lubinus-alert-banner,
  /* The theme's newsletter modal can be open over the receipt; never on paper. */
  [data-newsletter-modal],
  .lubinus-newsletter-modal,
  .trip-thankyou__actions,
  .trip-thankyou__next-steps,
  .trip-receipt__actions {
    display: none !important;
  }

  /* ---- 2. Reset layout wrappers so they add no space ---- */
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .content-wrap,
  #primary,
  #main,
  .site-main,
  .entry-content-wrap,
  .content-container,
  .wp-site-blocks {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* ---- 3. Let the document fill the page and paginate naturally ---- */
  .trip-thankyou,
  .trip-receipt {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    font-size: 12pt;
  }

  /* ---- 4. Preserve background colours ---- */
  .trip-thankyou__status,
  .trip-thankyou__saved,
  .trip-thankyou__colophon,
  .trip-thankyou__step-num,
  .trip-thankyou__btn--primary,
  .trip-pm-icon,
  .trip-receipt__header,
  .trip-receipt__payment-box,
  .trip-receipt__success-message {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* ---- 5. Keep an ink-and-paper document: gold and green are the only
          colours that earn their keep on a printed receipt ---- */
  .trip-thankyou__total {
    color: #000 !important;
  }

  .trip-thankyou__saved {
    background: transparent !important;
    border: 1px solid currentColor;
  }

  /* ---- 6. Paper is narrower than a browser window, so pin the ledger to two
          columns rather than letting auto-fit spread it across the sheet ---- */
  .trip-thankyou__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ---- 7. Avoid awkward mid-element page breaks ---- */
  .trip-thankyou__masthead,
  .trip-thankyou__status,
  .trip-thankyou__summary-card,
  .trip-thankyou__section,
  .trip-thankyou__payment,
  .trip-thankyou__table tr,
  .trip-receipt__header,
  .trip-receipt__detail-row {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 768px) {
  .trip-receipt {
    margin: 20px;
    border-radius: 8px;
  }

  .trip-receipt__header {
    padding: 30px 20px;
  }

  .trip-receipt__header h1 {
    font-size: 24px;
  }

  .trip-receipt__content {
    padding: 30px 20px;
  }

  .trip-receipt__detail-row {
    flex-direction: column;
    gap: 5px;
  }

  .trip-receipt__detail-value {
    text-align: left;
  }

  .trip-receipt__actions {
    flex-direction: column;
  }

  .trip-receipt__button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .trip-thankyou {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .trip-thankyou__masthead {
    flex-direction: column;
    gap: 16px;
    padding: 22px 20px 18px;
  }

  .trip-thankyou__doc {
    text-align: left;
  }

  .trip-thankyou__status,
  .trip-thankyou__summary-card,
  .trip-thankyou__section,
  .trip-thankyou__actions,
  .trip-thankyou__colophon {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Keep the status mark prominent without crowding the narrow gutter. */
  .trip-thankyou__status-icon .trip-thankyou__icon {
    width: 30px;
    height: 30px;
  }

  .trip-thankyou__facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trip-thankyou__total {
    font-size: 22px;
  }

  .trip-thankyou__actions {
    flex-direction: column;
  }

  .trip-thankyou__btn {
    width: 100%;
  }
}

/* Reduced motion: the buttons' colour transitions are the only motion here */
@media (prefers-reduced-motion: reduce) {
  .trip-thankyou__btn {
    transition: none;
  }
}

/* Visible keyboard focus */
.trip-thankyou__btn:focus-visible {
  outline: 2px solid var(--doc-ink);
  outline-offset: 2px;
}
