/* ═══════════════════════════════════════════════════════════════
   NIF Express — v3-a2.css (desenho amarelo novo: páginas com lógica, frente A2)

   Checkout, pedido recebido, login, recuperação de palavra-passe, retoma de
   pagamento e portal. Tudo vive sob .a2 / .a2-* para não colidir com o CSS
   partilhado (v3.css, frente A1) nem com o CSS antigo. Os tokens usam os do
   v3.css quando existem (--ink, --y, ...) e têm valores próprios por omissão.
   Sem sombras, sem gradientes, sem cantos arredondados grandes (mockups).
═══════════════════════════════════════════════════════════════ */

.a2 {
  --a2-ink: var(--ink, #141414);
  --a2-canvas: var(--canvas, #FFFFFF);
  --a2-y: var(--y, #FFD400);
  --a2-yh: var(--y-hover, #EBC400);
  --a2-ya: var(--y-active, #D6B300);
  --a2-grey: var(--grey, #F2F2F0);
  --a2-line: var(--line, #DADAD6);
  --a2-muted: var(--muted, #5E5E5A);
  --a2-alert: var(--alert, #C8102E);
  --a2-ok: var(--success, #0F7A4A);
  --a2-f: var(--f, 'Archivo', 'Arial Narrow', Arial, sans-serif);
  font-family: var(--a2-f);
  font-size: 16px;
  line-height: 1.5;
  color: var(--a2-ink);
  background: var(--a2-canvas);
  font-variant-numeric: tabular-nums;
  padding-bottom: 88px;
}
body.a2-page { background: #FFFFFF; overflow-x: clip; }
.a2 *, .a2 *::before, .a2 *::after { box-sizing: border-box; }
:where(.a2) h1, :where(.a2) h2, :where(.a2) h3, :where(.a2) h4, :where(.a2) p, :where(.a2) dl, :where(.a2) dd, :where(.a2) figure { margin: 0; }
:where(.a2) ul, :where(.a2) ol { list-style: none; margin: 0; padding: 0; }
.a2 a { color: var(--a2-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.a2 code { font-size: .9em; }
.a2-wrap { max-width: 1212px; margin: 0 auto; padding: 0 16px; }
.a2 .num { font-variant-numeric: tabular-nums; }

/* foco visível em tudo o que se pode usar */
.a2 a:focus-visible, .a2 button:focus-visible, .a2 input:focus-visible, .a2 select:focus-visible,
.a2 textarea:focus-visible, .a2 summary:focus-visible, .a2 .a2-opt:has(input:focus-visible),
.a2 .a2-chk:has(input:focus-visible), .a2 .co-doc-action:focus-within .co-doc-attach-btn {
  outline: 2px solid var(--a2-ink); outline-offset: 2px;
}

/* ── tipografia ─────────────────────────────────────────────── */
.a2-d {
  font-family: var(--a2-f); font-stretch: 75%; font-weight: 900; letter-spacing: -.01em;
  line-height: .98; text-transform: uppercase; text-wrap: balance; hyphens: auto; overflow-wrap: break-word;
}
.a2 h1.a2-d { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 14px; }
.a2 h2.a2-d { font-size: clamp(24px, 2.6vw, 32px); }
.a2 .a2-bh { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 16px; }
.a2-lab { font: 700 12px/1.3 var(--a2-f); text-transform: uppercase; letter-spacing: .08em; color: var(--a2-muted); }
.a2-fld { display: block; font: 500 13px/1.3 var(--a2-f); color: var(--a2-muted); margin-bottom: 6px; }
.a2-fh { font: 700 15px/1.3 var(--a2-f); margin-bottom: 10px; }
.a2-help, .a2-small { font-size: 13px; line-height: 1.45; color: var(--a2-muted); }
.a2-help { margin-top: 6px; }
.a2-small { display: block; margin-top: 2px; }
.a2-lead { font-size: 18px; line-height: 1.45; max-width: 52ch; margin-bottom: 24px; }
.a2-strong { font-weight: 700; }
.a2-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.a2 .req { color: var(--a2-alert); font-weight: 700; }
.a2-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.a2-ic--lg { width: 24px; height: 24px; }

/* ── botões ─────────────────────────────────────────────────── */
.a2 .a2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 9999px; border: 2px solid var(--a2-ink);
  font: 700 16px/1.15 var(--a2-f); font-stretch: 100%; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, transform .1s;
}
.a2 .a2-btn .a2-ic { width: 18px; height: 18px; }
.a2 .a2-btn--p { background: var(--a2-y); color: var(--a2-ink); }
.a2 .a2-btn--p:hover { background: var(--a2-yh); }
.a2 .a2-btn--p:active { background: var(--a2-ya); transform: scale(.98); }
.a2 .a2-btn--s { background: transparent; color: var(--a2-ink); }
.a2 .a2-btn--s:hover { background: var(--a2-grey); }
.a2 .a2-btn--s:active { transform: scale(.98); }
.a2 .a2-btn--sm { min-height: 44px; padding: 10px 20px; }
.a2 .a2-btn[disabled], .a2 .a2-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.a2 .a2-btn[disabled]:hover, .a2 .a2-btn[aria-disabled="true"]:hover { background: transparent; }
.a2 .a2-btn--p[disabled]:hover { background: var(--a2-y); }
.a2 .a2-alink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.a2 .a2-alink .a2-ic { width: 16px; height: 16px; }
.a2 .a2-linkbtn { background: none; border: 0; padding: 0; font: 600 16px/1.3 var(--a2-f); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; color: var(--a2-ink); }
.a2-actions { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 28px; }
.a2-actions--split { justify-content: space-between; }

/* ── cabeçalho do checkout e passos ─────────────────────────── */
.a2-cobar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--a2-ink); }
.a2-sc { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--a2-f); }
.a2-sc .a2-ic { width: 16px; height: 16px; }
.a2-stepper { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 28px 0 40px; }
.a2-stepper li { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--a2-muted); }
.a2-dot { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--a2-muted); border-radius: 2px; font: 700 12px/1 var(--a2-f); color: var(--a2-muted); flex: none; }
.a2-dot .chk { display: none; width: 14px; height: 14px; }
.a2-stepper .done .a2-dot { border-color: var(--a2-ok); color: var(--a2-ok); }
.a2-stepper .done .a2-dot .n { display: none; }
.a2-stepper .done .a2-dot .chk { display: block; }
.a2-stepper .active, .a2-stepper [aria-current] { color: var(--a2-ink); }
.a2-stepper .active .a2-dot, .a2-stepper [aria-current] .a2-dot { background: var(--a2-ink); border-color: var(--a2-ink); color: var(--a2-canvas); }
.a2-stepper .active.done .a2-dot { background: transparent; }

/* ── grelha do checkout ─────────────────────────────────────── */
.a2-cog { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: start; }
.a2-main, .a2-side { min-width: 0; }
.a2-main { max-width: 600px; }
.co-panel { display: none; }
.co-panel.active { display: block; }
.a2-ck [data-plan="adult"] .rm, .a2-ck[data-plan="adult"] .rm { display: none; }
.a2-ck[data-plan="minor"] .ra { display: none; }

/* ── formulários ────────────────────────────────────────────── */
.a2-form { display: block; }
.a2-block { margin: 0 0 36px; }
.a2-block > h2 { margin-bottom: 16px; }
.a2-fieldset { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.a2-fieldset legend { padding: 0; margin-bottom: 10px; }
.a2-reqnote { font-size: 13px; color: var(--a2-muted); margin-bottom: 24px; }
.a2 .co-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.a2 .co-field { margin-bottom: 22px; min-width: 0; }
.a2 .co-field--full { grid-column: 1 / -1; }
.a2 .co-field label, .a2 .co-field > .a2-fld { display: block; font: 500 13px/1.3 var(--a2-f); color: var(--a2-muted); margin-bottom: 6px; }
.a2 .co-field input[type="text"], .a2 .co-field input[type="email"], .a2 .co-field input[type="date"],
.a2 .co-field input[type="password"], .a2 .co-field select, .a2 .co-field textarea {
  display: block; width: 100%; min-width: 0; height: 48px; padding: 0 14px;
  border: 2px solid var(--a2-ink); border-radius: 4px; background: var(--a2-canvas);
  color: var(--a2-ink); font: inherit; font-size: 16px;
}
.a2 .co-field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.a2 .co-field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.a2 .co-field input[type="file"] { display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 2px dashed var(--a2-ink); border-radius: 4px; font: inherit; font-size: 15px; background: var(--a2-canvas); }
.a2 .co-field .invalid, .a2 .co-field input.invalid, .a2 .co-field select.invalid, .a2 .co-field textarea.invalid { border-color: var(--a2-alert); border-width: 3px; }
.a2 .co-field small { display: block; font-size: 13px; line-height: 1.45; color: var(--a2-muted); margin-top: 6px; }
.a2 .co-field small.co-upload-status { color: var(--a2-muted); }
.a2 .co-field-hint, .a2 .co-hint-identity { font-size: 13px; line-height: 1.45; color: var(--a2-muted); margin: 0 0 14px; }
.a2 .co-section-title { font: 700 15px/1.3 var(--a2-f); margin-bottom: 12px; }
.a2 .co-section-note { font-weight: 500; color: var(--a2-muted); font-size: 13px; }
.a2 .co-section--minor { border: 2px solid var(--a2-ink); border-radius: 4px; padding: 20px 16px 4px; margin-bottom: 36px; }
.a2 .co-subsection { font: 700 15px/1.3 var(--a2-f); margin: 8px 0 14px; }
.a2 .co-fields .co-field--full + .co-field--full { margin-top: 0; }

/* opções (radios em cartão) */
.a2-choice, .a2-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.a2-opt {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px;
  border: 2px solid var(--a2-ink); border-radius: 4px; cursor: pointer; background: var(--a2-canvas);
}
.a2-opt--sm { min-height: 52px; padding: 10px 16px; }
.a2-opt:has(input:checked), .a2-opt.checked { background: var(--a2-grey); }
.a2-opt.is-disabled { opacity: .55; cursor: not-allowed; }
.a2-opt input[type="radio"] {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none;
  border: 2px solid var(--a2-ink); border-radius: 50%; background: var(--a2-canvas); cursor: inherit;
}
.a2-opt input[type="radio"]:checked { border-width: 7px; }
.a2-opt .ot { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.a2-opt .ot span { font-size: 13px; color: var(--a2-muted); }
.a2-opt .op { font: 700 18px/1 var(--a2-f); white-space: nowrap; }

/* caixas de confirmação */
.a2-chk {
  display: flex; align-items: flex-start; gap: 14px; min-height: 44px; padding: 14px 16px; margin: 0 0 12px;
  border: 2px solid var(--a2-line); border-radius: 4px; cursor: pointer; font-size: 14px; line-height: 1.5;
}
.a2-chk:has(input:checked) { border-color: var(--a2-ink); }
.a2-chk input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0;
  border: 2px solid var(--a2-ink); border-radius: 2px; background: var(--a2-canvas); cursor: pointer;
}
.a2-chk input[type="checkbox"]:checked {
  background: var(--a2-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD400' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background-position: center; background-repeat: no-repeat; background-size: 18px;
}
.a2-chk > span { min-width: 0; overflow-wrap: anywhere; }
.a2-chk strong { font-weight: 700; }
.a2-chk .a2-sub { display: block; margin-top: 6px; color: var(--a2-muted); font-size: 13px; line-height: 1.5; }
.co-renewal-ack--flash { border-color: var(--a2-alert); border-width: 3px; animation: a2-flash .4s 3; }
@keyframes a2-flash { 50% { background: #fdecef; } }
.a2-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px; margin-right: 6px;
  border: 2px solid var(--a2-ink); border-radius: 9999px; font: 700 12px/1.2 var(--a2-f);
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; vertical-align: 1px;
}
.a2-chip .a2-ic { width: 14px; height: 14px; }
.a2-chip--ok { border-color: var(--a2-ok); color: var(--a2-ok); }
.a2-chip--bad { border-color: var(--a2-alert); color: var(--a2-alert); }
.a2-marketing { margin: 0 0 12px; }

/* avisos */
.a2-note {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 0 0 18px;
  border: 2px solid var(--a2-ink); border-radius: 4px; background: var(--a2-y); font-size: 14px; line-height: 1.45;
}
.a2-note .a2-ic { margin-top: 1px; }
.a2-note--lg { font-size: 15px; padding: 14px 16px; }
.a2-note--warn { background: var(--a2-grey); }
.a2-alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 0 0 18px;
  border: 2px solid var(--a2-alert); border-radius: 4px; background: #fff; color: var(--a2-alert);
  font-size: 14px; line-height: 1.45; font-weight: 600;
}
.a2-alert--ok { border-color: var(--a2-ok); color: var(--a2-ok); }
#co-payment-msg { margin-top: 12px; }
.a2-gate { padding: 12px 14px; margin: 0 0 14px; border: 2px dashed var(--a2-ink); border-radius: 4px; font-size: 14px; line-height: 1.5; }
.a2-err { color: var(--a2-alert); font-size: 14px; font-weight: 600; margin-top: 12px; min-height: 1em; }
.a2-okmsg { font-weight: 700; color: var(--a2-ok); }
.a2-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 14px; margin-bottom: 14px; border: 2px solid var(--a2-ok); border-radius: 9999px; color: var(--a2-ok); font: 700 13px/1.2 var(--a2-f); }
.a2-badge .a2-ic { width: 16px; height: 16px; }
.a2-after { font-size: 13px; line-height: 1.45; color: var(--a2-muted); margin-top: 16px; max-width: 46ch; }
.a2-paynote { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--a2-muted); }
.a2-paynote .a2-ic { width: 16px; height: 16px; margin-top: 2px; }
.a2-acct { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; margin: 0 0 24px; font-size: 14px; }
.a2-acct > span { min-width: 0; overflow-wrap: anywhere; }

/* social (fragmento da frente C) */
.a2-social { margin: 20px 0 0; }
.a2-social a, .a2-social button { min-height: 48px; }
.a2-or { display: flex; align-items: center; gap: 16px; margin: 24px 0; font: 600 14px/1.3 var(--a2-f); color: var(--a2-muted); }
.a2-or::before, .a2-or::after { content: ""; flex: 1; border-top: 1px solid var(--a2-line); }

/* ── pagamento ──────────────────────────────────────────────── */
.a2-pay { margin-top: 8px; }
#co-payment-element { margin: 0 0 20px; min-height: 0; }
.co-spinner { display: inline-block; animation: a2-spin .8s linear infinite; }
@keyframes a2-spin { to { transform: rotate(360deg); } }
#co-pay-btn { min-width: 200px; }
#co-pay-btn[disabled] { opacity: .7; }

/* ── documentos (linhas desenhadas pelo checkout.js) ────────── */
.co-docs-header { margin: 0 0 16px; }
.co-docs-progress-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 13px; color: var(--a2-muted); margin-bottom: 8px; }
.co-docs-progress-label strong { color: var(--a2-ink); font-weight: 700; }
.co-docs-bar { height: 8px; border: 2px solid var(--a2-ink); border-radius: 0; background: var(--a2-canvas); }
.co-docs-fill { height: 100%; background: var(--a2-ink); width: 0; transition: width .3s; }
#co-doc-slots { margin: 0 0 24px; border-top: 2px solid var(--a2-ink); }
.co-doc-row {
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 16px 0;
  border-bottom: 1px solid var(--a2-line);
}
.co-doc-status { flex: none; width: 24px; height: 24px; position: relative; margin-top: 2px; }
.co-doc-status-ring { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--a2-muted); display: grid; place-items: center; }
.co-doc-status-check { display: none; }
.co-doc-status-check svg { width: 12px; height: 12px; }
.co-doc-row.uploaded .co-doc-status-ring { background: var(--a2-ok); border-color: var(--a2-ok); }
.co-doc-row.uploaded .co-doc-status-check { display: block; line-height: 0; }
.co-doc-row.doc-error .co-doc-status-ring { border-color: var(--a2-alert); border-width: 3px; }
.co-doc-spinner { display: none; width: 22px; height: 22px; border: 3px solid var(--a2-line); border-top-color: var(--a2-ink); border-radius: 50%; animation: a2-spin .8s linear infinite; }
.co-doc-row.uploading .co-doc-spinner { display: block; }
.co-doc-row.uploading .co-doc-status-ring { display: none; }
.co-doc-icon { display: none; }
.co-doc-info { flex: 1 1 220px; min-width: 0; }
.co-doc-name { font-weight: 700; font-size: 15px; line-height: 1.35; }
.co-doc-name .co-doc-opt { font-weight: 500; color: var(--a2-muted); font-size: 12px; margin-left: 4px; }
.co-doc-hint { font-size: 13px; line-height: 1.45; color: var(--a2-muted); margin-top: 4px; }
.co-doc-filename { display: none; font-size: 13px; font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }
.co-doc-row.uploaded .co-doc-filename { display: block; }
.co-doc-action { position: relative; display: inline-flex; flex: none; }
.co-doc-action input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.co-doc-attach-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px;
  border: 2px solid var(--a2-ink); border-radius: 9999px; font: 700 14px/1 var(--a2-f); background: var(--a2-canvas);
}
.co-doc-attach-btn svg { width: 14px; height: 14px; }
.co-doc-action:hover .co-doc-attach-btn { background: var(--a2-grey); }
.co-doc-row.uploaded .co-doc-attach-btn { border-color: var(--a2-ok); color: var(--a2-ok); }
.co-doc-row.doc-error .co-doc-attach-btn { border-color: var(--a2-alert); color: var(--a2-alert); }
.co-doc-err-msg { flex-basis: 100%; color: var(--a2-alert); font-size: 13px; font-weight: 600; padding-left: 36px; }

/* concluído */
.co-success-wrap { padding: 8px 0; }
.a2-confirm { font-size: 16px; line-height: 1.6; }
.a2-confirm .btn, .a2-confirm a.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; margin-top: 8px;
  border: 2px solid var(--a2-ink); border-radius: 9999px; background: var(--a2-y); color: var(--a2-ink);
  text-decoration: none; font-weight: 700;
}

/* ── recibo ─────────────────────────────────────────────────── */
.a2-receipt { position: relative; background: var(--a2-canvas); border: 2px solid var(--a2-ink); padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 22px; }
.a2-receipt--flat { margin-bottom: 24px; }
.a2-rc-t { font-size: 34px; margin-top: 6px; }
.a2-rc-lines li, .a2-rc-total { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; font-size: 15px; border-top: 1px solid var(--a2-line); }
.a2-rc-lines li:first-child { border-top: 0; padding-top: 0; }
.a2-rc-lines .k, .a2-rc-total .k { flex: 1; display: flex; align-items: flex-end; min-width: 0; }
.a2-rc-lines .k::after, .a2-rc-total .k::after { content: ""; flex: 1; min-width: 12px; margin: 0 8px 5px; border-bottom: 1px dotted var(--a2-muted); }
.a2-rc-lines .v { font-weight: 600; white-space: nowrap; }
.a2-rc-lines .inc { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--a2-muted); }
.a2-rc-lines .inc .a2-ic { width: 14px; height: 14px; color: var(--a2-ok); }
.a2-rc-note { font-size: 12px; line-height: 1.5; color: var(--a2-muted); margin-top: -8px; }
.a2-rc-total { border-top: 2px solid var(--a2-ink); border-bottom: 2px solid var(--a2-ink); padding: 14px 0; }
.a2-rc-total .k { font-weight: 700; font-size: 16px; }
.a2-rc-total .v { font-size: 32px; }
.a2-rc-pay { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -8px; color: var(--a2-muted); font-size: 13px; text-align: center; }
.a2-rc-pay .a2-ic { width: 16px; height: 16px; }
.a2-renew { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--a2-muted); max-width: 62ch; }
.a2-after-pay { margin-top: 28px; }
.a2-after-pay ol { display: grid; gap: 10px; }
.a2-after-pay li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.a2-after-pay .a2-ic { color: var(--a2-ok); margin-top: 1px; width: 18px; height: 18px; }

/* ── pedido recebido ────────────────────────────────────────── */
.a2-col { max-width: 640px; }
.a2-col--narrow { max-width: 480px; margin: 40px 0 0; }
.a2-done .a2-col { padding-bottom: 24px; }
.a2-label { border: 2px solid var(--a2-ink); padding: 20px 24px 6px; margin: 24px 0; background: var(--a2-canvas); }
.a2-rows > div { padding: 10px 0; border-top: 1px solid var(--a2-ink); }
.a2-rows > div:first-child { border-top: 0; padding-top: 0; }
.a2-rows dd { font-size: 20px; overflow-wrap: anywhere; }
.a2-rows dd.a2-d { font-size: 22px; }
.a2-hold { border: 2px solid var(--a2-ink); border-left-width: 10px; background: var(--a2-y); padding: 20px; margin: 24px 0; display: grid; gap: 10px; }
.a2-hold .a2-fh { font-size: 17px; margin: 0; }
.a2-hold .a2-form { margin-top: 6px; }
.a2-hold .co-field { margin-bottom: 14px; }
.a2-hold .a2-chip { background: var(--a2-canvas); width: fit-content; }
.a2-form--row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: end; }
.a2-form--row .a2-btn { grid-column: 1 / -1; justify-self: start; }
.a2-h2 { margin: 36px 0 20px; }
.a2-tl { border-left: 2px solid var(--a2-ink); margin-left: 6px; display: grid; gap: 22px; }
.a2-tl li { padding-left: 22px; position: relative; }
.a2-tl li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; background: var(--a2-y); border: 2px solid var(--a2-ink); }
.a2-tl h3 { font: 700 18px/1.3 var(--a2-f); margin: 2px 0 4px; }
.a2-tl p { font-size: 15px; line-height: 1.5; }
.a2-tl .a2-fld { margin: 0; }
.a2-by { margin-top: 20px; font-size: 13px; color: var(--a2-muted); }
.a2-done .a2-help { margin-top: 16px; }

