/* ==========================================================================
   Segunda Via - Design oficial Nio (resultados + modal de pagamento)
   Extraído do tema oficial (lumis-theme) e adaptado para o projeto.
   Depende das variáveis --color-* e fontes definidas em css/main.css.
   ========================================================================== */

:root {
  --resultados-surface: #ffffff;
  --resultados-elevated: #f8f7f0;
  --resultados-border: #d8e1d1;
  --resultados-heading: #575757;
  --resultados-body: #1f1f1f;
  --resultados-muted: #8f8f8f;
  --resultados-cta-bg: #32e000;
  --resultados-cta-text: #14412a;
  --resultados-cta-icon-bg: #14412a;
  --resultados-icon-color: #32e000;
  --resultados-chip-open: #93dacf;
  --resultados-chip-late: #ff7676;
  --resultados-chip-scheduled: #d8c317;
  --resultados-alert-bg: #fddce3;
  --resultados-alert-text: #740c24;
  --resultados-shadow: 0 16px 48px rgba(25, 43, 28, 0.08);
}

.is-hidden {
  display: none !important;
}

/* A área de resultados fica acima da decoração (rastro verde) do hero */
#resultArea,
#resultArea .resultados,
#resultArea .resultados-accordion {
  position: relative;
  z-index: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.resultados {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 0px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: var(--resultados-surface);
}
.resultados[aria-hidden="true"] {
  visibility: hidden;
}

.resultados__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resultados__summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resultados__label {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  color: var(--resultados-muted);
}

.resultados__counter {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  color: var(--resultados-heading);
}

.resultados__counter-highlight {
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  margin-top: 0px;
}

.resultados__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 4px;
  border-radius: 9999px;
  transition: transform 0.2s ease;
  cursor: pointer;
  background: var(--resultados-cta-bg);
  text-decoration: none;
}

.resultados__cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--resultados-cta-text);
  border-radius: 9999px;
  padding: 8px;
  font-family: "PlusJakartaSans", "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
}
.resultados__cta-label {
  display: flex;
  justify-content: center;
  width: 100%;
}

.resultados__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9999px;
  background: var(--resultados-cta-icon-bg);
  color: var(--resultados-icon-color);
  box-sizing: border-box;
}

.resultados__cta-icon svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Accordion */
.resultados-accordion {
  background: var(--resultados-surface);
  border: 1px solid var(--resultados-border);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto;
  width: 100%;
  max-width: 1320px;
}

.resultados-accordion__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #0f862a;
  color: #ffffff;
  padding: 8px 16px;
}

.resultados-accordion__header-text {
  gap: 4px;
  display: table-column;
}

.resultados-accordion__plan {
  font-family: "BwGradual", "Bw Gradual", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 0px;
}

.resultados-accordion__meta {
  font-family: "PlusJakartaSans", "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.resultados-accordion__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 16px;
}

.resultados-accordion__warning {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--resultados-cta-icon-bg);
  color: #fff;
}

.resultados-accordion__toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.resultados-accordion__toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.resultados-accordion__toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.resultados-accordion__chevron {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

[data-accordion-toggle][aria-expanded="true"] .resultados-accordion__chevron {
  transform: rotate(180deg);
}

[data-accordion-toggle][aria-expanded="false"] .resultados-accordion__chevron {
  transform: rotate(0deg);
}

.resultados-accordion__content {
  background: var(--resultados-surface);
}

.resultados-accordion__content[hidden] {
  display: none;
}

.resultados-accordion__categories {
  display: none;
  background: var(--resultados-elevated);
  border-bottom: 1px solid var(--resultados-border);
  padding: 16px 24px;
}

.resultados-accordion__categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  text-align: center;
  font-family: "PlusJakartaSans", "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--resultados-muted);
}

.resultados-accordion__list {
  display: flex;
  flex-direction: column;
}

.is-open [data-accordion-content] {
  display: block;
}

.is-open .resultados-accordion__toggle .resultados-accordion__chevron {
  transform: rotate(180deg);
}

.resultados-accordion__categories[aria-hidden="true"] {
  display: none;
}

[data-accordion-content][aria-hidden="true"] {
  display: none;
}

.resultados-entry {
  display: flex;
  flex-direction: row;
  padding: 16px 24px;
  align-items: stretch;
  border-top: 1px solid var(--resultados-border);
  background: var(--resultados-surface);
}

.resultados-entry:first-child {
  border-top: 0;
}

.resultados-entry__col {
  display: flex;
  flex-direction: column;
}

