@font-face {
  font-family:Inter;
  src:url('/checkout/InterVariable.woff2') format('woff2');
  font-weight:100 900;
  font-style:normal;
  font-display:swap
}
:root {
  --navy:#00316B;
  --logo-dark:#031b3a;
  --action:#005DC1;
  --bright:#00A2EF;
  --orange:#ED9240;
  --surface:#fff;
  --soft:#F4F7FB;
  --blue-soft:#EEF6FF;
  --secondary:#52677B;
  --border:#D8E2EC;
  --control:#7D8FA3;
  --success:#13795B;
  --warning:#9A4E00;
  --error:#B42318;
  --focus:#007FD8
}
* {
  box-sizing:border-box
}
[hidden] {
  display:none!important
}
html {
  font-family:Inter,system-ui,sans-serif;
  color:var(--navy);
  background:var(--soft);
  line-height:1.5
}
body {
  margin:0
}
button,input,textarea,select {
  font:inherit
}
button,a,input,summary {
  touch-action:manipulation
}
button {
  cursor:pointer
}
a {
  color:var(--action)
}
svg {
  width:20px;
  height:20px;
  flex-shrink:0
}
h1,h2,h3,p {
  overflow-wrap:break-word
}
h1 {
  font-size:clamp(30px,3.5vw,44px);
  line-height:1.12;
  letter-spacing:-.03em;
  margin:0
}
h2 {
  font-size:20px;
  margin:0 0 16px
}
p {
  margin:0 0 16px
}
button:disabled {
  cursor:wait;
  opacity:.6
}
:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px
}
[tabindex="-1"]:focus {
  outline:none
}
.shell {
  width:min(100% - 96px,1248px);
  margin-inline:auto
}
.step-summary {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px
}
.step-summary[hidden] {
  display:none
}
.step-summary-label {
  display:block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--secondary);
  margin-bottom:6px
}
.step-summary-list {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px
}
.step-summary-list strong {
  display:block;
  font-size:15px
}
.step-summary-list small {
  display:block;
  font-size:13px;
  color:var(--secondary);
  line-height:1.4
}
.step-summary-edit {
  flex:none;
  min-height:44px
}
.wizard-panel.is-summarized>:not(.step-summary) {
  display:none
}
.shell {
  padding-block:32px 48px;
  min-height:calc(100dvh - 190px)
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:12px 20px;
  border:1px solid transparent;
  border-radius:8px;
  font-size:15px;
  font-weight:600;
  line-height:1.5;
  text-decoration:none
}
.primary {
  background:var(--action);
  color:white
}
.primary:hover {
  background:#004C9A
}
.secondary {
  background:white;
  color:var(--action);
  border-color:var(--control)
}
.secondary:hover {
  background:var(--blue-soft)
}
.text {
  background:transparent;
  color:var(--action);
  text-decoration:underline;
  text-underline-offset:4px;
  padding-inline:0
}
.full {
  width:100%
}
.button-row {
  display:flex;
  gap:12px;
  flex-wrap:wrap
}
.eyebrow {
  font-size:12px;
  font-weight:700;
  letter-spacing:.1em;
  color:var(--action);
  margin:0 0 12px
}
.steps {
  list-style:none;
  display:flex;
  gap:24px;
  margin:0 0 28px;
  padding:0;
  color:var(--secondary);
  font-size:13px
}
.steps li {
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  min-width:0
}
.steps li:not(:last-child)::after {
  content:'';
  height:1px;
  background:var(--border);
  flex:1
}
.step-marker {
  width:28px;
  height:28px;
  flex:0 0 28px;
  border:1px solid var(--control);
  border-radius:50%;
  display:grid;
  place-items:center;
  background:white
}
.steps [aria-current=step] .step-marker {
  background:var(--action);
  border-color:var(--action);
  color:white
}
.steps [aria-current=step] {
  font-weight:600;
  color:var(--navy)
}
.steps .completed .step-marker {
  border-color:var(--success);
  color:var(--success)
}
.page-heading {
  margin-bottom:28px
}
.page-heading>p {
  color:var(--secondary);
  margin:14px 0 0;
  max-width:780px;
  font-size:16px
}
.workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:32px;
  align-items:start
}
.content-stack {
  display:flex;
  flex-direction:column;
  gap:20px;
  min-width:0
}
.panel {
  padding:28px 32px;
  background:white;
  border:1px solid var(--border);
  border-radius:12px
}
.narrow {
  max-width:760px;
  margin:24px auto
}
.narrow h1 {
  margin-bottom:20px
}
.lead {
  font-size:17px;
  color:var(--secondary)
}
.narrow summary {
  min-height:44px;
  cursor:pointer;
  color:var(--action);
  font-weight:600;
  padding-block:12px
}
.narrow form {
  margin-top:20px;
  display:grid;
  gap:20px
}
fieldset {
  border:0;
  margin:0;
  padding:0;
  min-width:0
}
legend {
  padding:0;
  font-size:15px;
  font-weight:600;
  margin-bottom:12px
}
label {
  display:grid;
  gap:8px;
  font-size:14px;
  font-weight:600
}
label small {
  font-size:12px;
  font-weight:400;
  color:var(--secondary)
}
input:not([type=radio]):not([type=checkbox]),select,textarea {
  width:100%;
  min-width:0;
  min-height:48px;
  border:1px solid var(--control);
  border-radius:8px;
  background:white;
  color:var(--navy);
  padding:12px;
  font-size:16px;
  line-height:1.5
}
textarea {
  resize:vertical
}
input::placeholder,textarea::placeholder {
  color:var(--secondary);
  opacity:1
}
input[type=radio],input[type=checkbox] {
  accent-color:var(--action);
  width:20px;
  height:20px;
  flex-shrink:0;
  margin:2px 0 0
}
input[aria-invalid=true],textarea[aria-invalid=true] {
  border-color:var(--error)
}
.field-hint,.price-note {
  font-size:13px;
  font-weight:400;
  color:var(--secondary);
  margin-top:10px
}
.field-error {
  font-size:13px;
  color:var(--error);
  font-weight:400;
  line-height:1.5
}
/* Field errors never take layout space: an icon marks the field and a balloon explains it. */
.party-grid label,#review-actions {
  position:relative
}
.party-grid .field-error,#consent-error {
  position:absolute;
  left:0;
  top:calc(100% + 8px);
  z-index:20;
  width:max-content;
  max-width:min(18rem,85vw);
  margin:0;
  padding:6px 10px;
  border-radius:6px;
  background:var(--error);
  color:#fff;
  font-size:12px;
  font-weight:600;
  line-height:1.4;
  box-shadow:0 4px 14px rgba(0,49,107,.18);
  pointer-events:none
}
.party-grid .field-error::before,#consent-error::before {
  content:"";
  position:absolute;
  left:16px;
  top:-5px;
  border:5px solid transparent;
  border-top:0;
  border-bottom-color:var(--error)
}
.party-grid .field-error {
  display:none
}
.party-grid label:is(:focus-within,:hover)>.field-error:not([hidden]) {
  display:block
}
#consent-error {
  top:auto;
  bottom:calc(100% + 8px)
}
#consent-error::before {
  top:auto;
  bottom:-5px;
  border-top:5px solid var(--error);
  border-bottom:0
}
#consent-error:empty {
  display:none
}
.party-grid input[aria-invalid=true]:not([name$=".postalCode"]) {
  border-color:var(--error);
  padding-right:40px;
  background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E") no-repeat right 12px center
}
.message-field {
  font-size:15px
}
.message-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:24px;
  margin-top:8px
}
.message-meta .field-error {
  font-size:12px
}
.counter {
  font-size:12px;
  color:var(--secondary);
  text-align:right;
  margin-left:auto;
  white-space:nowrap
}
.counter #message-remaining {
  display:none
}
.section-separator {
  height:1px;
  background:var(--border);
  margin:24px 0
}
.service-picker-title {
  font-size:15px;
  margin:-10px 0 2px
}
.service-toggle {
  display:flex;
  width:100%;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0;
  border:0;
  background:none;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:default;
  min-height:44px
}
.service-toggle-hint {
  display:none;
  font-size:13px;
  font-weight:600;
  color:var(--action);
  text-decoration:underline;
  text-underline-offset:3px
}
.service-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px
}
.service-card {
  display:flex;
  gap:12px;
  padding:16px;
  border:1px solid var(--control);
  border-radius:8px;
  cursor:pointer;
  align-items:flex-start
}
.service-card input {
  width:18px;
  height:18px
}
.service-card-icon,.variant-card-icon,.additional-card-icon {
  display:inline-flex;
  width:16px;
  height:16px;
  margin-inline-end:8px;
  vertical-align:-2px
}
.service-card-icon svg,.variant-card-icon svg,.additional-card-icon svg {
  width:16px;
  height:16px
}
.service-card-copy {
  display:grid;
  gap:4px
}
.service-card strong {
  font-size:16px
}
.service-card small {
  font-size:13px;
  font-weight:400;
  line-height:1.5
}
.service-card b {
  font-size:13px;
  color:var(--action);
  font-weight:600
}
.service-card:has(input:checked),.variant-card:has(input:checked),.additional-card:has(input:checked) {
  background:var(--blue-soft);
  border-color:var(--action);
  box-shadow:inset 0 0 0 1px var(--action)
}
.variant-fieldset {
  margin-top:24px
}
.variant-grid,.additional-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.variant-card,.additional-card {
  display:flex;
  gap:10px;
  padding:16px;
  border:1px solid var(--control);
  border-radius:8px;
  cursor:pointer;
  align-items:flex-start
}
.variant-card-copy,.additional-card-copy {
  min-width:0
}
.variant-card-copy strong,.additional-card-copy strong {
  font-size:14px;
  font-weight:600
}
.option-description {
  display:block;
  margin-top:6px;
  font-size:13px;
  font-weight:400;
  line-height:1.5;
  color:var(--secondary)
}
.option-receives {
  list-style:none;
  padding:0;
  margin:8px 0 0;
  display:grid;
  gap:2px;
  font-size:13px;
  font-weight:500;
  line-height:1.4
}
.option-receives li {
  position:relative;
  padding-left:18px
}
.option-receives li::before {
  content:"✓";
  position:absolute;
  left:0;
  color:var(--action);
  font-weight:600
}
#telegram-additional-grid~label {
  margin-top:16px
}
.additional-option {
  display:grid;
  align-content:start;
  border:1px solid var(--control);
  border-radius:8px;
  background:#fff
}
.additional-option:has(.additional-card input:checked) {
  background:var(--blue-soft);
  border-color:var(--action);
  box-shadow:inset 0 0 0 1px var(--action)
}
.additional-option .additional-card,.additional-option .additional-card:has(input:checked) {
  border:0;
  background:transparent;
  box-shadow:none
}
.modality-choice {
  margin:0;
  padding:0 16px 14px 46px;
  border:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  min-width:0
}
.modality-choice legend {
  float:left;
  width:100%;
  margin:0 0 2px;
  padding:0;
  font-size:13px;
  font-weight:600;
  color:var(--secondary)
}
.modality-option {
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:4px 12px;
  border:1px solid var(--control);
  border-radius:8px;
  background:#fff;
  cursor:pointer;
  font-size:13px;
  font-weight:600;
  white-space:nowrap
}
.modality-option input {
  position:absolute;
  opacity:0;
  inset:0;
  margin:0;
  cursor:pointer
}
.modality-option:has(input:checked) {
  border-color:var(--action);
  background:var(--action);
  color:#fff
}
.modality-option:has(input:focus-visible) {
  outline:2px solid var(--action);
  outline-offset:2px
}
.option-receives li.is-absent {
  color:var(--secondary);
  font-weight:400
}
.option-receives li.is-absent::before {
  content:"✕";
  color:var(--secondary)
}
.variant-card-copy b,.additional-card-copy b {
  display:block;
  margin-top:8px;
  color:var(--action);
  font-size:13px;
  font-weight:600
}
.price-note {
  margin-bottom:0
}
.party-grid {
  display:grid;
  gap:20px
}
.address-row {
  align-items:start;
  display:grid;
  grid-template-columns:1fr;
  gap:20px
}
.party-row-primary {
  grid-template-columns:minmax(0,1fr) 15.5rem
}
/* Masked numbers use fixed-width digits so each field can be sized to its content. */
.party-grid [data-mask] {
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  letter-spacing:.01em
}
.field-locality {
  display:grid;
  gap:8px;
  min-width:0;
  font-size:14px;
  font-weight:600
}
.locality-value {
  display:flex;
  align-items:center;
  min-height:48px;
  font-size:15px;
  font-weight:500;
  color:var(--secondary);
  overflow-wrap:anywhere
}
.locality-value[data-known=true] {
  color:var(--navy)
}
.party-row-address {
  grid-template-columns:minmax(0,3fr) minmax(100px,1fr)
}
.party-row-details {
  grid-template-columns:1fr 1fr
}
.party-grid input[readonly] {
  background:var(--soft);
  color:var(--secondary)
}
.field-street {
  grid-column:1
}
.party-row-location {
  grid-template-columns:9rem minmax(0,1fr);
  align-items:end
}
.party-row-location:has(.field-cep[data-lookup-state=error]) {
  grid-template-columns:11.75rem minmax(0,1fr)
}
.input-action {
  display:flex;
  align-items:center;
  position:relative
}
.cep-status {
  position:absolute;
  right:10px
}
/* Lookup is automatic; the search button only returns when a lookup failed. */
.field-cep:not([data-lookup-state=error]) .cep-retry {
  display:none
}
.field-cep[data-lookup-state=error] .cep-status {
  right:54px
}
.field-cep[data-lookup-state=loading] .cep-status::after {
  content:'…';
  color:var(--secondary)
}
.field-cep[data-lookup-state=success] .cep-status::after {
  content:'✓';
  color:var(--success)
}
.field-cep[data-lookup-state=error] .cep-status::after {
  content:'!';
  color:var(--error)
}
.input-action input {
  padding-right:24px;
  min-width:0
}
.cep-retry {
  flex-shrink:0;
  width:44px;
  min-height:44px;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:var(--action);
  cursor:pointer
}
.cep-retry svg {
  width:18px;
  height:18px
}
.address-note {
  font-size:13px;
  color:var(--secondary)
}
.wizard-footer {
  display:flex;
  justify-content:flex-start
}
.section-title {
  display:flex;
  justify-content:space-between;
  gap:16px
}
.section-title p {
  font-size:14px;
  color:var(--secondary)
}
.summary-card {
  padding:24px;
  background:white;
  border:1px solid var(--border);
  border-radius:12px;
  position:sticky;
  top:24px;
  min-width:0
}
.summary-heading {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:18px;
  margin-bottom:24px
}
.summary-heading svg,.summary-service-icon {
  display:none
}
.summary-service h2 {
  font-size:18px;
  margin:0 0 4px
}
.summary-service small {
  font-size:13px;
  color:var(--secondary);
  display:block;
  white-space:pre-line
}
.summary-card dl {
  margin:20px 0
}
.summary-card dl>div {
  display:flex;
  gap:16px;
  justify-content:space-between;
  padding-block:8px
}
.summary-card dt {
  font-size:13px;
  color:var(--secondary)
}
.summary-card dd {
  margin:0;
  text-align:right;
  font-size:14px;
  overflow-wrap:anywhere
}
.summary-reference {
  border-top:1px solid var(--border);
  padding-top:20px;
  margin:20px 0
}
.summary-reference>span {
  font-size:13px;
  color:var(--secondary)
}
.summary-reference strong {
  display:block;
  font-size:24px;
  margin:4px 0 8px;
  line-height:1.3
}
.summary-reference small {
  display:block;
  font-size:13px;
  color:var(--secondary)
}
.summary-service+dl:has(#editor-summary-sender:empty) {
  display:none
}
body[data-current-editor-step=service] .editor-summary-card dl {
  display:none
}
.mobile-save-link {
  display:none!important
}
.mobile-action-bar {
  display:none
}
.summary-sheet {
  width:min(600px,calc(100% - 32px));
  border:1px solid var(--border);
  border-radius:12px
}
.summary-sheet-header {
  display:flex;
  justify-content:space-between
}
.summary-sheet::backdrop {
  background:rgb(0 20 50 / .5)
}
.review-parties {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-bottom:24px
}
.review-parties article {
  display:grid;
  gap:6px
}
.review-parties span {
  font-size:13px;
  color:var(--secondary)
}
.review-parties p {
  font-size:14px;
  color:var(--secondary);
  margin:0
}
.message-preview {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  background:var(--soft);
  padding:16px;
  border-radius:8px;
  font-size:15px
}
.draft-viewer {
  margin-top:24px
}
.draft-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:16px
}
.draft-toolbar>div {
  display:flex;
  gap:8px
}
.draft-state {
  font-size:14px;
  padding:16px;
  background:var(--soft);
  border-radius:8px
}
.draft-state.error {
  color:var(--error)
}
.draft-state .button {
  margin-top:12px
}
.draft-viewer iframe {
  width:100%;
  height:480px;
  border:1px solid var(--border);
  border-radius:8px;
  background:white
}
.consent {
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-size:13px;
  line-height:1.6;
  font-weight:400;
  margin:24px 0 16px
}
#review-actions .button {
  width:100%
}
#consent-error {
  min-height:40px;
  margin:8px 0 0
}
.summary-card #summary-total {
  font-size:24px;
  font-weight:600
}
#review-actions:not([hidden])+#save-link {
  margin-top:16px
}
.content-stack>#edit-order {
  align-self:flex-start
}
.pix-layout {
  display:grid;
  grid-template-columns:200px minmax(0,1fr);
  gap:28px;
  align-items:start
}
.pix-layout img {
  width:200px;
  height:auto;
  max-width:100%;
  border:1px solid var(--border);
  padding:12px;
  border-radius:8px
}
.pix-details {
  margin:0 0 24px
}
.pix-details>div {
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px
}
.pix-details dt {
  font-size:13px;
  color:var(--secondary)
}
.pix-details dd {
  font-size:15px;
  margin:0;
  text-align:right
}
#pix-total {
  font-size:24px;
  font-weight:600
}
#pix-code {
  font-size:13px;
  min-height:80px;
  resize:vertical
}
#copy-pix {
  margin-top:12px
}
#check-payment,#renew-payment {
  margin-top:12px
}
.pix-countdown {
  display:block;
  margin-top:2px;
  font-size:13px;
  color:var(--secondary)
}
.pix-expired-note {
  margin:0;
  font-size:15px;
  line-height:1.5
}
#order-progress {
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:20px
}
#order-progress li {
  display:flex;
  gap:16px;
  align-items:center;
  font-size:15px
}
#order-progress li>span {
  height:28px;
  width:28px;
  flex:0 0 28px;
  border-radius:50%;
  border:1px solid var(--control);
  display:grid;
  place-items:center
}
#order-progress .done>span {
  color:var(--success);
  border-color:var(--success)
}
#order-progress strong,
#order-progress small {
  display:block;
}
#order-progress small:empty {
  display:none
}
.delivery-record {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
  font-size:14px
}
.delivery-record>span {
  color:var(--secondary)
}
.delivery-record .tracking-code {
  color:var(--action);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px
}
.delivery-record .tracking-code:focus-visible {
  outline:2px solid currentColor;
  outline-offset:4px;
  border-radius:2px
}
.delivery-record strong {
  font-weight:500;
  text-align:right
}
#documents {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px
}
.alert {
  padding:16px;
  border:1px solid var(--border);
  border-radius:8px;
  background:white;
  font-size:14px
}
.alert.error {
  border-color:var(--error);
  color:var(--error)
}
.operation-status {
  padding:12px;
  background:var(--blue-soft);
  border-radius:8px;
  font-size:14px
}
.pagination-estimate {
  margin-top:16px;
  font-size:13px;
  color:var(--secondary);
  border-top:1px solid var(--border);
  padding-top:12px
}
.pagination-estimate small {
  display:block
}
.pagination-estimate strong {
  font-weight:500
}
.pagination-estimate button {
  min-height:44px
}
.message-paste-notice {
  font-size:13px;
  color:var(--secondary);
  margin-top:8px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  top:-100px;
  left:16px;
  background:var(--navy);
  color:white;
  z-index:20;
  padding:12px 20px
}
.skip-link:not(:focus) {
  clip-path:inset(100%);
  pointer-events:none
}
.skip-link:focus {
  top:12px
}
@media(max-width:1100px) {
  .workspace {
    grid-template-columns:minmax(0,1fr) 290px;
    gap:24px
  }
  .panel {
    padding:24px
  }
  .service-card {
    padding:12px
  }
  .pix-layout {
    grid-template-columns:1fr
  }
  .pix-layout img {
    margin:auto
  }
  .variant-card,.additional-card {
    padding:12px
  }
}
@media(max-width:900px) {
  .shell {
    width:calc(100% - 48px)
  }
  .workspace {
    grid-template-columns:1fr
  }
  .summary-card {
    position:static
  }
  .steps {
    gap:12px
  }
  .steps li:not(:last-child)::after {
    display:none
  }
  .pix-layout {
    grid-template-columns:200px minmax(0,1fr)
  }
}
@media(max-width:650px) {
  /* Phones only: after a choice the picker shrinks to the chosen service. */
  .service-toggle {
    cursor:pointer
  }
  .service-toggle[aria-expanded=false] .service-toggle-hint {
    display:inline
  }
  .service-grid[data-collapsed] {
    grid-template-columns:1fr
  }
  .service-grid[data-collapsed] .service-card:not(:has(input:checked)) {
    display:none
  }
  .service-grid[data-collapsed] .service-card {
    align-items:center;
    padding-block:12px
  }
  .service-grid[data-collapsed] .service-card small {
    display:none
  }
  .service-grid[data-collapsed] .service-card-copy {
    display:flex;
    flex:1;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    column-gap:12px
  }
  .shell {
    width:calc(100% - 40px)
  }
  .shell {
    padding-top:24px
  }
  .eyebrow {
    font-size:10px
  }
  .steps {
    display:block;
    margin-bottom:12px
  }
  /* One line instead of five markers: "Etapa 3 de 5 · Remetente". */
  .steps li:not([aria-current]) {
    display:none
  }
  .steps li[aria-current] .step-marker {
    display:none
  }
  .steps li[aria-current] .step-label::before {
    content:"Etapa " attr(data-step-number) " de 5 · ";
    color:var(--secondary);
    font-weight:500
  }
  .steps li {
    display:flex;
    gap:0;
    font-size:13px;
    font-weight:600
  }
  .steps li::after {
    display:none!important
  }
  .step-marker {
    width:28px
  }
  .shell {
    padding-top:16px
  }
  .page-heading {
    margin-bottom:16px
  }
  .page-heading .eyebrow {
    display:none
  }
  .page-heading h1 {
    font-size:24px
  }
  .page-heading>p {
    font-size:14px;
    margin-top:6px
  }
  /* While typing, the form owns the screen; chrome returns when the keyboard closes. */
  .keyboard-open footer,
  .keyboard-open .steps,
  .keyboard-open .page-heading>p {
    display:none
  }
  .panel {
    padding:20px 16px
  }
  .service-grid {
    grid-template-columns:1fr;
    gap:8px
  }
  .service-card {
    padding:12px;
    gap:10px
  }
  .service-card input {
    width:16px;
    height:16px
  }
  .service-card strong {
    font-size:15px
  }
  .service-card small {
    font-size:13px;
    line-height:1.4
  }
  .service-card b {
    font-size:12px
  }
  .modality-choice {
    padding:0 14px 12px 44px
  }
  .modality-option {
    min-height:44px
  }
  .variant-grid,.additional-grid {
    grid-template-columns:1fr
  }
  .variant-card,.additional-card {
    padding:14px
  }
  .variant-card strong {
    font-size:14px
  }
  .counter {
    font-size:11px
  }
  .party-row-primary {
    grid-template-columns:1fr
  }
  .party-row-primary .field-document {
    max-width:15.5rem
  }
  .party-row-location {
    grid-template-columns:9rem minmax(0,1fr);
    gap:12px
  }
  .party-row-address {
    grid-template-columns:minmax(0,1fr) 6.5rem;
    gap:12px
  }
  .party-row-details {
    grid-template-columns:1fr 1fr;
    gap:12px
  }
  .address-row,.party-grid {
    gap:16px
  }
  .summary-card {
    padding:20px
  }
  .summary-reference strong {
    font-size:24px
  }
  .review-parties {
    grid-template-columns:1fr;
    gap:20px
  }
  .draft-toolbar {
    align-items:flex-start;
    flex-direction:column
  }
  .draft-toolbar>div {
    width:100%
  }
  .draft-toolbar .button {
    flex:1
  }
  .draft-viewer iframe {
    height:400px
  }
  .pix-layout {
    display:flex;
    flex-direction:column-reverse
  }
  .pix-layout>div {
    width:100%
  }
  .pix-layout img {
    width:180px;
    margin:16px auto 0
  }
  .pix-details>div {
    align-items:center
  }
  .pix-details dd {
    font-size:14px
  }
  .delivery-record {
    flex-direction:column;
    gap:6px
  }
  .delivery-record strong {
    text-align:left
  }
  #documents {
    flex-direction:column
  }
  .narrow {
    margin:0
  }
  .narrow h1 {
    font-size:30px
  }
  .narrow summary {
    font-size:14px
  }
}
@media(max-width:360px) {
  .shell {
    width:calc(100% - 32px)
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important
  }
}
.letter-status {
  display:flex;
  gap:8px;
  align-items:flex-start;
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:8px;
  background:#EAF7F1;
  color:var(--success);
  font-size:14px;
  font-weight:500
}
.letter-status::before {
  content:"✓";
  font-weight:700
}
.letter-status.is-warning {
  background:#FFF6EC;
  color:var(--warning)
}
.letter-status.is-warning::before {
  content:"!";
  display:inline-grid;
  place-items:center;
  flex:none;
  width:18px;
  height:18px;
  margin-top:2px;
  border:1.5px solid currentColor;
  border-radius:50%;
  font-size:12px;
  line-height:1
}
.additional-card.is-locked {
  cursor:default
}
.additional-card.is-locked [data-letter-price] {
  color:var(--secondary);
  font-weight:500
}
/* Add-on cards: price shares the title row so each card stays two lines tall. */
.additional-card-copy {
  flex:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:12px;
  align-items:baseline
}
.additional-card-copy strong {
  grid-column:1;
  grid-row:1
}
.additional-card-copy b {
  grid-column:2;
  grid-row:1;
  margin-top:0;
  white-space:nowrap
}
.additional-card-copy .option-description,.additional-card-copy .option-receives {
  grid-column:1 / -1;
  margin-top:2px
}
.letter-status {
  min-height:42px;
  align-items:center
}
.required-mark {
  margin-left:2px;
  color:var(--error)
}
.required-note {
  margin:0 0 12px;
  font-size:13px;
  color:var(--secondary)
}
.required-note span[aria-hidden] {
  color:var(--error)
}
.party-row-details {
  align-items:end
}