/* ── login e páginas de autenticação ────────────────────────── */
.a2-lg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: start; padding-top: 48px; }
.a2-lg-main, .a2-lg-side { min-width: 0; }
.a2-lg-main { max-width: 460px; }
.a2-lg-main .a2-lead { margin-bottom: 20px; }
.a2-linkrow { margin: 16px 0 0; }
.a2-noacc { margin-top: 12px; font-size: 15px; }
.a2-lg-side { background: var(--a2-grey); padding: 28px; }
.a2-lg-side .a2-label { margin-top: 0; }
.a2-apps { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-top: 20px; font-weight: 600; }
.a2-authpage .a2-wrap { padding-top: 24px; }

/* ── portal ─────────────────────────────────────────────────── */
.a2-pbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--a2-ink); }
.a2-orders { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.a2-ord { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 4px 14px; border: 2px solid var(--a2-ink); border-radius: 4px; text-decoration: none !important; font-size: 14px; line-height: 1.25; }
.a2-ord .s { font-size: 12px; font-weight: 500; color: var(--a2-muted); }
.a2-ord.is-on { background: var(--a2-y); }
.a2-ord.is-on .s { color: var(--a2-ink); }
.a2-ph { padding: 32px 0 28px; }
.a2-ph p { font-size: 16px; overflow-wrap: anywhere; }
.a2-pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.a2-pgrid--solo { grid-template-columns: minmax(0, 1fr); }
.a2-pgrid--solo .a2-lft { display: none; }
.a2-pgrid--solo .a2-rgt { max-width: 480px; }
.a2-lft, .a2-rgt { min-width: 0; display: grid; gap: 40px; align-content: start; }
.a2-act { border: 2px solid var(--a2-ink); background: var(--a2-y); padding: 24px; display: grid; gap: 10px; justify-items: start; }
.a2-act h2 { margin: 0; }
.a2-act h3 { font: 700 20px/1.3 var(--a2-f); }
.a2-act .a2-btn--p { background: var(--a2-ink); color: #fff; margin-top: 6px; }
.a2-act .a2-btn--p:hover { background: #2A2A2A; }
/* Pedido por pagar (portal): referência e total lado a lado, para o botão ficar à vista; etiquetas a tinta cheia (o cinzento das etiquetas mal passa o contraste sobre o amarelo). */
.a2-pay .a2-kv { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.a2-pay .a2-fld { color: var(--a2-ink); }
/* Aterragem sem pedido aberto: um bloco por pedido por pagar, cada um com o seu botão. */
.a2-pay--list { max-width: 640px; margin-bottom: 40px; }
.a2-payrow { display: grid; gap: 10px; justify-items: start; width: 100%; padding-top: 14px; border-top: 2px solid var(--a2-ink); }
.a2-nf { border: 2px solid var(--a2-ink); padding: 20px 20px 8px; }
.a2-nfh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.a2-nfh .a2-bh { margin: 0; }
.a2-nfl li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--a2-line); }
.a2-nfb { min-width: 0; display: grid; gap: 2px; }
.a2-nfl .is-read { opacity: .8; }
.a2-nfl .is-read strong { font-weight: 500; }
.a2-docs li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 14px 0; border-top: 1px solid var(--a2-line); }
.a2-docs li:last-child { border-bottom: 1px solid var(--a2-line); }
.a2-docs .nm { flex: 1 1 200px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.a2-docs .nm .a2-small { font-weight: 400; }
.a2-docs .act { display: inline-flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; }
.a2-gh { margin: 22px 0 6px; }
.a2-prog .a2-rows dd { font-size: 17px; }
.a2-prog .a2-rows dt { margin-bottom: 2px; }
.a2-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--a2-ok); font-weight: 700; }
.a2-need li { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--a2-line); }
.a2-need form { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; }
.a2-need input[type="file"] { flex: 1 1 200px; min-width: 0; min-height: 44px; font: inherit; font-size: 14px; }
.a2-fix .a2-issue { border-left: 6px solid var(--a2-alert); padding: 4px 0 4px 14px; margin-bottom: 14px; }
.a2-fix .a2-issue small { display: block; color: var(--a2-muted); font-size: 12px; }
.a2-fix .a2-form { margin-top: 18px; }
.a2-bullets { display: grid; gap: 10px; padding-left: 20px; list-style: disc; font-size: 15px; line-height: 1.55; }
.a2-box { border: 2px solid var(--a2-ink); padding: 22px; display: grid; gap: 14px; align-content: start; }
.a2-box .a2-bh { margin: 0; }
.a2-hb { display: grid; gap: 12px; align-content: start; }
.a2-hb .a2-bh { margin: 0; }
.a2-kv { display: grid; gap: 10px; font-size: 15px; }
.a2-kv dd { overflow-wrap: anywhere; font-weight: 600; }
.a2-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.a2-chiprow { margin: 0; }
.a2-dsc { border: 2px solid var(--a2-ink); border-radius: 4px; }
.a2-dsc summary { display: flex; align-items: center; min-height: 48px; padding: 0 14px; cursor: pointer; font-weight: 700; list-style: none; }
.a2-dsc summary::-webkit-details-marker { display: none; }
.a2-dsc summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; }
.a2-dsc[open] summary::after { content: "\2212"; }
.a2-dsc .a2-form { padding: 6px 14px 16px; }
.a2-prv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--a2-line); }
.a2-prv-row .t { display: grid; gap: 2px; min-width: 0; }
.a2-helpl { display: grid; gap: 4px; }
.a2-helpl li { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.a2-helpl .a2-ic { width: 18px; height: 18px; }
.a2-signin { display: grid; gap: 10px; }

/* ── adaptação ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .a2-cog { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .a2-main, .a2-receipt, .a2-renew, .a2-after-pay { max-width: 600px; }
  .a2-lg { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .a2-lg-main { max-width: 560px; }
  .a2-pgrid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .a2-pgrid--solo .a2-rgt { max-width: none; }
}
@media (max-width: 560px) {
  .a2 { padding-bottom: 64px; }
  .a2 .co-fields { grid-template-columns: minmax(0, 1fr); }
  .a2-stepper { gap: 0 12px; margin: 20px 0 32px; }
  .a2-stepper li:not(.active):not([aria-current]) .t { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .a2 .a2-actions .a2-btn, .a2-form > .a2-btn, .a2-form .a2-actions .a2-btn { width: 100%; }
  .a2-actions--split { flex-direction: column-reverse; align-items: stretch; }
  .a2-opt { padding: 12px 14px; }
  .a2-opt .op { font-size: 16px; }
  .a2-receipt { padding: 22px 16px 20px; }
  .a2-rc-t { font-size: 30px; }
  .a2-rc-total .v { font-size: 28px; }
  .a2-form--row { grid-template-columns: minmax(0, 1fr); }
  .a2-lg-side { padding: 20px 16px; }
  .a2-act, .a2-box, .a2-nf { padding: 18px 16px; }
  #co-pay-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .a2 *, .a2 *::before, .a2 *::after { transition: none !important; animation: none !important; }
}

/* alvos de toque (44 px) */
.a2-helpl a { display: inline-flex; align-items: center; min-height: 44px; }
.a2-nfl .a2-alink { min-width: 44px; justify-content: center; flex: none; }