.resultados-entry__col.first-col {
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.resultados-entry__col.second-col {
  justify-content: space-between;
  align-items: flex-end;
  flex: 1;
}

.resultados-entry__cell {
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  color: var(--resultados-body);
}

.resultados-entry__cell.title {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  color: var(--color-neutral-mid);
}

.resultados-entry__cell.amount {
  font-family: "BwGradual", "Bw Gradual", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

.resultados-entry__cell.due-date {
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

.resultados-entry__status {
  display: flex;
  justify-content: flex-end;
  align-self: start;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  box-sizing: border-box;
}

.resultados-entry__action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  transition: color 0.2s ease;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
}

.resultados-entry__action:focus-visible {
  outline: 2px solid var(--resultados-icon-color);
  outline-offset: 2px;
}

.resultados-entry__action-text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-green-dark);
}

.resultados-entry__icon {
  width: 16px;
  height: 16px;
  color: var(--color-green-dark);
  background: none !important;
  border-radius: 0 !important;
  display: inline-flex;
}

.resultados-status-chip {
  display: inline-flex;
  min-width: 96px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #f8f7f0;
  font-family: "PlusJakartaSans", "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: #1f1f1f;
  background: var(--resultados-chip-open);
}

.resultados-status-chip--open {
  background: var(--resultados-chip-open);
}

.resultados-status-chip--late {
  background: var(--resultados-chip-late);
}

.resultados-status-chip--scheduled {
  background: var(--resultados-chip-scheduled);
}

/* Alerts */
.resultados-accordion__alerts {
  border-top: 1px solid var(--resultados-border);
  padding: 16px;
  background: var(--resultados-surface);
}

.resultados-alert {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--resultados-alert-bg);
  color: var(--resultados-alert-text);
}

.resultados-alert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--resultados-alert-text);
  flex-shrink: 0;
}

.resultados-alert__label {
  font-family: "PlusJakartaSans", "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.resultados-summary {
  padding: 16px 12px;
  border-top: 1px solid var(--resultados-border);
  background: var(--resultados-surface);
}

.resultados-summary__text {
  text-align: center;
  font-family: "PlusJakartaSans", "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--resultados-body);
}

.resultados-summary__highlight {
  font-weight: 700;
  color: #0f862a;
}

@media (min-width: 1099px) {
  .resultados {
    padding: 40px 0;
    gap: 40px;
  }

  .resultados__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
  }

  .resultados__summary {
    gap: 10px;
  }

  .resultados__label {
    font-size: 16px;
  }

  .resultados__counter-highlight {
    font-size: 24px;
  }

  .resultados__counter {
    font-size: 24px;
    line-height: 1.4;
  }

  .resultados__cta {
    width: 214px;
    height: 48px;
  }

  .resultados__cta-icon {
    right: 40px;
  }

  .resultados-accordion__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    gap: 12px;
    min-height: 56px;
  }

  .resultados-accordion__header-text {
    gap: 4px;
    display: flex;
  }

  .resultados-accordion__plan {
    font-size: 20px;
  }

  .resultados-accordion__meta {
    font-size: 14px;
    margin-left: 15px;
    margin-top: 4px;
  }

  .resultados-accordion__warning {
    display: inline-flex;
  }

  .resultados-accordion__categories {
    display: block;
  }

  .resultados-entry__action-text {
    display: none;
  }

  .resultados-entry__icon {
    width: 24px;
    height: 24px;
  }

  .resultados-accordion__alerts {
    padding: 24px;
  }

  .resultados-alert {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px;
  }

  .resultados-alert__icon {
    width: 40px;
    height: 40px;
  }

  .resultados-alert__label {
    font-size: 14px;
    line-height: 1.6;
  }

  .resultados-summary {
    padding: 24px;
  }

  .resultados-summary__text {
    text-align: center;
  }

  .resultados-entry {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    grid-template-areas: "title amount due status action";
  }

  .resultados-entry__col {
    display: contents;
  }

  .resultados-entry__cell {
    text-align: center;
    font-family: "PlusJakartaSans", "Plus Jakarta Sans", sans-serif;
  }

  .resultados-entry__cell.title {
    grid-area: title;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: var(--color-neutral-darkest);
  }

  .resultados-entry__cell.amount {
    grid-area: amount;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: var(--color-neutral-darkest);
  }

  .resultados-entry__cell.due-date {
    grid-area: due;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: var(--color-neutral-darkest);
  }

  .resultados-entry__status {
    grid-area: status;
    justify-content: center;
  }

  .resultados-entry__action {
    grid-area: action;
    justify-content: center;
  }

  .resultados-entry__col.first-col,
  .resultados-entry__col.second-col {
    align-items: initial;
    justify-content: initial;
    flex: none;
  }
}