/* Mobile: summary + primary action pinned to the bottom on every editor step. */
@media(max-width:650px) {
  .editor-summary-card {
    display:none
  }
  #editor-view .editor-mobile-bar {
    position:fixed;
    left:0;
    right:0;
    bottom:var(--keyboard-offset,0px);
    z-index:20;
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    background:#fff;
    border-top:1px solid var(--border);
    box-shadow:0 -6px 20px rgb(0 49 107 / .08)
  }
  body:has(#editor-view:not([hidden])) {
    padding-bottom:84px
  }
  .mobile-summary-toggle {
    flex:1;
    min-width:0;
    display:grid;
    gap:0;
    padding:2px 0;
    border:0;
    background:none;
    color:var(--navy);
    font:inherit;
    text-align:left;
    cursor:pointer
  }
  .mobile-summary-line {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
    color:var(--secondary)
  }
  .mobile-summary-toggle strong {
    font-size:16px;
    font-variant-numeric:tabular-nums
  }
  .mobile-summary-more {
    font-size:12px;
    font-weight:600;
    color:var(--action);
    text-decoration:underline
  }
  #editor-mobile-action {
    flex:none;
    min-height:48px;
    padding:0 20px
  }
}
.summary-sheet-body .sheet-step {
  margin:0 0 12px;
  font-size:13px;
  color:var(--secondary)
}
.summary-sheet-body .sheet-service {
  display:grid;
  gap:2px;
  margin:0 0 16px
}
.summary-sheet-body .sheet-service span {
  white-space:pre-line;
  color:var(--secondary);
  font-size:14px
}
.summary-sheet-body dl {
  display:grid;
  gap:8px;
  margin:0 0 16px;
  padding-top:12px;
  border-top:1px solid var(--border)
}
.summary-sheet-body dl div {
  display:flex;
  justify-content:space-between;
  gap:12px
}
.summary-sheet-body dt {
  color:var(--secondary)
}
.summary-sheet-body dd {
  margin:0;
  font-weight:600;
  text-align:right;
  min-width:0;
  overflow-wrap:anywhere
}
@media(max-width:650px) {
  .summary-sheet {
    width:100%;
    max-width:none;
    margin:auto 0 0;
    border-radius:16px 16px 0 0;
    padding:20px 16px calc(20px + env(safe-area-inset-bottom))
  }
}
@media(max-width:650px) {
  #order-view .order-mobile-bar {
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:20;
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    background:#fff;
    border-top:1px solid var(--border);
    box-shadow:0 -6px 20px rgb(0 49 107 / .08)
  }
  #order-view .order-mobile-bar .mobile-summary-toggle {
    cursor:default
  }
  #mobile-action {
    flex:none;
    min-height:48px;
    padding:0 18px
  }
  body:has(#order-view:not([hidden])) {
    padding-bottom:84px
  }
}
@media(max-width:650px) {
  /* The bottom bar carries the primary action; avoid a duplicate in the summary card. */
  #order-view #review-actions .button-row {
    display:none
  }
}
@media(max-width:650px) {
  #order-view #copy-pix {
    display:none
  }
}
/* Add-on cards in the same list always share one height, whatever the text or selection. */
/* Each add-on keeps its own height: opening the Físico/Digital choice must not stretch the other cards. */
.additional-grid {
  align-items:start
}
.party-grid input[data-mask=cpf-cnpj][data-valid] {
  padding-right:36px;
  background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2313795B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat right 12px center
}

