.tuda .flow-layout > *, .tuda .flow-layout .large-plan > span { min-width: 0; }
.tuda .large-plan { color: inherit; text-decoration: none; }
.tuda .large-plan .plan-gb { overflow-wrap: anywhere; }
.tuda .large-plan .plan-quantity { display: inline-flex; align-items: baseline; flex: none; white-space: nowrap; }
.tuda .large-plan .plan-price { flex-shrink: 0; }
.tuda .summary-card h2, .tuda .payment-panel h2 { margin: 0 0 1rem; font-size: 1.4rem; }
.tuda .summary-card .plan-details, .tuda .payment-panel .plan-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: .7rem;
  margin: 1.2rem 0;
  font-size: .875rem;
}
.tuda .flow-layout .plan-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.flow-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 8px;
}
.checkout-layout .promo-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.checkout-layout .promo-actions p { grid-column: 1 / -1; margin: 0 0 8px; }
.promo-actions p:empty { display: none; }
.promo-actions .promo-error { color: var(--error); }
@media (min-width: 761px) {
  .tuda .checkout-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.flow-actions form { display: flex; }
.tuda .flow-actions :is(.primary-button, .flow-secondary) {
  width: 100%;
  min-height: 46px;
  padding: 10px 7px;
  gap: 8px;
  font: 600 14px/1.25 TudaRoboto, Roboto, Arial, sans-serif;
  white-space: nowrap;
}
.tuda .promo-actions .flow-secondary { white-space: normal; text-align: center; margin: 0; }
.tuda .flow-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .75rem;
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--accent);
  background: var(--surface);
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}
.checkout-layout .flow-actions .change-plan { color: var(--ink); }
.tuda .flow-install-info { margin-top: 1.5rem; }
.tuda .flow-review .eyebrow { display: block; }
.tuda .flow-review .field-label { text-align: start; }
.tuda .flow-review .review-lines dt { color: var(--muted); }
.tuda .flow-review .review-lines dd { margin: 0; font-weight: 650; }
.tuda .flow-review input { max-width: 100%; }
.tuda .flow-invoice-status { display: grid; gap: .75rem; }
.tuda .esim-dashboard .receipt > .tile-icon { margin-bottom: .8rem; }
.tuda .esim-dashboard { margin: 0 auto; }
.tuda .esim-dashboard .receipt {
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--surface);
}
.tuda .esim-dashboard .receipt-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.tuda .esim-dashboard .receipt h2 { margin: .5rem 0 1rem; }
.tuda .esim-dashboard .plan-details {
  display: grid; gap: .65rem;
  font-size: .9rem;
  margin: 1rem 0;
}
.tuda .esim-dashboard .plan-details dt { color: var(--muted); }
.tuda .esim-dashboard .plan-details dd { margin: 0; font-weight: 600; text-align: right; }
.tuda .esim-install ol { margin: .75rem 0; padding-left: 1.5rem; list-style: decimal; }
.tuda .esim-install a { text-decoration: underline; }
.tuda .esim-setup .primary-button { width: fit-content; }
.tuda .flow-review .review-lines dd { max-width: 65%; text-align: right; overflow-wrap: anywhere; }
.tuda .esim-dashboard .note, .tuda .flow-install-info .note { margin: .7rem 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }

.flow-install-info .plan-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: .65rem;
  margin: .75rem 0;
}
.flow-install-info .plan-details dd { text-align: end; overflow-wrap: anywhere; }
.summary-card a.footnote {
  min-height: 44px;
  margin-top: 8px;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plan-disclosure summary { cursor: pointer; color: var(--primary); font-weight: 600; padding-block: .5rem; }
.plan-disclosure .coverage-countries { padding-block: .5rem; }
.plan-networks { border-block-start: 1px solid var(--line); }
.plan-networks ul { list-style: none; padding: .3rem 0 .75rem; }
.plan-networks li { padding-block: .15rem; }
.invoice-address { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.invoice-address .plain-input { flex: 1 1 20rem; min-width: 0; margin: 0; }
.invoice-address button { flex: 1 0 auto; cursor: pointer; }
.invoice-address [hidden] { display: none; }
#copy-address-status:not(:empty) { font-size: .875rem; margin-top: .5rem; }

@media print {
  body.tuda { background: white; color: black; }
  body.tuda header, body.tuda footer, body.tuda nav, body.tuda .skip-link,
  .print-installation button, .print-installation form, .print-installation .primary-button,
  .print-installation .back-button, .print-installation .mail-actions { display: none !important; }
  .print-installation { border: 0; max-width: none; break-inside: auto; }
  .print-installation .install-qr { break-inside: avoid; }
}

.plan-group { min-width: 0; margin-block-end: 12px; }
.plan-group > summary { cursor: pointer; font-weight: 650; padding-block: 12px; }
.plan-group .large-plan { margin-block-end: 8px; }
.plan-period > summary { padding: 10px 6px; cursor: pointer; }
.plan-period { border-top: 1px solid var(--line); }
.travel-agreement { display: flex; align-items: baseline; gap: .6rem; margin: .8rem 0; }
.travel-agreement input { flex: 0 0 auto; width: 1rem; height: 1rem; }
.payment-panel form > button { margin: .4rem .35rem .4rem 0; }
.country-breadcrumb { display: flex; flex-wrap: wrap; gap: .5em; font-size: .875rem; }
.large-plan small { overflow-wrap: anywhere; }

.install-guide {
  margin-block: clamp(32px, 5vw, 64px);
  scroll-margin-top: 16px;
}
.install-guide > h2 { margin: 0 0 16px; font-size: clamp(1.45rem, 3vw, 2rem); }
.install-guide .install-platforms { display: grid; gap: 16px; }
.install-guide .install-platform {
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.install-guide .install-platform h3 { margin: 0 0 18px; font-size: 1.375rem; }
.install-guide ol { margin: 0; padding-inline-start: 1.7em; line-height: 1.55; }
.install-guide li { padding-inline-start: .35em; }
.install-guide li + li { margin-block-start: 12px; }
.install-guide li::marker { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.install-guide .install-print { display: grid; justify-items: center; gap: 14px; margin-top: 24px; text-align: center; }
.install-guide .install-print p { max-width: 58ch; margin: 0; color: var(--muted); line-height: 1.55; }
.install-guide .install-print button { max-width: 100%; margin: 0; min-height: 44px; white-space: normal; }
@media (min-width: 760px) {
  .install-guide .install-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .install-guide .install-platforms { display: block; }
  .install-guide .install-platform { padding: 12px 0; border: 0; break-inside: avoid; }
  .install-guide .install-print { display: none; }
}

.country-guides {
  max-width: 850px;
  margin: clamp(32px, 5vw, 64px) auto 0;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
.country-guides .faq { min-width: 0; }
.country-guides ol { padding-inline-start: 1.6em; }

.country-title.destination-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.destination-identity { display: grid; justify-items: start; gap: 6px; }
.destination-identity .country-flag { width: 60px; height: 40px; }
.destination-identity .badge { margin: 0; }
.plan-cover { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 12px; }
.destination-heading-media .plan-cover { display: none; }
.country-summary-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(58%, 240px);
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.tuda .country-summary-heading h2 { margin: 0; }
@media (max-width: 760px) {
  .destination-heading-media { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .destination-heading-media .plan-cover { display: block; width: min(54%, 220px); }
  .country-summary-heading { display: block; }
  .country-summary-heading .plan-cover { display: none; }
  .country-title.destination-title { grid-template-columns: 1fr; gap: 12px; }
  .destination-title h1 { font-size: clamp(28px, 7.6vw, 36px); }
}

.country-plan-list { display: grid; grid-auto-rows: 1fr; gap: 8px; }
.country-plan-list .large-plan { margin: 0; }
@media (min-width: 681px) {
  .country-plan-list .large-plan {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr) auto auto;
  }
}
@media (max-width: 680px) {
  .country-plan-list .large-plan {
    display: grid;
    grid-template: "info volume" auto "info price" auto "info radio" auto "info ." 1fr / minmax(0, 1fr) minmax(92px, 34%);
    align-items: start;
    gap: 6px 12px;
    margin: 0;
    padding: 16px;
    border-width: 1px;
  }
  .country-plan-list .large-plan.selected { box-shadow: inset 0 0 0 1px currentColor; }
  .country-plan-list .plan-description { grid-area: info; }
  .country-plan-list .plan-gb { grid-area: volume; justify-self: end; text-align: right; line-height: 1.1; }
  .country-plan-list .plan-price { grid-area: price; justify-self: end; }
  .country-plan-list .radio { grid-area: radio; justify-self: end; }
}

.destination-identity .badge[hidden] { display: none; }

.payment-options { display: grid; gap: 12px; width: 100%; max-width: 32rem; }
.payment-options .payment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  min-height: 76px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--payment-border);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.payment-option--sbp { --payment-tint: #f5f1fb; --payment-border: var(--line); }
.payment-option--bank_card { --payment-tint: #edf6f1; --payment-border: var(--line); }
.payment-option .payment-logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 1px 3px #25213115; }
.payment-option .payment-label { font-weight: 650; line-height: 1.25; }
.payment-option .badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--highlight);
  color: var(--ink);
  font-size: .75rem;
}
.payment-option .payment-amount { white-space: nowrap; font-weight: 700; }
.payment-options .payment-option:disabled { opacity: 1; cursor: default; }
.payment-options .payment-option:enabled:hover { border-color: var(--outline); }
.payment-options .payment-option:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
