.distance-slider {
  display: block;
  width: 100%;
  margin: 18px 0 8px;
  accent-color: #72e19a;
  cursor: pointer;
}

.distance-slider:focus-visible {
  outline: 2px solid #72e19a;
  outline-offset: 5px;
  border-radius: 999px;
}

.distance-slider-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7f9587;
  font-size: 11px;
}

.distance-slider-labels output {
  color: #eaf5e9;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.choice:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.topbar {
  position: relative;
  justify-content: center;
}

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 0;
  color: transparent;
  background: linear-gradient(90deg, #f3f1e7 0%, #f3f1e7 50%, #20d879 50%, #20d879 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  display: none;
}

.header-note {
  margin-left: auto;
}

.lang-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: rgba(10, 18, 14, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(52, 211, 153, 0.1);
}

.lang-select {
  padding: 0.4rem 2rem 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2334d399' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  color: #e8ede8;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.lang-select:hover,
.lang-select:focus-visible {
  border-color: #34d399;
}

.lang-select:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 3px;
}

.lang-select option {
  background: #1a2b1f;
  color: #e8ede8;
}

@media (max-width: 420px) {
  .distance-slider-labels { gap: 6px; font-size: 10px; }
  .distance-slider-labels output { font-size: 12px; }
}

@media (max-width: 560px) {
  .brand { font-size: 20px; }
  .lang-bar { padding: 0.5rem 1rem; }
}

#result-panel-anchor.checkout-visible {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.checkout-compensacao {
  align-self: start;
  width: 100%;
  box-sizing: border-box;
  padding: 25px;
  border-radius: 14px;
  background: rgba(22, 44, 33, 0.88);
  border: 1px solid rgba(234, 245, 233, 0.12);
}

.creditos-avulsos {
  box-sizing: border-box;
  width: 100%;
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(234, 245, 233, 0.1);
  border-radius: 12px;
  background: rgba(22, 44, 33, 0.48);
  color: #eaf5e9;
}

.creditos-avulsos h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.creditos-avulsos > p:not(.creditos-erro) {
  margin: 0;
  color: #9fb0a2;
  font-size: 13px;
  line-height: 1.5;
}