/* Mobile flow: the bottom bar holds back, summary and next; the page footer would only sit behind it. */
.mobile-back {
  display:none
}
@media(max-width:650px) {
  .mobile-back {
    flex:none;
    display:grid;
    place-items:center;
    width:48px;
    height:48px;
    padding:0;
    border:1px solid var(--control);
    border-radius:8px;
    background:#fff;
    color:var(--action);
    cursor:pointer
  }
  .mobile-back[hidden] {
    display:none
  }
  .mobile-back svg {
    width:22px;
    height:22px
  }
  .mobile-back:focus-visible {
    outline:2px solid var(--action);
    outline-offset:2px
  }
  #editor-view .wizard-footer {
    display:none
  }
  body:has(#editor-view:not([hidden])) footer,body:has(#order-view:not([hidden])) footer {
    display:none
  }
  #editor-view .editor-mobile-bar,#order-view .order-mobile-bar {
    gap:10px;
    padding-left:12px;
    padding-right:12px
  }
}
/* Review: one card per part of the order, each with an icon, a colour and its own edit link. */
.review-parties {
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px
}
.review-item {
  display:grid;
  gap:2px;
  align-content:start;
  padding:14px 16px;
  border:1px solid var(--border);
  border-left:4px solid var(--review-accent,var(--action));
  border-radius:10px;
  background:#fff
}
.review-item header {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:4px
}
.review-icon,.review-parties .review-icon {
  display:inline-grid;
  place-items:center;
  flex:none;
  width:30px;
  height:30px;
  border-radius:8px;
  background:var(--review-soft,var(--blue-soft));
  color:var(--review-accent,var(--action))
}
.review-icon svg {
  width:17px;
  height:17px
}
.review-parties .review-role {
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--review-accent,var(--action))
}
.review-item strong {
  font-size:17px;
  line-height:1.35;
  overflow-wrap:anywhere
}
.review-parties .review-item p {
  margin:0;
  font-size:14px;
  line-height:1.45;
  color:var(--secondary);
  overflow-wrap:anywhere
}
.review-service {
  --review-accent:#5B3FD0;
  --review-soft:#F1EDFF
}
.review-sender {
  --review-accent:var(--action);
  --review-soft:var(--blue-soft)
}
.review-recipient {
  --review-accent:#B4560C;
  --review-soft:#FFF3E6
}
.review-edit {
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:36px;
  margin-left:auto;
  padding:0 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--action);
  font:inherit;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  cursor:pointer
}
.review-edit svg {
  width:14px;
  height:14px
}
.review-edit:focus-visible {
  outline:2px solid var(--action);
  outline-offset:2px
}
#draft-heading {
  display:flex;
  align-items:center;
  gap:8px
}
.draft-toolbar>div {
  gap:8px
}
.edit-order {
  margin-top:12px
}
@media(max-width:650px) {
  .draft-toolbar,.draft-toolbar>div {
    flex-direction:row;
    align-items:center;
    width:auto
  }
  .draft-toolbar .review-edit {
    flex:none
  }
  /* Phones: per-card edit links and the pencil in the bottom bar replace the global edit button,
     and the bar already shows service and total, so the side summary keeps only consent and links. */
  #order-view #edit-order {
    display:none
  }
  /* On phones the bottom bar is the summary; it opens the full one in a sheet. Groups keep the card for their consent checkbox. */
  #order-view .order-summary:not(.sheet-summary):not([data-group="true"]) {
    display:none
  }
  #pix-card .check-payment,#pix-card #renew-payment {
    width:100%
  }
}
/* Consent is the last decision before paying: give it its own highlighted box. */
#review-actions .consent {
  margin:0 0 16px;
  padding:12px 14px;
  border:1px solid var(--action);
  border-radius:10px;
  background:var(--blue-soft);
  font-size:14px;
  cursor:pointer
}
#review-actions .consent:has(input:checked) {
  border-color:var(--success);
  background:#EAF7F1
}
#review-actions .consent input {
  width:22px;
  height:22px;
  flex:none;
  margin-top:1px;
  accent-color:var(--success)
}
@media(max-width:650px) {
  #review-actions .consent {
    margin-top:0
  }
}
.field-title {
  display:inline-flex;
  align-items:center;
  gap:6px
}
.field-title svg {
  width:18px;
  height:18px;
  color:var(--action)
}
/* Bottom bar on phones: a one-line summary on top, then big Back and Next buttons. */
@media(max-width:650px) {
  #editor-view .editor-mobile-bar,#order-view .order-mobile-bar {
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    grid-template-areas:"summary summary" "back action";
    gap:8px 10px;
    padding-top:8px
  }
  #order-view .order-mobile-bar:not(:has(#mobile-edit:not([hidden]))) {
    grid-template-areas:"summary summary" "action action"
  }
  #editor-view .editor-mobile-bar .mobile-summary-toggle,#order-view .order-mobile-bar .mobile-summary-toggle {
    grid-area:summary;
    display:flex;
    align-items:center;
    gap:8px;
    min-height:44px;
    padding:0
  }
  .editor-mobile-bar .mobile-summary-line,.order-mobile-bar .mobile-summary-line {
    flex:1;
    min-width:0
  }
  .editor-mobile-bar .mobile-summary-toggle strong,.order-mobile-bar .mobile-summary-toggle strong {
    flex:none;
    font-size:15px
  }
  .mobile-summary-more {
    display:inline-grid;
    place-items:center;
    flex:none;
    width:24px;
    height:24px;
    text-decoration:none
  }
  .mobile-summary-more svg {
    width:18px;
    height:18px
  }
  #editor-mobile-back,#mobile-edit {
    grid-area:back
  }
  #editor-mobile-action,#mobile-action {
    grid-area:action;
    width:100%
  }
  body:has(#editor-view:not([hidden])),body:has(#order-view:not([hidden])) {
    padding-bottom:132px
  }
}
@media(max-width:650px) {
  /* The step is already in the bottom bar; a second indicator at the top only flickered with the keyboard. */
  .steps {
    display:none!important
  }
}
.payment-method {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  font-size:14px
}
.payment-method svg {
  width:18px;
  height:18px;
  color:var(--action)
}
.consent-note {
  margin:10px 0 0;
  font-size:12px;
  line-height:1.5;
  color:var(--secondary)
}
/* Pix: a live "waiting" banner with a moving envelope (brand arrow) and a countdown clock. */
.pix-waiting {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"track track" "copy timer";
  gap:10px 16px;
  align-items:center;
  margin:0 0 20px;
  padding:14px 16px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--navy),var(--action));
  color:#fff
}
.pix-waiting-track {
  grid-area:track;
  position:relative;
  height:28px;
  border-bottom:2px dashed rgb(255 255 255 / .35)
}
.pix-waiting-track::after {
  content:"";
  position:absolute;
  right:0;
  bottom:-7px;
  border:6px solid transparent;
  border-left:10px solid var(--orange)
}
.pix-waiting-envelope {
  position:absolute;
  bottom:4px;
  left:0;
  display:grid;
  place-items:center;
  width:28px;
  height:22px;
  border-radius:5px;
  background:#fff;
  color:var(--action);
  animation:pix-envelope 2.8s ease-in-out infinite
}
.pix-waiting-envelope svg {
  width:16px;
  height:16px
}
@keyframes pix-envelope {
  0% { left:0; opacity:0 }
  12% { opacity:1 }
  80% { opacity:1 }
  100% { left:calc(100% - 40px); opacity:0 }
}
.pix-waiting-copy {
  grid-area:copy;
  display:grid;
  gap:2px;
  min-width:0
}
.pix-waiting-copy strong {
  font-size:16px
}
.pix-waiting-copy strong::after {
  content:"";
  display:inline-block;
  width:1.2em;
  text-align:left;
  animation:pix-dots 1.4s steps(4,end) infinite
}
@keyframes pix-dots {
  0% { content:"" }
  25% { content:"." }
  50% { content:".." }
  75% { content:"..." }
}
.pix-waiting-copy small {
  font-size:13px;
  color:rgb(255 255 255 / .85)
}
.pix-timer {
  grid-area:timer;
  display:grid;
  justify-items:end;
  gap:0
}
.pix-timer small {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:rgb(255 255 255 / .8)
}
.pix-timer strong {
  font-size:24px;
  font-variant-numeric:tabular-nums;
  line-height:1.1
}
.pix-waiting.is-expired {
  background:var(--warning)
}
.pix-waiting.is-expired .pix-waiting-track,.pix-waiting.is-expired .pix-waiting-copy strong::after {
  display:none
}
.pix-waiting.is-expired .pix-timer strong {
  font-size:15px
}
.check-payment {
  gap:8px
}
.check-payment svg {
  width:18px;
  height:18px
}
@media(prefers-reduced-motion:reduce) {
  .pix-waiting-envelope,.pix-waiting-copy strong::after {
    animation:none
  }
  .pix-waiting-envelope {
    left:calc(50% - 14px)
  }
}
#letter-status {
  margin:16px 0 0
}
#letter-status:not([hidden])+#ecarta-options {
  margin-top:20px
}
/* Motion: short "pop-in" (fade + slight grow) when a block appears, and smooth state changes.
   CSS restarts an animation each time an element goes from hidden to shown, so no JS is needed. */