/* neutraliza herança de estilos antigos embarcados na página */
.resultados-accordion__categories-grid span,
.resultados-entry__cell {
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* ==========================================================================
   Overlay de carregamento (idêntico ao oficial Nio)
   ========================================================================== */

.loading-overlay {
  position: fixed;
  inset: 0px;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  z-index: 9999;
  visibility: hidden;
}

.loading-overlay.is-visible {
  visibility: visible;
}

.orbit-spinner {
  width: 44px;
  height: 96px;
  position: relative;
  animation: 1.1s linear 0s infinite normal none running orbit;
}

.orbit-spinner__img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(22px) rotate(0deg);
  width: 44px;
  height: 17px;
  animation: 1.1s linear 0s infinite normal none running anti-orbit;
}

@keyframes orbit {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes anti-orbit {
  0% {
    transform: translate(-50%, -50%) translateX(22px) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) translateX(22px) rotate(-360deg);
  }
}

/* ==========================================================================
   Modal de pagamento (invoice modal / scheduled-payment)
   ========================================================================== */

.invoice__modal {
  display: none;
  position: fixed;
  align-items: flex-end;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  overscroll-behavior: contain;
}

.invoice__modal[aria-hidden="false"] {
  display: block;
}

body:has(.invoice__modal[aria-hidden="false"]) {
  overflow: hidden;
  touch-action: none;
}

.modal__container {
  position: fixed;
  bottom: 0;
  left: 0;

  width: 100%;
  height: auto;
  max-height: 75vh;

  overflow-y: auto;

  padding: 0 24px 24px;

  border-top-left-radius: 24px;
  border-top-right-radius: 24px;

  background-color: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);

  transform: none;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.scheduled-payment__top-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

.scheduled-payment__modal-toggle {
  width: 80px;
  height: 8px;
  border-radius: 4px;
  background: var(--color-neutral-lightest, #f7f7f7);
  cursor: pointer;
}

.scheduled-payment__close-modal {
  display: none;
}

.scheduled-payment__container {
  padding: 12px 0 24px;
  overflow: hidden;
}

.scheduled-payment__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.scheduled-payment__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scheduled-payment__label {
  display: none;
}

.scheduled-payment__value,
.scheduled-payment__contact-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0;
}

.scheduled-payment__value--charge {
  color: var(--color-neutral-mid);
  margin-bottom: 0;
}

.scheduled-payment__value--amount {
  font-family: "BwGradual", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 120%;
  margin-bottom: 0;
}

.scheduled-payment__value--due-date {
  color: var(--color-neutral-dark);
}

.scheduled-payment__status {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 14px;
  height: 29px;
  min-width: 100px;
  background: #d4b100;
  color: #000;
}

.scheduled-payment__status--open {
  background: #d4b100;
}

.scheduled-payment__alert {
  display: flex;
  gap: 12px;
  background: var(--color-coral-lightest);
  color: var(--color-coral-darkest);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin: 12px 0 24px;
}

.scheduled-payment__alert p {
  font-weight: 700;
  font-size: 14px;
  line-height: 150%;
  vertical-align: middle;
}

.scheduled-payment__content,
.scheduled-payment__instructions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scheduled-payment__content {
  padding-top: 24px;
}