.creditos-selecao {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.creditos-kg span,
.creditos-campo {
  color: #9fb0a2;
  font-size: 12px;
}

.creditos-kg output {
  display: block;
  margin-top: 3px;
  color: #eaf5e9;
  font-size: 27px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.creditos-campo {
  display: grid;
  gap: 5px;
}

.creditos-campo input {
  width: 130px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(234, 245, 233, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #eaf5e9;
  font: inherit;
}

.creditos-avulsos #slider-kg {
  display: block;
  width: 100%;
  margin: 16px 0 12px;
  accent-color: #72e19a;
}

.creditos-preco {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.creditos-preco strong {
  color: #eaf5e9;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.creditos-preco span {
  color: #9fb0a2;
  font-size: 12px;
}

.creditos-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.creditos-presets button,
.creditos-comprar {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(234, 245, 233, 0.2);
  border-radius: 7px;
  background: transparent;
  color: #c5d3c8;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.creditos-presets button:hover,
.creditos-comprar:hover {
  border-color: rgba(114, 225, 154, 0.6);
  color: #eaf5e9;
}

.creditos-comprar:disabled {
  cursor: wait;
  opacity: 0.65;
}

.creditos-avulsos .creditos-erro {
  margin-bottom: 0;
}

[data-testid="panel-recommendations"] > .checkout-compensacao {
  margin-top: 24px;
}

.checkout-titulo {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
}

.checkout-acoes [data-categoria] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-plan-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  padding: 2px;
  border: 1px solid rgba(234, 245, 233, 0.28);
  border-radius: 9px;
  background: #10251b;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.28), 0 3px 8px rgba(0, 0, 0, 0.35);
}

.checkout-plan-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: contain;
}

.qualification-notice {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(114, 225, 154, 0.35);
  border-radius: 10px;
  background: rgba(114, 225, 154, 0.08);
  color: #eaf5e9;
  font-size: 13px;
  line-height: 1.55;
}

.qualification-notice h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.qualification-notice p {
  margin: 0;
}

.qualification-notice details {
  margin-top: 10px;
}

.qualification-notice summary {
  cursor: pointer;
  font-weight: 600;
}

.qualification-notice ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.qualification-notice li {
  margin: 0 0 6px;
}

.checkout-parceiro-cabecalho {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(234, 245, 233, 0.1);
  color: inherit;
  text-decoration: none;
}

.checkout-parceiro-cabecalho:hover .checkout-parceiro-nome,
.checkout-parceiro-cabecalho:hover .checkout-parceiro-site {
  color: #72e19a;
}

.checkout-parceiro-logo {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border: 2px solid rgba(52, 211, 153, 0.2);
  border-radius: 16px;
  color: #34d399;
  font-size: 24px;
  font-weight: 800;
}

.checkout-parceiro-nome,
.checkout-parceiro-site {
  margin: 0;
}

.checkout-parceiro-nome {
  font-weight: 700;
}

.checkout-parceiro-site {
  margin-top: 3px;
  color: #9fb0a2;
  font-size: 12px;
}

.checkout-campos,
.checkout-acoes {
  display: grid;
  gap: 10px;
}

.checkout-campos input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(234, 245, 233, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #eaf5e9;
}

.checkout-acoes {
  margin-top: 12px;
}

.checkout-resumo {
  margin-top: 14px;
  color: #b9c8bc;
  line-height: 1.5;
}

.checkout-nota-cambio {
  margin: 4px 0 0;
  color: #9fb0a2;
  font-size: 11px;
  line-height: 1.45;
}

.checkout-erro {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.checkout-erro {
  color: #ffb4a8;
}

.checkout-parceiro {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 2px solid rgba(234, 245, 233, 0.18);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.018);
  color: #9fb0a2;
  font-size: 12px;
  line-height: 1.5;
}

.checkout-parceiro p {
  margin: 0 0 8px;
}

.checkout-parceiro p:last-child {
  margin-bottom: 0;
}

.checkout-parceiro a {
  color: #72e19a;
}

.calculator-footer-links {
  margin: 0;
  text-align: right;
}

.calculator-footer-links a {
  color: #9fb0a2;
  text-decoration: none;
}

.calculator-footer-links a:hover {
  color: #72e19a;
  text-decoration: underline;
}

.checkout-sucesso {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.checkout-sucesso-card {
  width: min(560px, 100%);
  text-align: center;
}

.checkout-sucesso-card h1 {
  margin-bottom: 12px;
  font-size: 28px;
}

.checkout-sucesso-card p:not(.result-kicker) {
  margin-bottom: 24px;
}

.contributors-summary {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin: 24px 0;
  color: #b9c8bc;
}

.contributors-summary strong {
  display: block;
  color: #eaf5e9;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.contributors-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.contributors-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(234, 245, 233, 0.1);
}

.contributors-list li span:last-child {
  color: #b9c8bc;
  white-space: nowrap;
}

.contributors-state {
  color: #9fb0a2;
  font-size: 14px;
}

.contributors-card {
  width: min(760px, 100%);
}

.contributors-intro {
  color: #9fb0a2;
  font-size: 14px;
}

.contributors-section {
  margin: 28px 0;
  text-align: left;
}

.contributors-section h2 {
  margin: 0 0 12px;
  color: #eaf5e9;
  font-size: 18px;
}

.contributors-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(234, 245, 233, 0.1);
  border-radius: 8px;
}

.contributors-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.contributors-section th,
.contributors-section td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(234, 245, 233, 0.1);
  white-space: nowrap;
}

.contributors-section thead th {
  color: #9fb0a2;
  font-weight: 600;
}

.contributors-section tbody th {
  color: #eaf5e9;
  font-weight: 500;
}

.contributors-section tbody td {
  color: #b9c8bc;
  font-variant-numeric: tabular-nums;
}

.contributors-section tr:last-child th,
.contributors-section tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 900px) {
  #result-panel-anchor.checkout-visible {
    grid-template-columns: 1fr;
  }

  .checkout-compensacao {
    position: static;
  }
}

@media (max-width: 480px) {
  .creditos-avulsos {
    padding: 18px 16px;
  }

  .creditos-selecao {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
}
