/* JAPÃO ACESSO — SIMULADOR DE TAXAS (compra assistida e personal shopper) */
/* ===== Cores da marca — ajuste aqui se precisar ===== */
    .ja-sim {
      --ja-red: #d0262d;            /* vermelho da marca */
      --ja-red-soft: rgba(208, 38, 45, 0.08);
      --ja-ink: #111111;            /* preto da marca */
      --ja-bg: #ffffff;
      --ja-card: #ffffff;
      --ja-field: #f6f6f6;
      --ja-line: #e5e5e5;
      --ja-text: #111111;
      --ja-muted: #6b6b6b;
      --ja-live: #1f9d55;
      --ja-warn: #e0a100;
      color: var(--ja-text);
      background: var(--ja-bg);
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.45;
      width: 100%;
      box-sizing: border-box;
    }

    .ja-sim *,
    .ja-sim *::before,
    .ja-sim *::after {
      box-sizing: border-box;
    }

    .ja-sim .ja-container {
      max-width: 1040px;
      margin: 0 auto;
      padding: 32px 16px;
    }

    /* ---------- Cabeçalho ---------- */
    .ja-sim .ja-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      letter-spacing: 1.5px;
      color: var(--ja-red);
      font-weight: 700;
      margin: 0 0 10px;
    }

    .ja-sim .ja-eyebrow::before {
      content: "";
      width: 22px;
      height: 2px;
      background: var(--ja-red);
    }

    .ja-sim .ja-title {
      font-size: 30px;
      line-height: 1.2;
      font-weight: 700;
      color: var(--ja-ink);
      margin: 0 0 8px;
    }

    .ja-sim .ja-subtitle {
      font-size: 15px;
      color: var(--ja-muted);
      margin: 0 0 28px;
      max-width: 560px;
    }

    /* ---------- Grade principal ---------- */
    .ja-sim .ja-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
      gap: 20px;
      align-items: start;
    }

    .ja-sim .ja-card {
      background: var(--ja-card);
      border: 1px solid var(--ja-line);
      border-radius: 16px;
      padding: 26px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .ja-sim .ja-label {
      display: block;
      font-size: 12px;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: var(--ja-muted);
      font-weight: 700;
      margin-bottom: 10px;
    }

    /* ---------- Campo de valor ---------- */
    .ja-sim .ja-amount {
      display: flex;
      align-items: center;
      gap: 10px;
      height: 72px;
      padding: 0 20px;
      background: var(--ja-field);
      border: 1.5px solid var(--ja-line);
      border-radius: 12px;
      transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    }

    .ja-sim .ja-amount:focus-within {
      background: #fff;
      border-color: var(--ja-ink);
      box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
    }

    .ja-sim .ja-amount-prefix {
      font-size: 26px;
      font-weight: 700;
      color: var(--ja-red);
    }

    .ja-sim .ja-input {
      flex: 1;
      min-width: 0;
      padding: 0;
      background: transparent;
      border: 0;
      outline: none;
      color: var(--ja-ink);
      font-family: inherit;
      font-size: 32px;
      font-weight: 700;
    }

    .ja-sim .ja-amount-suffix {
      font-size: 13px;
      font-weight: 700;
      color: var(--ja-muted);
    }

    .ja-sim .ja-approx {
      margin-top: 10px;
      font-size: 15px;
      color: var(--ja-muted);
    }

    .ja-sim .ja-approx strong {
      color: var(--ja-ink);
      font-size: 17px;
    }

    /* ---------- Slider ---------- */
    .ja-sim .ja-slider {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 6px;
      margin: 24px 0 12px;
      border-radius: 99px;
      background: linear-gradient(
        to right,
        var(--ja-red) 0,
        var(--ja-red) var(--p, 0%),
        #e3e3e3 var(--p, 0%),
        #e3e3e3 100%
      );
      outline: none;
      cursor: pointer;
    }

    .ja-sim .ja-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: #fff;
      border: 5px solid var(--ja-red);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    }

    .ja-sim .ja-slider::-moz-range-thumb {
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #fff;
      border: 5px solid var(--ja-red);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    }

    .ja-sim .ja-slider:focus-visible::-webkit-slider-thumb {
      box-shadow: 0 0 0 6px var(--ja-red-soft), 0 2px 6px rgba(0, 0, 0, 0.18);
    }

    .ja-sim .ja-slider-labels {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      font-size: 12px;
      color: #9a9a9a;
    }

    /* ---------- Atalhos de valor ---------- */
    .ja-sim .ja-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 20px 0 28px;
    }

    .ja-sim .ja-chip {
      background: #fff;
      border: 1px solid var(--ja-line);
      color: #333;
      border-radius: 99px;
      padding: 8px 14px;
      font-family: inherit;
      font-size: 13px;
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

    .ja-sim .ja-chip:hover {
      border-color: #bdbdbd;
      color: var(--ja-ink);
    }

    .ja-sim .ja-chip.is-active {
      border-color: var(--ja-red);
      color: var(--ja-red);
      background: var(--ja-red-soft);
      font-weight: 700;
    }

    /* ---------- Seletor de moeda ---------- */
    .ja-sim .ja-segment {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      padding: 5px;
      background: var(--ja-field);
      border: 1px solid var(--ja-line);
      border-radius: 12px;
    }

    .ja-sim .ja-seg-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 12px 6px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: #555;
      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
    }

    .ja-sim .ja-seg-btn:hover {
      color: var(--ja-ink);
    }

    .ja-sim .ja-seg-btn.is-active {
      background: var(--ja-ink);
      color: #fff;
    }

    .ja-sim .ja-chip:focus-visible,
    .ja-sim .ja-seg-btn:focus-visible,
    .ja-sim .ja-details summary:focus-visible {
      outline: 2px solid var(--ja-red);
      outline-offset: 2px;
    }

    .ja-sim .ja-rate {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
      font-size: 12.5px;
      color: var(--ja-muted);
    }

    .ja-sim .ja-dot {
      flex: none;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--ja-warn);
    }

    .ja-sim .ja-dot.is-live {
      background: var(--ja-live);
      box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.15);
    }

    /* ---------- Resumo ---------- */
    .ja-sim .ja-summary {
      position: sticky;
      top: 20px;
    }

    .ja-sim .ja-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 16px;
      padding: 13px 0;
      border-bottom: 1px solid var(--ja-line);
    }

    .ja-sim .ja-row-label {
      font-size: 15px;
      color: #222;
    }

    .ja-sim .ja-row-note {
      font-size: 12px;
      color: var(--ja-muted);
      margin-top: 3px;
    }

    .ja-sim .ja-row-value {
      font-size: 16px;
      font-weight: 700;
      text-align: right;
      white-space: nowrap;
      color: var(--ja-ink);
    }

    .ja-sim .ja-row-sub {
      display: block;
      font-size: 12px;
      font-weight: 400;
      color: var(--ja-muted);
      margin-top: 3px;
    }

    .ja-sim .ja-badge {
      display: inline-block;
      margin-left: 6px;
      padding: 2px 8px;
      border-radius: 99px;
      font-size: 11px;
      font-weight: 700;
      color: var(--ja-red);
      background: var(--ja-red-soft);
      vertical-align: middle;
    }

    .ja-sim .ja-row.is-strong {
      border-bottom: 0;
    }

    .ja-sim .ja-row.is-strong .ja-row-label {
      font-weight: 700;
      color: var(--ja-ink);
    }

    /* Card de total em preto, com detalhe vermelho */
    .ja-sim .ja-total {
      position: relative;
      margin-top: 12px;
      padding: 22px 20px 20px;
      border-radius: 14px;
      background: var(--ja-ink);
      color: #fff;
      overflow: hidden;
    }

    .ja-sim .ja-total::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      height: 4px;
      background: var(--ja-red);
    }

    .ja-sim .ja-total-caption {
      font-size: 12px;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      font-weight: 700;
      color: #ffffff;
    }

    .ja-sim .ja-total-values {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: flex-end;
      gap: 14px 24px;
      margin-top: 14px;
    }

    .ja-sim .ja-total-col.is-right {
      margin-left: auto;
      text-align: right;
    }

    .ja-sim .ja-total-cur {
      font-size: 12px;
      color: #a8a8a8;
      margin-bottom: 4px;
    }

    .ja-sim .ja-total-main {
      font-size: clamp(24px, 2.8vw, 34px);
      line-height: 1.15;
      font-weight: 700;
      color: #ffffff;
      white-space: nowrap;
    }

    .ja-sim .ja-total-main.is-jpy {
      color: #ffffff;
    }

    .ja-sim .ja-total-note {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid #2c2c2c;
      font-size: 12px;
      color: #a8a8a8;
    }

    /* ---------- Detalhamento por faixa ---------- */
    .ja-sim .ja-details {
      margin-top: 20px;
      background: var(--ja-card);
      border: 1px solid var(--ja-line);
      border-radius: 16px;
      overflow: hidden;
    }

    .ja-sim .ja-details summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 18px 26px;
      list-style: none;
      cursor: pointer;
      font-size: 15px;
      font-weight: 700;
      color: var(--ja-ink);
    }

    .ja-sim .ja-details summary::-webkit-details-marker {
      display: none;
    }

    .ja-sim .ja-details summary::after {
      content: "+";
      font-size: 22px;
      line-height: 1;
      color: var(--ja-red);
    }

    .ja-sim .ja-details[open] summary::after {
      content: "−";
    }

    .ja-sim .ja-table-wrap {
      padding: 0 26px 22px;
      overflow-x: auto;
    }

    .ja-sim .ja-table-intro {
      font-size: 13px;
      color: var(--ja-muted);
      margin: 0 0 12px;
    }

    .ja-sim table {
      width: 100%;
      min-width: 440px;
      border-collapse: collapse;
      font-size: 14px;
    }

    .ja-sim th {
      padding: 10px 8px;
      text-align: left;
      font-size: 11.5px;
      letter-spacing: 0.6px;
      text-transform: uppercase;
      font-weight: 700;
      color: var(--ja-muted);
      background: var(--ja-field);
      border-bottom: 1px solid var(--ja-line);
    }

    .ja-sim td {
      padding: 11px 8px;
      color: #b3b3b3;
      border-bottom: 1px solid #f0f0f0;
    }

    .ja-sim tr.is-used td {
      color: var(--ja-ink);
    }

    .ja-sim tfoot td {
      color: var(--ja-ink);
      font-weight: 700;
      border-bottom: 0;
      border-top: 2px solid var(--ja-ink);
    }

    .ja-sim th:not(:first-child),
    .ja-sim td:not(:first-child) {
      text-align: right;
      white-space: nowrap;
    }

    .ja-sim .ja-disclaimer {
      margin-top: 18px;
      font-size: 12px;
      line-height: 1.6;
      color: #8a8a8a;
    }

    /* ---------- Responsivo ---------- */
    @media (max-width: 820px) {
      .ja-sim .ja-grid {
        grid-template-columns: 1fr;
      }

      .ja-sim .ja-summary {
        position: static;
      }
    }

    @media (max-width: 480px) {
      .ja-sim .ja-container {
        padding: 24px 12px;
      }

      .ja-sim .ja-title {
        font-size: 24px;
      }

      .ja-sim .ja-card {
        padding: 18px;
        border-radius: 14px;
      }

      .ja-sim .ja-amount {
        height: 64px;
        padding: 0 16px;
      }

      .ja-sim .ja-amount-prefix {
        font-size: 22px;
      }

      .ja-sim .ja-input {
        font-size: 26px;
      }

      .ja-sim .ja-seg-btn {
        font-size: 13px;
        padding: 11px 4px;
      }

      .ja-sim .ja-total-main {
        font-size: 26px;
      }

      .ja-sim .ja-details summary {
        padding: 16px 18px;
      }

      .ja-sim .ja-table-wrap {
        padding: 0 18px 18px;
      }
    }
  
    /* Integração com o site Japão Acesso */
    .ja-sim .ja-container { padding: 8px 0 0; }
    .ja-sim .ja-badge:before { display: none; }
    .ja-sim .ja-extras { margin-top: 16px; border: 1px dashed var(--ja-red); background: var(--ja-red-soft); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--ja-ink); }
    .ja-sim .ja-extras b { color: var(--ja-red); }
    .ja-sim .ja-sync { margin-top: 10px; font-size: 12.5px; color: var(--ja-muted); }
    .ja-sim .ja-sync button { border: 0; background: none; color: var(--ja-red); font-weight: 700; cursor: pointer; padding: 0; font-family: inherit; font-size: inherit; text-decoration: underline; }

/* Quadro preto: duas linhas alinhadas (moeda à esquerda, valor à direita) e números proporcionais */
.ja-sim .ja-total-values { display: grid; grid-template-columns: 1fr; justify-content: stretch; gap: 10px; margin-top: 12px; }
.ja-sim .ja-total-col,
.ja-sim .ja-total-col.is-right { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-left: 0; text-align: left; }
.ja-sim .ja-total-col + .ja-total-col { padding-top: 10px; border-top: 1px solid #2c2c2c; }
.ja-sim .ja-total-cur { margin: 0; font-size: 13px; color: #bdbdbd; white-space: nowrap; }
.ja-sim .ja-total-main { font-size: 22px; line-height: 1.2; text-align: right; }
.ja-sim .ja-total-main.is-jpy { font-size: 18px; color: #e6e6e6; }
@media (max-width: 480px) { .ja-sim .ja-total-main { font-size: 20px; } .ja-sim .ja-total-main.is-jpy { font-size: 16px; } }