@keyframes sb-pop-in {
  from { opacity:0; transform:scale(.97) }
  to { opacity:1; transform:none }
}
@keyframes sb-rise-in {
  from { transform:translateY(8px) }
  to { transform:none }
}
#telegram-options,#ecarta-options,#letter-status,#letter-format-choice,
#pix-waiting,.review-item,.step-summary,.field-locality .locality-value[data-known=true] {
  animation:sb-pop-in .26s cubic-bezier(.2,.8,.2,1)
}
.wizard-panel:not([hidden]),#order-view .panel:not([hidden]) {
  animation:sb-rise-in .28s cubic-bezier(.2,.8,.2,1)
}
@keyframes sb-pop-again {
  from { opacity:.4; transform:scale(.97) }
  to { opacity:1; transform:none }
}
#letter-status.is-changing {
  animation:sb-pop-again .26s cubic-bezier(.2,.8,.2,1)
}
.service-card,.additional-option,.additional-card,.modality-option,.letter-status,.review-item,#review-actions .consent,input[data-mask] {
  transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease,color .2s ease
}
.additional-card input,.service-card input {
  transition:transform .15s ease
}
.additional-card input:checked,.service-card input:checked {
  transform:scale(1.08)
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important
  }
}

/* Desktop back button: a quiet outlined control with a chevron instead of an underlined link. */
.wizard-footer {
  padding-top:4px
}
.back-button {
  gap:6px;
  min-height:44px;
  padding:10px 18px 10px 12px;
  color:var(--navy);
  border-color:var(--control);
  transition:background-color .2s ease,border-color .2s ease,color .2s ease
}
.back-button svg {
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.25;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition:transform .2s ease
}
.back-button:hover {
  color:var(--action);
  border-color:var(--action);
  background:var(--blue-soft)
}
.back-button:hover svg {
  transform:translateX(-2px)
}
.back-button:focus-visible {
  outline:2px solid var(--action);
  outline-offset:2px
}

