* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Verdana, Arial, sans-serif;
  background: #dedede;
  color: #111;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.page-wrap {
  width: min(1110px, 100%);
  margin: 0 auto;
  background: #ececec;
  border: 1px solid #c8c8c8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gov-top {
  display: flex;
  border-bottom: 1px solid #bcbcbc;
}

.gov-flag {
  background: #f2f2f2;
  border-right: 1px solid #bcbcbc;
  color: #4c4c4c;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.gov-menu {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
}

.gov-menu a {
  color: #4d4d4d;
  text-decoration: none;
  font-size: 1.03rem;
  font-weight: 700;
  padding: 0.85rem 1.3rem;
  border-right: 1px solid #bcbcbc;
}

.brand-strip {
  background: #ececec;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  min-height: 140px;
  width: 100%;
  border-top: 1px solid #bcbcbc;
  border-bottom: 1px solid #bcbcbc;
}

.brand-logo {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.brand-fallback {
  display: none;
  align-items: center;
  gap: 0.8rem;
  color: #0b224f;
  background: #ececec;
  border-radius: 0;
  padding: 0.5rem 1.2rem;
  width: 100%;
  height: 100%;
  margin: 0;
}

/* Garante layout correto quando o onerror injeta display:block inline. */
.brand-fallback[style*="display: block"] {
  display: flex !important;
}

.brand-fallback-mark {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 2.45rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.brand-fallback-text {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.05;
  max-width: 126px;
}

.panel {
  width: min(1020px, 95%);
  margin: 0.5rem auto 2rem;
  display: grid;
  gap: 0.55rem;
}

.panel-title {
  text-align: center;
  margin: 0;
  color: #0f6d70;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 400;
}

.top-links {
  margin: 0;
  text-align: right;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.top-links a {
  color: #205dac;
}

.pathline {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
}

.pathline a {
  color: #025f68;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
}

.helper {
  margin: 0;
  border-top: 1px solid #8b8b8b;
  padding-top: 0.15rem;
  font-style: italic;
  font-size: 0.8rem;
}

.consulta-form {
  margin-top: 0.6rem;
}

.row {
  display: grid;
  grid-template-columns: minmax(280px, 52%) minmax(220px, 280px);
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  background: #d8d8d8;
  margin-bottom: 0.08rem;
  padding: 0.15rem 0.5rem;
}

.row label {
  font-size: 1.2rem;
  text-align: right;
  font-weight: 400;
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid #bcbcbc;
  border-radius: 8px;
  background: #f1f1f1;
  padding: 0.44rem 0.5rem;
  font-size: 16px;
}

.actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.82rem;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  text-transform: lowercase;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-primary {
  background: #0074d9;
  color: #fff;
}

.checkout-cta-wrap {
  margin: 0.65rem 0;
}

.checkout-cta {
  display: inline-block;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-weight: 700;
}

.btn-secondary {
  background: #c8c8c8;
  color: #333;
}

.resultado {
  margin-top: 0.65rem;
  border: 1px solid #b9b9b9;
  background: #f8f8f8;
  padding: 0.72rem;
}

.resultado h2,
.resultado p {
  margin: 0.4rem 0;
}

.hidden {
  display: none !important;
}

.alerta {
  border-left: 4px solid #c57911;
  background: #fff4df;
  padding: 0.53rem 0.65rem;
  font-weight: 700;
}

.pendencia-alerta {
  border-left: 4px solid #b10000;
  background: #ffe7e7;
  color: #8b0000;
  padding: 0.53rem 0.65rem;
  font-weight: 700;
}

.sem-pendencia {
  border-left: 4px solid #2c7a2c;
  background: #eaf7ea;
  color: #1f5f1f;
  padding: 0.53rem 0.65rem;
  font-weight: 700;
}

.debito-card {
  border: 1px solid #d3d3d3;
  background: #ffffff;
  padding: 0.65rem;
}

.marca-logo-wrap {
  margin: 0.5rem 0;
}

.marca-logo {
  max-width: 160px;
  max-height: 80px;
  width: auto;
  height: auto;
  border: 1px solid #d4d4d4;
  background: #fff;
  padding: 0.25rem;
}

.resultado-actions {
  margin-top: 0.3rem;
}

.btn-link {
  display: inline-block;
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  text-transform: lowercase;
  font-weight: 700;
  text-decoration: none;
  background: #c8c8c8;
  color: #333;
}

.alerta-checkout {
  border-left: 4px solid #b10000;
  background: #ffe7e7;
  color: #8b0000;
  padding: 0.53rem 0.65rem;
  font-weight: 700;
}

.pix-code {
  width: 100%;
  min-height: 90px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #f6f6f6;
  padding: 0.45rem;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.8rem;
}

.qr-code-wrap {
  width: 220px;
  height: 220px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.8rem auto;
  overflow: hidden;
}

.qr-code-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.btn-copy {
  margin-top: 0.45rem;
  border: 0;
  border-radius: 6px;
  padding: 0.42rem 0.8rem;
  text-transform: lowercase;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
  background: #0074d9;
  color: #fff;
}

.waba-entry {
  margin-top: 0.35rem;
}

.waba-stage {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.waba-stage li {
  border-left: 4px solid #9ea8b2;
  background: #eef1f4;
  padding: 0.5rem 0.65rem;
  font-weight: 700;
  color: #45505b;
}

.waba-stage li.active {
  border-left-color: #006f76;
  background: #e3f7f8;
  color: #004e53;
}

.waba-stage li.done {
  border-left-color: #2d7f3a;
  background: #e8f6ea;
  color: #1f5e2a;
}

.waba-actions-bottom {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.waba-actions-bottom .btn-primary,
.waba-actions-bottom .btn-link {
  width: 100%;
  text-align: center;
}

.page-footer {
  margin: 2.8rem auto 1.2rem;
  width: min(1020px, 95%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.7rem;
}

.fale {
  color: #205dac;
  font-style: italic;
  font-size: 0.9rem;
}

.logo-fale {
  max-width: 80px;
  height: auto;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  padding: 0;
  background: rgba(3, 18, 58, 0.32);
  backdrop-filter: blur(1px);
}

.cookie-sheet {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  max-height: 100vh;
  overflow: auto;
  padding: 22px 24px 26px;
  color: #fff;
  background: linear-gradient(180deg, rgba(5, 37, 88, 0.94) 0%, rgba(5, 33, 80, 0.92) 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.cookie-brand-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-brand-logo {
  max-width: 360px;
  width: min(82vw, 360px);
  height: auto;
  display: block;
}

.cookie-brand-fallback {
  display: none;
  align-items: center;
  gap: 0.8rem;
}

.cookie-brand-mark {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 3.2rem;
  line-height: 1;
  font-style: italic;
}

.cookie-brand-text {
  max-width: 140px;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.05;
}

.cookie-title {
  margin: 0 0 18px;
  text-align: center;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
}

.cookie-copy-main {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1rem, 1.9vw, 1.55rem);
  line-height: 1.38;
}

.cookie-copy-box {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 24, 67, 0.42);
  color: #eef4ff;
  font-size: clamp(0.95rem, 1.55vw, 1.3rem);
  line-height: 1.34;
}

.cookie-copy-box strong {
  color: #fff;
}

.cookie-link-text {
  text-decoration: underline;
}

.cookie-actions {
  width: min(100%, 320px);
  margin: 16px auto 0;
  display: grid;
  gap: 10px;
  position: static;
}

.cookie-btn {
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(8, 48, 106, 0.18);
  color: #fff;
  padding: 11px 16px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
}

.cookie-btn:hover {
  filter: brightness(1.08);
}

@media (max-width: 820px) {
  .page-wrap {
    border: 0;
  }

  .gov-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .gov-menu a {
    flex: 0 0 auto;
    border-top: 1px solid #bcbcbc;
    font-size: 0.82rem;
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
  }

  .row {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.25rem;
    padding: 0.3rem 0.4rem;
  }

  .row label {
    text-align: left;
  }

  .actions {
    flex-wrap: wrap;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .cookie-sheet {
    max-height: 62vh;
  }
}

@media (max-width: 600px) {
  .brand-strip {
    padding: 0.5rem 0.65rem;
    min-height: 86px;
    order: -1;
  }

  .brand-logo {
    display: none !important;
    max-width: 300px;
  }

  .brand-fallback {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.3rem 0.45rem;
  }

  .brand-fallback-mark {
    font-family: Arial Black, Arial, sans-serif;
    font-size: 2.45rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    -webkit-text-stroke: 0.25px currentColor;
    line-height: 0.88;
  }

  .brand-fallback-text {
    font-family: Arial Black, Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    -webkit-text-stroke: 0.2px currentColor;
    line-height: 1.02;
    max-width: 228px;
    text-transform: uppercase;
  }

  .panel {
    width: 100%;
    padding: 0 0.6rem;
    gap: 0.48rem;
  }

  .gov-menu a {
    font-size: 0.76rem;
    padding: 0.48rem 0.55rem;
  }

  .panel-title {
    font-size: 1.35rem;
  }

  .top-links {
    text-align: left;
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .pathline {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .helper {
    font-size: 0.75rem;
  }

  .row label {
    font-size: 1rem;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  button {
    min-height: 36px;
    width: 100%;
    font-size: 0.85rem;
  }

  .resultado {
    padding: 0.62rem;
    font-size: 0.94rem;
  }

  .debito-card p {
    line-height: 1.45;
  }

  .checkout-cta-wrap {
    margin-top: 0.8rem;
  }

  .checkout-cta {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
  }

  .page-footer {
    margin-top: 1.8rem;
    font-size: 0.65rem;
  }

  .fale {
    font-size: 0.8rem;
  }

  .cookie-overlay {
    align-items: stretch;
  }

  .cookie-sheet {
    min-height: 100vh;
    max-height: 100vh;
    padding: 18px 14px 16px;
  }

  .cookie-brand-logo {
    width: min(78vw, 280px);
  }

  .cookie-title {
    font-size: 1.55rem;
  }

  .cookie-copy-main {
    font-size: 0.95rem;
  }

  .cookie-copy-box {
    font-size: 0.92rem;
  }
}
