:root {
  --black: #000;
  --ink: #000;
  --muted: #6b7280;
  --gray-1: #f3f4f6;
  --gray-2: #cbd5e1;
  --gray-3: #d1d5db;
  --brand: #ff9f1c;
  --lime: #e5ff51;
  --radius: 12px;
  --radius-lg: 14px;
  --maxw: 580px;
  --bd: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Ubuntu, sans-serif;
  color: var(--ink);
  background: #eee;
}

.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--bd);
  padding: 12px;
}

.appbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  background: #fff;
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: #000;
  background: #fff;
}

.back:hover {
  background: #f2f3f5;
}

.appbar__title {
  margin: 0;
  text-align: center;
  font-weight: 400;
  color: #000;
  font-size: 18px;
  background: #fff;
}

.appbar__spacer {
  display: block;
  width: 36px;
}

.hero-strap {
  overflow: visible;
}

.search-wrap {
  position: absolute;
  left: 50%;
  top: 230px;
  transform: translate(-50%, 50%);
  width: min(var(--maxw), 94vw);
  z-index: 5;
}

.hero-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  max-width: 1150px;
  margin: 0 auto;
  filter: brightness(0.5);
}

.search-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 400;
  margin: 0 0 8px;
  font-size: 18px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 34px #00000047;
}

.search input {
  width: 100%;
  padding: 18px 44px 18px 16px;
  border: 0;
  outline: none;
  font-size: 16px;
  border-radius: 12px;
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.page {
  padding-bottom: 90px;
}

.container {
  width: min(var(--maxw), 94vw);
  margin: 60px auto;
}

.section-title {
  font-size: 18px;
  font-weight: 400;
  color: #000;
  margin: 14px 0 12px;
}

.row__fee {
  font-size: 14px;
  line-height: 1;
  color: #b71c1c;
}

.row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px 6px;
}

.row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #000;
}

.row--bulk {
  border-bottom: 1px solid var(--gray-2);
  margin-bottom: 16px;
}

strong#bulkLabel {
  font-weight: 400;
  font-size: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item {
  border-bottom: 1px solid var(--gray-2);
}

.item-head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 15px;
  padding: 0 6px;
}

.item-price {
  white-space: nowrap;
}

.item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-placa {
  font-weight: 400;
  font-size: 18px;
  color: #000;
}

.item-conc {
  font-weight: 400;
  color: #000;
  font-size: 18px;
}

.item-sub {
  color: var(--muted);
  font-size: 14px;
}

.item-price {
  font-weight: 800;
  color: #000;
  font-size: 18px;
}

.total-card {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%);
  width: min(var(--maxw), 94vw);
  background: #fff;
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  box-shadow: 0 30px 70px #00000059;
  padding: 12px 16px 16px;
  max-height: 50vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch !important;
}

strong#totalTitle {
  color: #000;
  font-size: 18px;
  font-weight: 400;
}

.total-head {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.total-head .th-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-head .th-bottom {
  border-top: 1px solid var(--gray-2);
  padding-top: 10px;
  color: #363636;
}

.total-head .chev {
  transition: transform 0.18s ease;
}

.total-head[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.total-value {
  font-weight: 900;
  font-size: 18px;
  color: #000;
}

.total-body {
  border-top: 1px solid var(--gray-2);
  padding: 12px 16px 16px;
}

.resumo-placa {
  margin: 6px 0 12px;
}

.resumo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.resumo-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.resumo-list li:last-child {
  border-bottom: 0;
}

.resumo-total {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--gray-2);
  padding-top: 10px;
  margin: 8px 0 0;
  font-size: 16px;
}

.resumo-total > strong {
  margin-left: auto;
  color: #000;
}

strong#resumoPlaca {
  color: #000;
}

.btn-continue {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    filter 0.2s,
    transform 0.15s,
    box-shadow 0.2s,
    background 0.2s,
    color 0.2s;
}

.btn-continue--inline {
  width: auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.btn-continue:disabled {
  background: var(--gray-3);
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-continue:not(:disabled) {
  background: var(--black);
  color: var(--lime);
  cursor: pointer;
  box-shadow: 0 16px 40px #00000040;
  font-size: 16px;
  font-weight: 400;
}

.btn-continue:not(:disabled):hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.total-head[aria-expanded="true"] #btnContinuarTop {
  display: none;
}

.total-head[aria-expanded="false"] #btnContinuarTop {
  display: inline-flex;
}