.scheduled-payment__button-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scheduled-payment__button {
  width: 100%;
  height: 48px;
  padding: 8px 24px;
  border-radius: 9999px;
  background: var(--header-text-green-color, #32e000);
  color: var(--color-nio-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  gap: 12px;
  position: relative;
  font-family: "PlusJakartaSans", sans-serif;
  font-size: 16px;
}

.scheduled-payment__button--outline {
  width: 100%;
  height: 48px;
  padding: 8px 24px;
  border-radius: 9999px;
  border: 1px solid var(--color-nio-green-dark);
  border-top: 1px solid var(--color-nio-green-dark) !important;
  color: var(--color-nio-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  gap: 12px;
  position: relative;
  font-family: "PlusJakartaSans", sans-serif;
  font-size: 16px;
  background: #fff;
}

.scheduled-payment__button-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-nio-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-white, #fff);
  position: absolute;
  left: 8px;
}

.scheduled-payment__contact-text {
  color: var(--color-neutral-mid);
  text-align: center;
  vertical-align: bottom;
}

.scheduled-payment__plan-info {
  display: none;
}

.scheduled-payment__state {
  display: flex;
  flex-direction: column;
}

.scheduled-payment__state.is-hidden {
  display: none !important;
}

.scheduled-payment__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.scheduled-payment__options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scheduled-payment__option {
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px 24px 12px 24px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.scheduled-payment__option.is-active {
  border-color: var(--color-green-dark);
  padding: 24px 24px 24px 24px;
}

.scheduled-payment__option-header {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  width: calc(100% + 48px);
  left: -24px;
  margin: -24px 0 -12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
}

.scheduled-payment__option.is-active .scheduled-payment__option-header {
  background: var(--color-green-dark);
  color: #fff;
}

.scheduled-payment__option.is-active .scheduled-payment__option-title,
.scheduled-payment__option.is-active .scheduled-payment__option-subtitle {
  color: #fff;
}

.scheduled-payment__option-title {
  font-size: 16px;
  font-weight: 500;
}

.scheduled-payment__option-subtitle {
  font-size: 12px;
  color: var(--color-neutral-mid, #8f8f8f);
}

.scheduled-payment__option.is-active .scheduled-payment__option-subtitle {
  color: #fff;
}

.scheduled-payment__option-icon {
  width: 40px;
  height: 40px;
}

.scheduled-payment__option-body {
  display: none;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.scheduled-payment__option-body.is-visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  opacity: 1;
  height: auto;
  padding: 36px 0 0 0;
}

.scheduled-payment__option-body-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: 0;
}

.scheduled-payment__option-body-text {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0;
  text-align: center;
  color: var(--color-neutral-dark, #575757);
}

.scheduled-payment__dashed-container {
  width: 100%;
  height: auto;
  min-height: 48px;
  border-radius: 4px;
  border-width: 1px;
  border-style: dashed;
  border-color: var(--color-neutral-dark, #575757);
  padding: 12px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 16px;
  color: var(--color-neutral-dark, #575757);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pix-expired {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px;
  text-align: center;
}

.pix-expired__title {
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
  max-width: 420px;
}

.pix-expired__description {
  font-size: 14px;
  color: #6b6b6b;
  max-width: 460px;
  line-height: 1.4;
}

.pix-expired__button {
  margin-top: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background-color: #22c400;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 1099px) {
  .only-desktop {
    display: flex !important;
    flex-direction: row;
  }

  .only-mobile {
    display: none;
  }

  .modal__container {
    overflow: visible;
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 1100px;
    height: 70vh;
    max-height: none;
    padding: 24px;
    border-radius: 40px;
    gap: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    animation: none;
    margin: 0;
  }

  .scheduled-payment__container {
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    overflow-y: auto;
    scrollbar-width: none;
    padding-bottom: 48px;
    flex: 1;
  }

  .scheduled-payment__container::-webkit-scrollbar {
    display: none;
  }

  .scheduled-payment__top-actions {
    flex-direction: row;
    height: 48px;
    justify-content: space-between;
  }

  .scheduled-payment__modal-toggle {
    display: none;
  }

  .scheduled-payment__close-modal {
    display: inline-flex;
    cursor: pointer;
  }

  .scheduled-payment__plan-info {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }

  .scheduled-payment__plan-title,
  .scheduled-payment__address {
    line-height: 120%;
  }

  .scheduled-payment__plan-title {
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 0;
    color: #1f1f1f;
  }

  .scheduled-payment__address {
    font-weight: 300;
    font-size: 16px;
    line-height: 150%;
    color: #1f1f1f;
  }

  .scheduled-payment__close-modal svg {
    width: 24px;
    height: 24px;
  }

  .scheduled-payment__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-radius: 24px;
    border: 1px solid var(--color-neutral-light, #c7c7c7);
  }

  .scheduled-payment__info {
    flex-direction: row;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }

  .scheduled-payment__info-item {
    display: flex;
    flex-direction: column;
    width: 277px;
  }

  .scheduled-payment__label {
    display: flex;
    font-weight: 500;
    font-size: 12px;
    line-height: 150%;
    color: var(--color-neutral-mid);
  }

  .scheduled-payment__value,
  .scheduled-payment__value--charge,
  .scheduled-payment__value--amount,
  .scheduled-payment__value--due-date {
    font-size: 16px;
    line-height: 150%;
    color: var(--color-neutral-darkest);
  }

  .scheduled-payment__value--amount {
    font-family: "PlusJakartaSans", sans-serif;
    font-weight: 400;
    font-size: 16px;
  }

  .scheduled-payment__status {
    min-width: 110px;
    background: #d4b100;
    color: #000;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: none;
    height: auto;
  }

  .scheduled-payment__alert.is-hidden {
    display: none !important;
  }

  .scheduled-payment__container {
    gap: 24px;
  }

  .scheduled-payment__content {
    padding: 0px;
    border-radius: 24px;
    border: 1px solid var(--color-neutral-light, #c7c7c7);
  }

  .scheduled-payment__button {
    width: 214px;
  }

  .scheduled-payment__contact-text--bottom {
    display: none;
  }

  .desktop-payment__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style-type: none !important;
    margin: 0px !important;
    padding: 0px !important;
  }

  .desktop-payment__item {
    width: 317px;
    height: 66px;
    display: flex;
    padding: 12px 8px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
  }

  .desktop-payment__item svg {
    fill: #000;
  }

  .desktop-payment__item-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #000;
  }

  .desktop-payment__item-title {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
  }

  .desktop-payment__item-subtitle {
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
  }

  .desktop-payment__item--selected {
    background-color: #1a7200;
    color: #fff;
    border-color: #1a7200;
  }

  .desktop-payment__item--selected .desktop-payment__item-button-text {
    color: #fff;
  }

  .desktop-payment__item--selected svg {
    fill: #fff;
  }

  .desktop-payment__item:hover {
    background-color: rgba(0, 0, 0, 0.03);
  }
  .desktop-payment__item--selected:hover {
    background-color: #186a00;
  }

  .scheduled-payment__navigation {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-right: 1px solid var(--color-neutral-light, #c7c7c7);
  }

  .scheduled-payment__title {
    margin: 0;
  }

  .scheduled-payment__details {
    padding: 24px;
    width: 100%;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }

  .scheduled-payment__option-body.is-visible {
    padding: 0;
    gap: 40px;
  }

  .scheduled-payment__qrcode-section {
    display: flex;
    flex-direction: row;
    gap: 16px;
  }

  .scheduled-payment__qrcode-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
  }

  .scheduled-payment__option-body-title {
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    margin: 0;
    text-align: left;
  }

  .scheduled-payment__option-body-text {
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 150%;
    margin: 0;
    text-align: left;
  }

  .scheduled-payment__divider {
    width: 100%;
    border-bottom: 1px solid var(--color-neutral-light, #c7c7c7);
  }

  .scheduled-payment__copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .scheduled-payment__dashed-container {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .scheduled-payment__button-group {
    flex-direction: row;
  }

  .scheduled-payment__button {
    width: 100%;
  }

  .scheduled-payment__button.action-button {
    max-width: 206px;
  }

  .scheduled-payment__instructions {
    padding: 0 24px 24px;
  }
}

/* foco visível nos elementos interativos */
[role="button"]:focus-visible,
.desktop-payment__item:focus-visible,
.resultados-entry__action:focus-visible,
.resultados-accordion__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* QR Code gerado: fica dentro do painel, sem empurrar o layout */
.scheduled-payment__details,
.scheduled-payment__option-body,
.scheduled-payment__qrcode-section,
.scheduled-payment__qrcode-content,
.scheduled-payment__copy {
  min-width: 0;
  max-width: 100%;
}

.scheduled-payment__qrcode-content {
  flex: 1 1 0;
}

.scheduled-payment__qrcode-image {
  flex: 0 0 auto;
  width: 180px;
  max-width: 100%;
}

#qrcode {
  width: 180px;
  max-width: 100%;
}

#qrcode img,
#qrcode canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.scheduled-payment__dashed-container {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  overflow-wrap: anywhere;
}

@media (max-width: 1098px) {
  .only-desktop {
    display: none !important;
  }

  .only-mobile {
    display: flex;
  }
}

@media (max-width: 768px) {
  body:has(.resultados) {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  #resultArea {
    margin-top: 2rem;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px;
    box-sizing: border-box;
    display: block;
    overflow: visible !important;
  }

  .resultados-accordion {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: visible !important;
    position: relative;
  }

  .resultados__counter,
  .resultados__counter-highlight {
    font-size: 1rem;
  }

  .resultados__label {
    font-size: 0.9rem;
  }

  .resultados__cta {
    height: 44px;
    max-width: 214px;
  }

  .scheduled-payment__info-item + .scheduled-payment__info-item {
    margin-top: 6px;
  }

  .scheduled-payment__option-body.is-visible {
    padding: 24px 0 0 0;
  }

  .scheduled-payment__qrcode-section {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .scheduled-payment__option-body-title,
  .scheduled-payment__option-body-text {
    text-align: center;
  }

  .scheduled-payment__dashed-container {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-all;
    font-size: 12px;
  }

  .scheduled-payment__button {
    width: 100%;
  }
}