/* Message import: one button and one hint line; dragging a file over the step highlights the field. */
.message-import {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px
}
/* Starts sized to the free screen space on desktop and small on phones, then grows with the text (fitMessageField). */
#message {
  resize:none;
  overflow:hidden;
  min-height:clamp(240px, calc(100dvh - 420px), 560px)
}
.message-import-button {
  flex:none;
  gap:8px;
  min-height:44px;
  padding:10px 16px;
  color:var(--navy);
  border-color:var(--control);
  transition:background-color .2s ease,border-color .2s ease,color .2s ease
}
.message-import-button:hover {
  color:var(--action);
  border-color:var(--action);
  background:var(--blue-soft)
}
.message-import-button svg {
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round
}
.message-import-button:disabled {
  opacity:.7;
  cursor:progress
}
.message-import-hint {
  margin:0;
  font-size:13px;
  line-height:1.45;
  color:var(--secondary)
}
.message-undo {
  min-height:0;
  padding:0;
  font-size:13px
}
.wizard-panel[data-editor-step="message"] .message-field {
  position:relative
}
.wizard-panel.is-dragging #message {
  border-color:var(--action);
  border-style:dashed;
  background:var(--blue-soft);
  box-shadow:0 0 0 3px rgb(0 93 193 / .15)
}
.wizard-panel.is-dragging .message-field::after {
  content:"Solte o arquivo para importar o texto";
  position:absolute;
  inset:auto 0 0;
  top:32px;
  display:grid;
  place-items:center;
  font-weight:600;
  color:var(--action);
  z-index:1;
  pointer-events:none;
  animation:sb-pop-in .2s cubic-bezier(.2,.8,.2,1)
}
@media (pointer:coarse) {
  .drag-hint {
    display:none
  }
}
.wizard-panel.is-dragging #message::placeholder {
  color:transparent
}
.wizard-panel.is-importing #message {
  opacity:.6
}
@media (max-width:650px) {
  .message-import {
    flex-direction:column;
    align-items:stretch;
    gap:6px
  }
  .message-import-hint {
    font-size:12px
  }
  #message {
    min-height:168px
  }
}