.badge--due {
  background: #000;
  color: #fff;
  font-weight: 400;
  font-size: 14px;
}

ul#resumoItens strong {
  color: #000;
}

@media (max-width: 720px) {
  .hero-strap {
    height: 160px;
    margin-bottom: 150px;
  }

  .container {
    width: min(96vw, 680px);
    margin-top: 20px;
  }

  .row {
    grid-template-columns: 16px 0.5fr 1fr;
  }

  .badge--due {
    font-size: 12px;
    text-align: center;
  }

  .row__fee {
    font-size: 10px;
  }

  label.row.row--bulk {
    grid-template-columns: 0.1fr 1fr;
  }
}

.is-anon .blur-if-anon {
  font-size: 18px;
  opacity: 0.8;
  padding: 6px 0;
}

.total-head[aria-expanded="true"] .th-bottom,
.total-head[aria-expanded="true"] #totalTitle {
  display: none;
}

.total-head[aria-expanded="true"] .th-top {
  justify-content: flex-end;
  padding-bottom: 0;
  border-bottom: 0;
}

.section-sub {
  margin: 0 0 12px;
  color: #6b7280;
}

.pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pay-item {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--gray-2);
  cursor: pointer;
}

.pay-item:last-child {
  border-bottom: none;
}

.pay-item:focus-visible {
  outline: 2px solid #9ca3af;
  outline-offset: 4px;
  border-radius: 8px;
}

.pay-icon .pm-ico {
  width: 40px;
  height: 40px;
  display: inline-block;
}

.pay-icon .bg {
  fill: var(--lime);
}

.pay-icon .fg {
  fill: none;
  stroke: #111;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pay-texts strong {
  color: #000;
  font-weight: 400;
  font-size: 18px;
}

.pay-texts small {
  display: block;
  color: #000;
  font-size: 14px;
  margin-top: 2px;
}

section#paySection .section-title,
section#cardSection .section-title,
section#pixSection .section-title {
  font-size: 24px;
  font-weight: 400;
  color: #000;
  margin: 0;
  border-bottom: none;
  padding-bottom: 10px;
}

section#paySection .section-sub,
section#cardSection .section-sub,
section#pixSection .section-sub {
  margin: 0 0 12px;
  color: #000;
  font-size: 14px;
}

.body--pay .total-head[aria-expanded="true"] .th-bottom,
.body--pay .total-head[aria-expanded="true"] #totalTitle {
  display: none;
}

.body--pay .total-head[aria-expanded="true"] .th-top {
  justify-content: flex-end;
}

.card-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  padding-top: 10px;
}

.field {
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--gray-2);
  background: #eee;
  font-size: 16px;
}

.summary-card {
  max-width: 520px;
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  background: #fff;
  padding: 24px 20px;
  margin: 0 auto;
}

.summary-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 12px;
  column-gap: 12px;
}

.summary-grid .highlight {
  background: #eef9c7;
  padding: 6px 8px;
  border-radius: 8px;
}

.pix-countdown {
  margin: 10px 0 12px;
  color: #000;
  text-align: center;
}

.qr-box {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 30px #00000026;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Loader */
.qr-loader {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e5e5;
  border-top: 3px solid #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  position: absolute;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* imagem */
.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.pix-hint {
  max-width: 520px;
  color: #000;
  margin: 0 auto;
  padding: 10px 0;
}

.code-box {
  width: min(520px, 94vw);
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: block;
  margin-inline: auto;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
  padding-top: 20px;
}

.btn-ghost {
  background: #fff !important;
  color: #111 !important;
  border: 1px solid var(--gray-2);
  box-shadow: none !important;
}

.body--payflow .total-card {
  display: none;
}

.summary-total-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #eef9c7;
  padding: 16px 18px;
  border-radius: 8px;
}

.summary-total-row > span {
  color: #000;
}

.summary-total-row > strong {
  color: #000;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

.empty {
  text-align: center;
  padding: 28px 12px 8px;
  color: #111;
}

.empty__icon {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto 12px;
  opacity: 0.9;
}

.empty__title {
  margin: 0 0 6px;
  font-weight: 600;
}

.empty__desc {
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.35;
}

.empty-info {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  margin: 22px auto 120px;
  width: min(var(--maxw), 94vw);
  background: #eee;
  border: 1px solid #9ca3af;
  border-radius: 12px;
  padding: 16px;
}

.empty-info__icon {
  width: 40px;
  height: auto;
  margin-top: 20px;
}

.empty-info__text {
  color: #4b5563;
}

.dlg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  z-index: 1000;
}

.dlg.is-open {
  display: block;
}

.dlg__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #00000073;
}

