/* Plano: pequenos detalhes de uso que prolongam a linguagem de cartaz do Sem Filtro. */
.plan,
.plan-form,
.ticket,
.plan-form fieldset,
.ticket > *,
.ticket .t-actions > * {
  min-width: 0;
}

.plan-form fieldset {
  overflow-wrap: anywhere;
}

.ticket {
  overflow-wrap: anywhere;
}

.ticket .strats.plan-benefits {
  gap: 12px;
}

.ticket .strats.plan-benefits li {
  grid-template-columns: 1fr;
  gap: 3px;
  overflow-wrap: anywhere;
}

.ticket .strats.plan-benefits li b {
  font-family: var(--f-display);
  font-size: 1.04rem;
  line-height: 1.15;
}

.ticket .strats.plan-benefits li span {
  color: color-mix(in srgb, var(--on-volt) 84%, transparent);
  font-size: .91rem;
  line-height: 1.42;
}

.ticket .plan-note {
  max-width: 58ch;
  color: color-mix(in srgb, var(--on-volt) 82%, transparent);
  font-size: .84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ticket .plan-note + .plan-note {
  margin-top: -10px;
}

.ticket .t-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ticket .t-actions .btn {
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border-width: 1.5px;
  color: var(--on-volt);
  font-size: .89rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ticket .t-actions .btn--solid,
.ticket .t-actions .btn--light {
  background: var(--on-volt);
  border-color: var(--on-volt);
  color: var(--volt);
}

.ticket .t-actions .btn:focus-visible {
  outline-color: var(--air);
}

/* Este documento só existe para imprimir/guardar o plano atual. */
body > #plan-print {
  display: none;
}

@media (max-width: 420px) {
  .ticket {
    padding: 22px;
    border-radius: 24px;
  }

  .ticket .t-actions {
    gap: 8px;
  }

  .ticket .t-actions .btn {
    padding-inline: 8px;
    font-size: .83rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticket .t-actions .btn {
    transition: none;
  }
}

@page {
  size: A4;
  margin: 12mm 14mm 14mm;
  @top-left {
    content: "SEMFILTRO AIRLINES · PLANO PESSOAL";
    font: 7pt sans-serif;
    color: #515158;
  }
  @bottom-right {
    content: counter(page) " / " counter(pages);
    font: 7pt sans-serif;
    color: #515158;
  }
}

@media print {
  html,
  body {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    color: #202024 !important;
    color-scheme: light !important;
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }

  body > * {
    display: none !important;
  }

  body > #plan-print {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #202024;
    font-family: var(--f-body);
    font-size: 10pt;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  #plan-print *,
  #plan-print *::before,
  #plan-print *::after {
    box-sizing: border-box;
  }

  #plan-print .plan-print-header {
    margin: 0;
    padding: 0 0 3mm;
    border-bottom: .45mm solid #25252a;
  }

  #plan-print .plan-print-kicker {
    margin: 0 0 1.5mm;
    color: #515158;
    font-family: var(--f-mono);
    font-size: 7.5pt;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  #plan-print h1 {
    margin: 0;
    color: #202024;
    font-family: var(--f-display);
    font-size: 27pt;
    line-height: 1.03;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
    break-after: avoid-page;
    page-break-after: avoid;
  }

  #plan-print .plan-print-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5mm;
  }

  #plan-print .plan-print-barcode {
    display: block;
    flex: 0 0 32mm;
    width: 32mm;
    height: 7.5mm;
    color: #202024;
  }

  #plan-print .plan-print-title {
    margin: 1mm 0 0;
    color: #45454b;
    font-family: var(--f-display);
    font-size: 11pt;
    font-weight: 700;
    line-height: 1.2;
  }

  #plan-print .plan-print-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20mm, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: 4mm;
    margin: 4mm 0 0;
    padding: 3mm 4.5mm;
    border: .35mm solid #333338;
    border-radius: 2mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #plan-print .plan-print-stop {
    display: grid;
    min-width: 0;
    gap: 1mm;
  }

  #plan-print .plan-print-stop--end {
    text-align: right;
  }

  #plan-print .plan-print-code {
    font-family: var(--f-display);
    font-size: 25pt;
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.04em;
  }

  #plan-print .plan-print-stop > span:last-child {
    color: #515158;
    font-size: 8.5pt;
  }

  #plan-print .plan-print-flight {
    display: flex;
    align-items: center;
    gap: 1mm;
    color: #34343a;
  }

  #plan-print .plan-print-flight svg {
    flex: 0 0 13mm;
    width: 13mm;
    height: 12mm;
    fill: currentColor;
  }

  #plan-print .plan-print-route-line {
    flex: 1 1 auto;
    min-width: 1mm;
    border-top: .35mm dashed #55555b;
  }

  #plan-print .plan-print-perforation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 3mm;
    margin: 5mm 0 4mm;
    color: #55555b;
    font-family: var(--f-mono);
    font-size: 6.5pt;
    letter-spacing: .12em;
    line-height: 1;
  }

  #plan-print .plan-print-perforation::before,
  #plan-print .plan-print-perforation::after {
    content: "";
    border-top: .4mm dashed #6a6a70;
  }

  #plan-print .plan-print-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .5fr) minmax(0, 1.1fr) minmax(0, 1.65fr) minmax(0, .95fr);
    gap: 3mm 3.5mm;
    margin: 0;
    padding: 0 0 3mm;
    border-bottom: .35mm solid #9a9aa0;
  }

  #plan-print .plan-print-fields > div {
    min-width: 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #plan-print dt {
    color: #55555b;
    font-family: var(--f-mono);
    font-size: 7pt;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  #plan-print dd {
    margin: 1mm 0 0;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

  #plan-print .plan-print-fields > div:first-child dd {
    hyphens: none;
    overflow-wrap: normal;
  }

  #plan-print .plan-print-section {
    margin-top: 3.5mm;
  }

  #plan-print h2 {
    margin: 0 0 2mm;
    color: #303036;
    font-family: var(--f-display);
    font-size: 14pt;
    line-height: 1.1;
    letter-spacing: -.02em;
    break-after: avoid-page;
    page-break-after: avoid;
  }

  #plan-print ul {
    margin: 0;
    padding-left: 5mm;
  }

  #plan-print li {
    padding-left: 1mm;
    margin: 0 0 2mm;
    overflow-wrap: anywhere;
    orphans: 2;
    widows: 2;
  }

  #plan-print li::marker {
    color: #414147;
  }

  #plan-print li b {
    font-weight: 700;
  }

  #plan-print li b::after {
    content: ": ";
  }

  #plan-print .plan-print-credit {
    margin-top: 3mm;
    padding-top: 2.5mm;
    border-top: .35mm solid #77777e;
    color: #4b4b52;
    font-size: 8pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  #plan-print .plan-print-credit p {
    margin: 0 0 1mm;
    orphans: 2;
    widows: 2;
  }

  @media (max-width: 600px) {
    #plan-print .plan-print-fields {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #plan-print .plan-print-fields > div:nth-child(4) {
      grid-column: 1 / -1;
      grid-row: 2;
    }
  }
}
