/* Checkout do PASSE: folha por cima da página (tela cheia no celular) */
.ck {
  position: fixed;
  inset: 0;
  z-index: 2000; /* acima da header (999) */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.55);
  font-family: var(--fonte-texto);
  color: #111;
}

.ck[hidden] {
  display: none;
}

.ck-folha {
  width: 100%;
  max-width: var(--conteudo, 480px);
  height: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  padding: 0 20px 32px;
  animation: ck-sobe 0.28s ease both;
}

@media (min-width: 520px) {
  .ck {
    align-items: center;
  }
  .ck-folha {
    height: auto;
    max-height: 92dvh;
    border-radius: 24px;
  }
}

@keyframes ck-sobe {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.ck-topo {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -20px 8px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.ck-titulo {
  font-size: 20px;
  font-weight: 800;
}

.ck-titulo span,
.ck-vermelho {
  color: var(--cor, #cc130a);
  font-weight: 900;
}

.ck-fechar {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #efeded;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.ck-fechar svg {
  width: 22px;
  height: 22px;
}

.ck-passo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.ck-passo[hidden],
.ck [data-so][hidden] {
  display: none;
}

.ck-centro {
  align-items: center;
  text-align: center;
  padding-top: 32px;
  font-size: 16px;
  line-height: 1.45;
  color: #333;
}

.ck-grande {
  font-size: 24px;
  font-weight: 800;
  color: #111;
}

/* resumo do pedido */
.ck-resumo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #111;
  color: #fff;
}

.ck-resumo-icone {
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--cor, #cc130a);
}

.ck-resumo-texto {
  flex: 1;
  min-width: 0;
}

.ck-resumo-nome {
  font-weight: 800;
  font-size: 17px;
}

.ck-resumo-sub {
  font-size: 14px;
  opacity: 0.75;
}

.ck-resumo-preco {
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.ck-secao {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 800;
}

/* campos */
.ck-campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ck-campo label {
  font-size: 15px;
  font-weight: 700;
}

.ck-campo input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 2px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 18px;
  color: #111;
}

.ck-campo input:focus {
  outline: none;
  border-color: #111;
}

.ck-campo input[aria-invalid="true"] {
  border-color: var(--cor, #cc130a);
  background: #fff6f5;
}

.ck-dica {
  font-size: 13px;
  color: #777;
}

.ck-erro-campo {
  font-size: 14px;
  font-weight: 600;
  color: var(--cor, #cc130a);
}

.ck-erro-campo:empty {
  display: none;
}

.ck-dupla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ck-cartao {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Pix / Cartão */
.ck-abas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ck-abas button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px;
  border: 2px solid #e5e5e5;
  border-radius: 16px;
  background: #fafafa;
  font: inherit;
  color: #666;
  cursor: pointer;
}

.ck-abas button svg {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
}

.ck-abas button b {
  font-size: 17px;
}

.ck-abas button span {
  font-size: 13px;
}

.ck-abas button[aria-checked="true"] {
  border-color: #111;
  background: #fff;
  color: #111;
}

/* avisos */
.ck-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(204, 19, 10, 0.25);
  border-radius: 14px;
  background: #fff1f0;
  color: #3a0a07;
  font-size: 14px;
  line-height: 1.4;
}

.ck-info svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--cor, #cc130a);
}

.ck-info b {
  color: var(--cor, #cc130a);
}

.ck-erro {
  padding: 14px;
  border-radius: 14px;
  background: #fff1f0;
  color: var(--cor, #cc130a);
  font-weight: 700;
}

.ck-erro[hidden] {
  display: none;
}

/* botões */
.ck-botao {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.ck-botao[hidden] {
  display: none;
}

.ck-botao:disabled {
  opacity: 0.6;
  cursor: progress;
}

.ck-botao--claro {
  background: #efeded;
  color: #111;
}

.ck-botao--ok {
  background: #138a3c;
}

.ck-botao--whats {
  background: #25d366;
  color: #08310f;
}

.ck-seguro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #138a3c;
}

.ck-seguro svg {
  width: 16px;
  height: 16px;
}

.ck-termos {
  font-size: 12px;
  line-height: 1.4;
  color: #888;
  text-align: center;
}

.ck-termos a {
  color: inherit;
}

/* Pix */
.ck-pix-topo {
  padding: 18px;
  border-radius: 18px;
  background: #fafafa;
  text-align: center;
}

.ck-pix-rotulo {
  color: #666;
}

.ck-pix-valor {
  font-size: 34px;
  font-weight: 900;
}

.ck-pix-prazo {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #efeded;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ck-pix-prazo.ck-acabando {
  background: #fff1f0;
  color: var(--cor, #cc130a);
}

.ck-caixa {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #fafafa;
  font-size: 16px;
  line-height: 1.4;
}

.ck-pix-codigo {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: #666;
}

.ck-qr summary {
  font-weight: 700;
  cursor: pointer;
}

.ck-qr img {
  display: block;
  width: 220px;
  margin: 12px auto 0;
  border-radius: 12px;
  background: #fff;
}

.ck-aguardando {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fafafa;
  font-size: 15px;
  color: #333;
}

.ck-roda {
  flex: none;
  width: 22px;
  height: 22px;
  border: 3px solid #e5e5e5;
  border-top-color: var(--cor, #cc130a);
  border-radius: 50%;
  animation: ck-gira 0.8s linear infinite;
}

.ck-roda--grande {
  width: 56px;
  height: 56px;
  border-width: 5px;
}

@keyframes ck-gira {
  to { transform: rotate(360deg); }
}

/* sucesso */
.ck-ok {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #138a3c;
  color: #fff;
}

.ck-ok svg {
  width: 48px;
  height: 48px;
}

.ck-codigo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--cor, #cc130a);
  border-radius: 16px;
}

.ck-codigo span {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
}

.ck-codigo b {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--cor, #cc130a);
}

html.ck-aberto {
  overflow: hidden;
}