/* Telegram add-ons as a linked pair: copy + confirmation = text and delivery documented. */
:root {
  --legal:#5B3FD0;
  --legal-soft:#F1EDFF
}
#telegram-additional-grid.is-paired {
  display:block
}
.legal-pair {
  display:grid;
  border-radius:14px;
  transition:background-color .25s ease,box-shadow .25s ease,padding .25s ease
}
.legal-pair.is-linked {
  padding:10px;
  background:linear-gradient(180deg,var(--legal-soft),var(--blue-soft));
  box-shadow:0 0 0 2px var(--legal)
}
.legal-link {
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:48px;
  padding:0 6px;
  border:0;
  background:none;
  color:var(--secondary);
  font:600 13px/1.2 inherit;
  cursor:pointer
}
.legal-link-line {
  flex:1;
  border-top:2px dashed #B7C4D3;
  transition:border-color .25s ease
}
.legal-link-icon {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:2px dashed #B7C4D3;
  border-radius:50%;
  background:var(--surface);
  transition:transform .25s ease,background-color .25s ease,border-color .25s ease,color .25s ease
}
.legal-link-icon svg {
  width:18px;
  height:18px
}
.legal-link-icon .is-on {
  display:none
}
.legal-link:hover .legal-link-icon {
  border-color:var(--legal);
  color:var(--legal)
}
.legal-link[aria-pressed=true] {
  color:var(--legal)
}
.legal-link[aria-pressed=true] .legal-link-line {
  border-top-style:solid;
  border-color:var(--legal)
}
.legal-link[aria-pressed=true] .legal-link-icon {
  border-style:solid;
  border-color:var(--legal);
  background:var(--legal);
  color:white;
  transform:rotate(-45deg) scale(1.08)
}
.legal-link[aria-pressed=true] .is-on {
  display:block
}
.legal-link[aria-pressed=true] .is-off {
  display:none
}
.legal-link:focus-visible {
  outline:2px solid var(--legal);
  outline-offset:2px;
  border-radius:8px
}
.legal-badge {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:10px;
  padding:12px 14px;
  border-radius:10px;
  background:var(--legal);
  color:white;
  animation:sb-pop-in .3s cubic-bezier(.2,.8,.2,1)
}
.legal-badge[hidden] {
  display:none
}
.legal-badge svg {
  flex:none;
  width:22px;
  height:22px
}
.legal-badge strong {
  display:block;
  font-size:14px
}
.legal-badge small {
  display:block;
  font-size:13px;
  line-height:1.45;
  color:rgb(255 255 255 / .88)
}
.legal-upsell {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  padding:10px 12px;
  border-radius:10px;
  background:var(--legal-soft);
  color:var(--legal);
  font-size:13px;
  font-weight:600;
  animation:sb-pop-in .26s cubic-bezier(.2,.8,.2,1)
}
.legal-upsell[hidden] {
  display:none
}
.legal-upsell-add {
  flex:none;
  min-height:40px;
  padding:0 14px;
  border:0;
  border-radius:8px;
  background:var(--legal);
  color:white;
  font:600 13px/1 inherit;
  cursor:pointer
}
.legal-upsell-add:focus-visible {
  outline:2px solid var(--legal);
  outline-offset:2px
}