.dlg__card {
  position: relative;
  margin: 35vh auto 0;
  width: min(480px, 92%);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 25px 80px #00000059;
}

.dlg__title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 0 8px;
  text-align: center;
}

.dlg__primary {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: #000;
  color: #e5ff51;
  font-weight: 700;
  cursor: pointer;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  display: inline-block;
}

.badge-today {
  background: #b71c1c;
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(179, 107, 0, 0.12);
}

.badge-expired {
  border: 1px solid #b71c1c;
  color: #b71c1c;
  font-weight: 600;
  background: #fff;
}

.badge-tem-pix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: #000;
  border: 1px solid #ffc31e;
}

.m__grab {
  width: 56px;
  height: 4px;
  background: #d1d5db;
  border-radius: 999px;
  margin: 0 auto 10px;
}

.modal__card,
.fixpay-frame-wrap {
  height: clamp(480px, 95dvh, 700px) !important;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  width: 720px !important;
}

@media (max-width: 1800px) {
  .modal__card,
  .fixpay-frame-wrap {
    height: clamp(420px, 85dvh, 620px) !important;
    height: clamp(420px, 85vh, 620px) !important;
  }
}

@media (max-width: 768px) {
  .modal__card,
  .fixpay-frame-wrap {
    height: clamp(420px, 85dvh, 670px) !important;
    height: clamp(420px, 85vh, 670px) !important;
  }
}

.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--gray-2);
}

.section-stamp {
  font-size: 12px;
  white-space: nowrap;
}

.section-stamp {
  font-size: 13px;
  white-space: nowrap;
}

.section-stamp:before {
  content: "Atualizado em: ";
  color: #000;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.7;
}

.section-stamp {
  color: #000;
  font-weight: 700;
  font-size: 16px;
}

@media (max-width: 480px) {
  .section-bar {
    justify-content: center;
    align-items: center;
    gap: 40px;
  }
}

.empty[hidden] {
  display: none !important;
}

.modal__card,
.fixpay-frame-wrap {
  width: auto !important;
  max-width: min(720px, 96vw) !important;
  margin-inline: auto;
  height: min(700px, 95dvh) !important;
  -webkit-overflow-scrolling: touch;
}

.container .modal__card,
.container .fixpay-frame-wrap {
  max-width: min(720px, 96vw) !important;
}

.page,
.container,
.hero-strap {
  overflow: visible !important;
}

.fixpay-frame-wrap iframe,
.modal__card iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  border: 0;
}

.fixpay-frame-wrap img,
.modal__card img,
.fixpay-frame-wrap canvas {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .modal__card,
  .fixpay-frame-wrap {
    max-width: 96vw !important;
    max-height: min(670px, 85dvh) !important;
    overflow: auto !important;
  }
}

.popup {
  position: fixed;
  top: 20px;
  right: 20px;
  left: auto;
  bottom: auto;
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px #0006;
  max-width: 360px;
  z-index: 9999;
}

.popup.hidden {
  display: none;
}

.popup-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.popup-icon {
  background: #c6ff00;
  color: #000;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 8px;
}

.popup-text p {
  margin: 4px 0 0;
  font-size: 14px;
}

.popup-close {
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
}

.popup-progress {
  width: 100%;
  height: 4px;
  background: #fff3;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}

.popup-progress-bar {
  height: 100%;
  width: 100%;
  background: #c6ff00;
  transition: width linear;
}

.skel-list {
  display: none !important;
}

.loading-wrap {
  padding-top: 80px;
}