/* After payment: same visual language as the editor (icons, coloured role cards, soft cards, pop-in).
   The heading becomes a status hero whose tone follows the order state. */
.page-heading.order-hero[data-tone] {
  position:relative;
  padding:24px 28px;
  border-radius:16px;
  color:#fff;
  background:linear-gradient(135deg,var(--navy),var(--action));
  box-shadow:0 12px 32px rgb(0 49 107 / .16);
  animation:sb-pop-in .35s cubic-bezier(.2,.8,.2,1)
}
.order-hero[data-tone=progress] {
  background:linear-gradient(135deg,#0B3F7A,#145FB0)
}
.order-hero[data-tone=warning] {
  background:linear-gradient(135deg,#6B3500,#99560A)
}
.order-hero[data-tone=error] {
  background:linear-gradient(135deg,#7A1A12,#B42318)
}
.order-hero[data-tone=refund] {
  background:linear-gradient(135deg,#3A2896,#5B3FD0)
}
.order-hero[data-tone] .eyebrow {
  display:none
}
.order-hero[data-tone] h1 {
  color:#fff;
  margin-top:12px
}
.order-hero[data-tone]>p,.order-hero[data-tone] #state-message {
  color:rgb(255 255 255 / .88);
  margin-top:8px
}
.hero-badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 12px;
  border-radius:999px;
  background:rgb(255 255 255 / .16);
  font-size:12px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase
}
.hero-badge svg {
  width:14px;
  height:14px
}
.hero-meta {
  display:flex;
  flex-wrap:wrap;
  gap:6px 18px;
  margin:14px 0 0;
  padding:0;
  list-style:none;
  font-size:14px;
  color:rgb(255 255 255 / .9)
}
.hero-meta strong {
  color:#fff
}
.order-hero:not([data-tone]) .hero-badge,.order-hero:not([data-tone]) .hero-meta {
  display:none
}

/* Progress: a numbered rail with icons, horizontal on wide screens. */
#progress-card h2,#sent-card h2,#documents-card h2 {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 16px;
  font-size:18px
}
.card-title-icon {
  display:inline-grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:9px;
  background:var(--blue-soft);
  color:var(--action)
}
.card-title-icon svg {
  width:18px;
  height:18px
}
#order-progress.order-rail {
  display:grid;
  grid-template-columns:repeat(var(--rail-count,3),minmax(0,1fr));
  gap:0;
  margin:0;
  padding:0
}
#order-progress.order-rail li {
  position:relative;
  display:grid;
  justify-items:center;
  gap:6px;
  padding:0 6px;
  text-align:center
}
#order-progress.order-rail li::before {
  content:"";
  position:absolute;
  top:19px;
  left:calc(-50% + 22px);
  right:calc(50% + 22px);
  height:3px;
  border-radius:3px;
  background:var(--border)
}
#order-progress.order-rail li:first-child::before {
  display:none
}
#order-progress.order-rail li.done::before,#order-progress.order-rail li.current::before {
  background:var(--success)
}
#order-progress.order-rail li>span {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:50%;
  border:2px solid var(--border);
  background:#fff;
  color:var(--control);
  font-weight:700
}
#order-progress.order-rail li>span svg {
  width:18px;
  height:18px
}
#order-progress.order-rail li.done>span {
  border-color:var(--success);
  background:#E7F5EF;
  color:var(--success)
}
#order-progress.order-rail li.current>span {
  border-color:var(--action);
  color:var(--action);
  box-shadow:0 0 0 4px rgb(0 93 193 / .14);
  animation:rail-pulse 1.6s ease-in-out infinite
}
#order-progress.order-rail strong {
  font-size:14px
}
#order-progress.order-rail small {
  font-size:12px;
  color:var(--secondary)
}
@keyframes rail-pulse {
  50% { box-shadow:0 0 0 8px rgb(0 93 193 / .06) }
}

/* What was sent: the review cards, read-only. */
#sent-parties {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:12px;
  margin-bottom:0
}

/* Tracking codes: one card per code, with what it tracks. */
.save-codes {
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:10px;
  background:#FFF6E8;
  color:var(--warning);
  font-size:14px;
  font-weight:500;
  line-height:1.45
}
.save-codes svg {
  flex:none;
  width:18px;
  height:18px;
  margin-top:1px
}
#delivery-records {
  display:grid;
  gap:10px
}
.code-card {
  --code-accent:var(--action);
  display:grid;
  gap:4px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-left:4px solid var(--code-accent);
  border-radius:12px;
  background:#fff;
  animation:sb-pop-in .3s cubic-bezier(.2,.8,.2,1) both
}
.code-card.code-copy {
  --code-accent:var(--legal)
}
.code-card.code-confirmation {
  --code-accent:#B4560C
}
.code-card .code-label {
  font-size:12px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--code-accent)
}
.code-card code {
  font:700 21px/1.25 ui-monospace,"SFMono-Regular",Menlo,monospace;
  letter-spacing:.04em;
  color:var(--navy);
  overflow-wrap:anywhere
}
.code-card code a {
  color:var(--action);
  font-weight:700;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:5px
}
.code-card code a:hover {
  text-decoration-thickness:2px
}
.code-card code a:focus-visible {
  outline:2px solid var(--focus);
  outline-offset:3px;
  border-radius:4px
}
.code-card p {
  margin:0;
  font-size:14px;
  line-height:1.45;
  color:var(--secondary)
}
.code-card.is-pending code {
  font:600 15px/1.4 inherit;
  letter-spacing:0;
  color:var(--secondary)
}
.code-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px
}
.chip {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:38px;
  padding:0 14px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#fff;
  color:var(--action);
  font:600 14px/1 inherit;
  text-decoration:none;
  cursor:pointer;
  transition:border-color .2s ease,background-color .2s ease
}
.chip:hover {
  border-color:var(--action);
  background:var(--blue-soft)
}
.chip svg {
  width:16px;
  height:16px
}
.copy-all {
  justify-self:start
}
.chip.is-done {
  border-color:var(--success);
  color:var(--success)
}

/* Documents: a list of rows with an icon, like the add-on cards. */
#documents {
  display:grid;
  gap:8px;
  margin-top:14px
}
#documents a.doc-row {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:56px;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  color:var(--navy);
  text-decoration:none;
  font-weight:600;
  transition:border-color .2s ease,background-color .2s ease
}
#documents a.doc-row:hover {
  border-color:var(--action);
  background:var(--blue-soft)
}
.doc-row .doc-icon {
  display:inline-grid;
  place-items:center;
  flex:none;
  width:36px;
  height:36px;
  border-radius:10px;
  background:var(--blue-soft);
  color:var(--action)
}
.doc-row .doc-icon svg {
  width:18px;
  height:18px
}
.doc-row small {
  display:block;
  font-weight:400;
  font-size:13px;
  color:var(--secondary)
}
.doc-row .doc-go {
  margin-left:auto;
  color:var(--control)
}

@media (max-width:650px) {
  .page-heading.order-hero[data-tone] {
    padding:20px;
    border-radius:14px
  }
  .order-hero[data-tone] h1 {
    font-size:26px
  }
  #order-progress.order-rail strong {
    font-size:13px
  }
  .code-card code {
    font-size:19px
  }
}
@media (prefers-reduced-motion:reduce) {
  #order-progress.order-rail li.current>span {
    animation:none
  }
}

/* Pix: three short steps with icons, in the same card style as the editor. */
.pix-steps {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:20px 0 0;
  padding:0;
  list-style:none;
  counter-reset:pix
}
.pix-steps li {
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--soft);
  font-size:14px;
  font-weight:600;
  line-height:1.35
}
.pix-steps span {
  display:inline-grid;
  place-items:center;
  flex:none;
  width:34px;
  height:34px;
  border-radius:10px;
  background:var(--blue-soft);
  color:var(--action)
}
.pix-steps svg {
  width:18px;
  height:18px
}
@media (max-width:650px) {
  .pix-steps {
    grid-template-columns:1fr;
    gap:8px
  }
  .pix-steps li {
    padding:10px 12px
  }
}

.button-spinner {
  width:1em;
  height:1em;
  flex:none;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:button-spin .8s linear infinite
}
@keyframes button-spin { to { transform:rotate(360deg) } }
@media (prefers-reduced-motion: reduce) {
  .button-spinner { animation-duration:2.4s }
}
button[aria-busy="true"] { cursor:progress }

.payment-methods { border: 0; padding: 0; margin: 16px 0; min-width: 0; }
.payment-methods legend { font-weight: 650; margin-bottom: 8px; }
.payment-option { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; align-items: start; border: 1px solid var(--line, #d7dde5); border-radius: 12px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.payment-option:has(input:checked) { border-color: #f47721; box-shadow: inset 0 0 0 1px #f47721; }
.payment-option input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: #f47721; }
.payment-option span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.payment-option small { flex-basis: 100%; color: var(--muted, #536276); }
#external-payment-card h2 { margin-top: 0; }
#external-payment-card .button { margin-top: 12px; }

/* Order summary: one component for every phase, aligned with the service/sender/recipient cards. */
.order-summary {
  --summary-accent:var(--action);
  --summary-soft:var(--blue-soft);
  padding:0 0 20px;
  overflow:hidden;
  display:grid;
  align-content:start;
  gap:0
}
.order-summary > * { margin:0; padding-inline:20px }
.order-summary-head {
  display:flex;
  align-items:center;
  gap:8px;
  padding-block:14px 0;
  border-top:4px solid var(--summary-accent)
}
.order-summary-icon {
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:8px;
  background:var(--summary-soft);
  color:var(--summary-accent);
  flex:none
}
.order-summary-icon svg { width:16px; height:16px }
.order-summary-role {
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--summary-accent)
}
.order-summary .order-summary-title {
  font-size:17px;
  font-weight:700;
  line-height:1.3;
  color:var(--navy);
  padding-top:12px
}
.order-summary-subtitle {
  font-size:13px;
  line-height:1.45;
  color:var(--secondary);
  padding-top:2px
}
.order-summary-lines {
  list-style:none;
  display:grid;
  gap:8px;
  padding-block:14px;
  margin-top:14px !important;
  border-top:1px solid var(--border)
}
.order-summary-lines li {
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
  color:var(--navy)
}
.order-summary-lines li strong { font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap }
.order-summary-lines li.is-extra { color:var(--secondary) }
.order-summary .order-summary-parties,
.order-summary .order-summary-meta {
  display:grid;
  gap:8px;
  padding-block:14px;
  border-top:1px solid var(--border);
  margin:0
}
.order-summary .order-summary-parties:not(:has(> div:not([hidden]))) { display:none }
.order-summary .order-summary-parties > div,
.order-summary .order-summary-meta > div {
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:8px;
  padding:0;
  align-items:baseline
}
.order-summary .order-summary-meta > div { grid-template-columns:96px minmax(0,1fr) }
.order-summary dt { font-size:12px; font-weight:600; color:var(--secondary) }
.order-summary dd { margin:0; text-align:left; font-size:14px; color:var(--navy); overflow-wrap:anywhere }
.order-summary-meta dd { font-weight:600; font-variant-numeric:tabular-nums }
.order-summary-total {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  padding-block:14px 4px;
  border-top:1px solid var(--border)
}
.order-summary-total span { font-size:14px; font-weight:600; color:var(--navy) }
.order-summary-total strong,
.order-summary #summary-total {
  font-size:22px;
  font-weight:700;
  line-height:1.2;
  color:var(--navy);
  font-variant-numeric:tabular-nums;
  white-space:nowrap
}
.order-summary-note { font-size:12px; line-height:1.45; color:var(--secondary); padding-bottom:4px }
.order-summary-footer,
.order-summary #review-actions,
.order-summary > .button { margin-top:12px }
#turnstile-widget { display:flex; justify-content:center }
.order-summary-footer > #turnstile-controls { margin-bottom:8px }
.order-summary-footer #turnstile-widget { margin-inline:-12px }
#turnstile-error { margin:0 }
#turnstile-retry { min-height:44px; padding-inline:0 }
.order-summary #review-actions { display:grid; gap:10px }
.order-summary #review-actions[hidden] { display:none }
.order-summary #receipt-link, .order-summary #save-link { margin-inline:20px; width:calc(100% - 40px); padding-inline:12px; white-space:nowrap }
.order-summary #save-link { margin-top:8px }
.order-summary .payment-method {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0;
  padding:0;
  border:0;
  background:none;
  font-size:14px;
  color:var(--secondary)
}
.order-summary .payment-method strong { display:inline-flex; align-items:center; gap:6px; color:var(--navy); font-weight:600 }
.order-summary .payment-method svg { width:16px; height:16px }
@media (max-width:900px) {
  .order-summary { position:static }
}
.order-summary dd span{display:block;font-weight:600}.order-summary dd small{display:block;font-size:12px;color:var(--secondary);margin-top:1px}
/* The editor summary lives in the bottom bar and its sheet on phones. */
@media(max-width:650px) {
  .order-summary.editor-summary-card { display:none }
  #editor-view .editor-mobile-bar:has(> #turnstile-controls:not([hidden])) {
    grid-template-areas:"summary summary" "verification verification" "back action"
  }
  .editor-mobile-bar > #turnstile-controls { grid-area:verification }
  body:has(#editor-view:not([hidden]) .editor-mobile-bar #turnstile-widget:not([hidden])) { padding-bottom:205px }
  body:has(#editor-view:not([hidden]) .editor-mobile-bar #turnstile-widget[data-size="compact"]:not([hidden])) { padding-bottom:280px }
  body:has(#editor-view:not([hidden]) .editor-mobile-bar #turnstile-error:not([hidden])) { padding-bottom:236px }
}

/* Summary inside the phone sheets: same component, without the card frame. */
.summary-sheet .sheet-summary { border:0; padding:0; overflow:visible; position:static }
.summary-sheet .sheet-summary > * { padding-inline:0 }
.summary-sheet .sheet-summary > :first-child { padding-top:0 }
.summary-sheet .sheet-summary .button { margin-top:14px; width:100% }
.mobile-consent { display:none }
@media(max-width:650px) {
  /* The consent row exists only while it is shown, so the bar does not grow an empty gap. */
  #order-view .order-mobile-bar:has(#mobile-consent:not([hidden])) { grid-template-areas:"summary summary" "consent consent" "back action" }
  #order-view .order-mobile-bar:has(#mobile-consent:not([hidden])):not(:has(#mobile-edit:not([hidden]))) { grid-template-areas:"summary summary" "consent consent" "action action" }
  #order-view .order-mobile-bar #mobile-summary-toggle { border:0; background:none; color:inherit; font:inherit; text-align:left; cursor:pointer; width:100% }
  .mobile-summary-chevron { width:18px; height:18px; color:var(--secondary); flex:none }
  .mobile-consent:not([hidden]) { display:block; grid-area:consent; margin:-4px 0 0; font-size:12px; line-height:1.4; color:var(--secondary) }
}
.order-summary > .payment-method { padding:8px 20px }
.summary-sheet .sheet-summary .payment-method { padding:10px 0 0 }

.order-summary > .queue-note, .summary-sheet-body > .queue-note {
  margin:12px 0 0; padding:12px 20px; background:var(--blue-soft); color:var(--secondary); font-size:14px;
}

.content-stack > .queue-note {
  margin:0; padding:12px 16px; border-radius:10px; background:var(--blue-soft); color:var(--secondary); font-size:14px;
}
