/* =========================================================
   LAYOUT V2 - visual baseado na pagina de referencia
   Carregado depois do style.css (pages/inc/header.php)
   ========================================================= */

body {
  background-color: #161c24 !important;
}

/* ---------- Topo: logo a esquerda, menu a direita ---------- */
.header-v2 {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: #000;
  transition: background-color 0.2s, backdrop-filter 0.2s;
}
/* ao rolar: topo menor e quase transparente (efeito da referencia) */
.header-v2.rolou {
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.header-v2-inner {
  max-width: 600px;
  height: 48px;
  margin: 0 auto;
  padding: 0 4px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.2s;
}
.header-v2.rolou .header-v2-inner {
  height: 40px;
}
.header-v2-logo {
  display: flex;
  align-items: center;
}
.header-v2 .header-app-brand {
  display: block !important;
  height: 40px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  transition: height 0.2s, max-width 0.2s;
}
.header-v2.rolou .header-app-brand {
  height: 30px;
  max-width: 100px;
}
.header-v2-menu {
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}
/* pagina da campanha: foto grudada no topo, sem faixa escura entre eles */
.app-main:has(> .campanha-header) {
  padding-top: 0 !important;
  border-radius: 0 !important;
}
.app-main > .campanha-header {
  border-radius: 0 !important;
}
.header-v2-gap {
  height: 18px;
  background: #000;
}

/* ---------- Faixa vermelha de aviso (rolando) ---------- */
.aviso-v2 {
  background: #ff4842;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}
.aviso-v2-track {
  display: inline-flex;
  animation: aviso-v2-rolar 28s linear infinite;
}
.aviso-v2-track span {
  padding-right: 80px;
}
.aviso-v2 strong {
  font-weight: 700;
}
@keyframes aviso-v2-rolar {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Card principal ---------- */
.app-main {
  background: #212b36 !important;
  border-radius: 15px 15px 0 0 !important;
  padding: 10px !important;
  margin-top: 0 !important;
  max-width: 600px;
}

/* ---------- Imagem / galeria ---------- */
.app-main .campanha-header {
  border-radius: 10px 10px 0 0 !important;
  overflow: hidden;
  background: #212b36 !important;
  margin: 0 !important;
}
/* foto de borda a borda, mesma proporcao da referencia (600x467) */
.app-main > .campanha-header,
.app-main > .meus-titulos-v2 {
  margin-left: -10px !important;
  margin-right: -10px !important;
  width: calc(100% + 20px) !important;
  max-width: none !important;
}
.app-main .campanha-header .custom-image {
  height: auto !important;
  aspect-ratio: 600 / 390;
}
.app-main .campanha-header .SorteioTpl_imagem__2GXxI {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
.app-main .custom-highlight-card:before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.75) 100%) !important;
}

/* contador 1/N com setas no canto superior direito */
.galeria-contador {
  position: absolute;
  top: 16px;
  right: 8px;
  z-index: 60;
  height: 32px;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(22, 28, 36, 0.48);
  display: flex;
  align-items: center;
  color: #fff;
}
.galeria-contador .gc-btn {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  padding: 0 4px;
  cursor: pointer;
}
.galeria-contador .gc-num {
  font-size: 14px;
  font-weight: 600;
  padding: 0 2px;
}

/* selo piscando */
.app-main .campanha-header .custom-badge-display {
  top: auto !important;
  bottom: 48px !important;
  left: 8px !important;
  right: auto !important;
}
.app-main .campanha-header .custom-badge-display .badge {
  background-color: #198754 !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}
.app-main .campanha-header .custom-badge-display .badge.blink {
  animation: blink-v2 1.4s ease-in-out infinite !important;
}
@keyframes blink-v2 {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* titulo e subtitulo sobre a imagem */
.app-main .campanha-header .custom-content-wrapper {
  padding: 0 8px 6px !important;
}
.app-main .campanha-header .SorteioTpl_title__3RLtu {
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 19px;
}
.app-main .campanha-header .SorteioTpl_descricao__1b7iL {
  color: #fff !important;
  opacity: 0.85;
  font-size: 12px !important;
  text-transform: uppercase;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 19px;
}

/* barra "Meus titulos" colada embaixo da imagem */
.meus-titulos-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 28px;
  border: 0;
  background: #161c24;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.meus-titulos-v2 i {
  font-size: 15px;
}

/* ---------- Sorteio / Por apenas ---------- */
.app-main .campanha-buscas {
  margin-top: 0 !important;
}
.preco-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}
.preco-v2-label {
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}
.preco-v2-data {
  background: #161c24;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}
.preco-v2-valor {
  background: #000;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
}

/* ---------- Botoes Menor e Maior / Premios ---------- */
.btn-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 31px;
  margin-bottom: 2px;
  padding: 4px 10px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.btn-v2-verde { background: #198754; }
.btn-v2-cinza { background: #6c757d; }
.btn-v2:hover { filter: brightness(1.08); }

/* ---------- Quanto mais titulos... ---------- */
.chances-v2 {
  text-align: center;
  font-size: 12.8px;
  padding: 8px;
  margin: 2px 0 4px;
  border-radius: 16px;
}

/* ---------- Descricao / Regulamento recolhivel ---------- */
.app-main .desc-v2 {
  background: #212b36;
  border-radius: 16px;
  padding: 8px;
  margin: 4px 0 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.desc-v2-btn {
  width: 100%;
  background: none;
  border: 0;
  color: #fff;
  font-size: 14.4px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.desc-v2-btn i {
  transition: transform 0.3s;
}
.desc-v2-btn:not(.collapsed) i {
  transform: rotate(180deg);
}
.desc-v2-body {
  font-size: 14px;
  padding: 8px 4px 0;
  color: #fff;
}

/* ---------- Icones de compartilhar ---------- */
.share-v2 {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 16px;
}
.share-v2 a {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 18px;
  text-decoration: none;
}
.share-v2-fb { background: #3b5998; }
.share-v2-tw { background: #1da1f2; }
.share-v2-tg { background: #1da1f2; }
.share-v2-wa { background: #1b9b5b; }

/* ---------- Titulos premiados (igual a referencia) ---------- */
.tv-prizes {
  margin: 10px 0 12px;
}
.tv-prizes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
  margin-bottom: 6px;
}
.tv-prizes-head h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.tv-trophy {
  font-size: 18px;
  line-height: 1;
}
.tv-prizes-count {
  border: 1px solid #198754;
  color: #2ecc71;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 700;
}
.tv-prizes-count:empty {
  display: none;
}
.tv-prizes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tv-prize {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: #161c24;
  border-radius: 8px;
  padding: 4px 8px 4px 4px;
  min-height: 30px;
  color: #fff;
}
.tv-prize[hidden] {
  display: none;
}
.tv-prize-number {
  background: #919eab;
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.tv-prize-reward {
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-prize-status {
  font-size: 12px;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 6px;
}
.tv-prize.is-won {
  background: #198754;
}
.tv-prize.is-won .tv-prize-number {
  background: #fff;
  color: #000;
}
.tv-prize.is-won .tv-prize-reward,
.tv-prize.is-won .tv-prize-status {
  font-weight: 600;
}
.tv-prize-loading {
  display: block;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}
.tv-prizes-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
  background: none;
  border: 0;
  color: #2ecc71;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.tv-prizes-more[hidden] {
  display: none;
}
.tv-prizes-more.aberto i {
  transform: rotate(180deg);
}

/* ---------- Linha: quantidade + Quero participar (mesma altura, sem esticar) ---------- */
.app-vendas-express .numeros-select > .d-flex {
  align-items: stretch !important;
  gap: 6px;
}
.app-vendas-express .vendasExpressNums.card {
  flex: 1 1 0 !important;
  width: auto !important;
  height: 60px !important;
  margin: 0 0 8px 0 !important;
}
.app-vendas-express .vendasExpressNums .card-body {
  height: 100%;
}
.app-vendas-express .btn-success.app-card {
  flex: 1 1 0 !important;
  width: auto !important;
  height: 60px !important;
  min-height: 60px;
  overflow: hidden;
  /* icone + texto centralizados no botao */
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
}
.app-vendas-express .btn-participar-v2 {
  width: auto !important;
  align-items: center !important;
}
.app-vendas-express .btn-participar-v2 > div {
  line-height: 1.2;
}
.app-vendas-express .btn-participar-v2 .col {
  flex: none !important;
}
/* raio de luz passando no botao + brilho pulsando (igual a referencia) */
.app-vendas-express .btn-success.app-card {
  position: relative;
  animation: botao-v2-pulso 4s ease-in-out infinite;
}
.app-vendas-express .btn-success.app-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  pointer-events: none;
  animation: botao-v2-raio 5s ease infinite;
}
@keyframes botao-v2-raio {
  0% { left: -60%; }
  15%, 100% { left: 120%; }
}
@keyframes botao-v2-pulso {
  0%, 100% { filter: drop-shadow(0 4px 7.5px rgba(40, 167, 69, 0.3)); }
  50% { filter: drop-shadow(0 4px 12.5px rgba(40, 167, 69, 0.6)); }
}
.btn-participar-v2 #total {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}
/* com promocao: "De R$ X por R$ Y" numa linha so, valor antigo riscado menor */
.btn-participar-v2 #total:has(strike) {
  font-size: 15px;
}
.btn-participar-v2 #total strike {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
}
.btn-participar-v2 #total br {
  display: none !important;
}
/* celular: botao continua com 60px; com promocao o preco quebra em 2 linhas pequenas */
@media (max-width: 575px) {
  .app-vendas-express .btn-success.app-card {
    padding: 4px 8px !important;
  }
  .btn-participar-v2 > i {
    font-size: 1.15rem !important;
    margin-right: 6px !important;
  }
  .btn-participar-v2 span[style] {
    font-size: 12px !important;
  }
  .btn-participar-v2 #total:has(strike) {
    font-size: 13px;
    white-space: normal;
    line-height: 1.15;
    display: block;
    text-align: left;
  }
  .btn-participar-v2 .price-mobile {
    white-space: normal !important;
  }
  .btn-participar-v2 #total:has(strike) br {
    display: block !important;
  }
  .app-vendas-express .vendasExpressNums .numeroChange {
    padding: 4px !important;
  }
  .app-vendas-express .vendasExpressNums .qty {
    padding: 4px 2px !important;
    font-size: 15px;
  }
}

/* ---------- Top compradores no padrao do layout (mesmo estilo dos Titulos Premiados) ---------- */
.app-main .ranking-header {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 2px !important;
  margin: 10px 0 6px !important;
}
.app-main .ranking-title {
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #fff !important;
}
.app-main .ranking-title-icon {
  font-size: 18px !important;
  line-height: 1;
}
.app-main .ranking-subtitle {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 4px 0 0 !important;
  line-height: 1.4;
}
.app-main .top-compradores {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 0 4px !important;
}
.app-main .top-compradores .item-content {
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  flex: none !important;
}
/* mesmo padrao dos quadrados "Selecionar": 80px de altura, cantos 8px, 3px entre eles */
.app-main .top-compradores {
  gap: 3px !important;
}
.app-main .top-compradores .customer-details {
  background: #161c24 !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 8px !important;
  min-height: 80px;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.app-main .top-compradores .customer-medal {
  font-size: 18px !important;
  line-height: 1 !important;
  margin: 0 0 3px !important;
}
.app-main .top-compradores .ganhador-name {
  display: block;
  margin: 2px 0 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.app-main .top-compradores .customer-qty {
  margin: 2px 0 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* ---------- Campo de quantidade igual a referencia ---------- */
.app-main .vendasExpressNums.card {
  background: #212b36 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
}

/* =========================================================
   TEMA PADRAO (claro) - cores da referencia monteirooficial
   Ativo quando Admin > Configuracoes > Tema = "Padrao"
   ========================================================= */
body.tema-padrao {
  background-color: #e5e5e5 !important;
  color: #222 !important;
}
body.tema-padrao .app-main {
  background: #e5e5e5 !important;
  color: #222;
}
/* barra "Meus titulos" e preco em preto */
body.tema-padrao .meus-titulos-v2 {
  background: #000;
  color: #e0e0e0;
}
body.tema-padrao .preco-v2-label,
body.tema-padrao .chances-v2 {
  color: #323232;
}
body.tema-padrao .preco-v2-data {
  background: rgba(255, 255, 255, 0.5);
  color: #414141;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.133);
}
body.tema-padrao .preco-v2-valor {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.133);
}
/* botoes de quantidade: cinza claro, "mais popular" preto */
body.tema-padrao .vendasExpressNumsSelect.v2 .item .item-content {
  background-color: #f4f4f4 !important;
}
body.tema-padrao .vendasExpressNumsSelect.v2 .item .item-content h3,
body.tema-padrao .vendasExpressNumsSelect.v2 .item .item-content .item-content-txt {
  color: #414141 !important;
}
body.tema-padrao .vendasExpressNumsSelect.v2 .item.mais-popular .item-content {
  background-color: #000 !important;
  border-color: #000 !important;
}
body.tema-padrao .vendasExpressNumsSelect.v2 .item.mais-popular .item-content h3,
body.tema-padrao .vendasExpressNumsSelect.v2 .item.mais-popular .item-content .item-content-txt {
  color: #fff !important;
}
/* campo de quantidade */
body.tema-padrao .app-main .vendasExpressNums.card {
  background: #eee !important;
  border: 1px solid rgba(23, 23, 23, 0.18) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.08);
}
body.tema-padrao .vendasExpressNums .qty {
  color: #222 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}
body.tema-padrao .vendasExpressNums .numeroChange {
  color: #535353 !important;
}
/* botao de compra */
body.tema-padrao .app-vendas-express .btn-success.app-card {
  border-radius: 11px !important;
}
body.tema-padrao .app-vendas-express .btn-success.app-card,
body.tema-padrao .app-vendas-express .btn-success.app-card * {
  color: #fff !important;
}
/* descricao */
body.tema-padrao .app-main .desc-v2 {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(50, 50, 50, 0.22);
}
body.tema-padrao .desc-v2-btn {
  color: #323232;
}
body.tema-padrao .desc-v2-body {
  color: #222;
}
/* titulos premiados */
body.tema-padrao .tv-prizes-head h2 {
  color: #323232;
}
body.tema-padrao .tv-prize {
  background: #fff;
  color: #171717;
  border: 1px solid rgba(50, 50, 50, 0.22);
  border-radius: 10px;
}
body.tema-padrao .tv-prize-number {
  background: rgba(50, 50, 50, 0.06);
  color: #171717;
}
body.tema-padrao .tv-prize.is-won {
  background: #198754;
  color: #fff;
  border-color: #198754;
}
body.tema-padrao .tv-prize.is-won .tv-prize-number {
  background: #fff;
  color: #000;
}
body.tema-padrao .tv-prizes-count {
  color: #198754;
}
body.tema-padrao .tv-prizes-more {
  color: #198754;
}
/* top compradores */
body.tema-padrao .app-main .ranking-title {
  color: #323232 !important;
}
body.tema-padrao .app-main .ranking-subtitle {
  color: #6c757d !important;
}
body.tema-padrao .app-main .top-compradores .customer-details {
  background: #f4f4f4 !important;
  box-shadow: none;
  border-radius: 8px !important;
}
body.tema-padrao .app-main .top-compradores .ganhador-name {
  color: #414141 !important;
}
body.tema-padrao .app-main .top-compradores .customer-qty {
  color: #414141 !important;
}

/* =========================================================
   CARTAO DE PROMOCAO COM CONTAGEM (Cotas em dobro / Nx mais chances / Ultimos numeros)
   ========================================================= */
.promo-card-v2 {
  border-radius: 8px;
  padding: 8px 12px 7px;
  margin: 6px 0 8px;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.promo-cor-verde    { background: linear-gradient(135deg, #198754, #146c43); }
.promo-cor-vermelho { background: linear-gradient(135deg, #cc1c1c, #7a0909); }
.promo-cor-azul     { background: linear-gradient(135deg, #1d6fd8, #123f86); }
.promo-cor-roxo     { background: linear-gradient(135deg, #7e22ce, #4a1784); }
.promo-cor-laranja  { background: linear-gradient(135deg, #f57c00, #c25100); }
.promo-cor-preto    { background: linear-gradient(135deg, #2a2f36, #000); }
.promo-card-v2-titulo {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.25;
  margin-bottom: 6px;
}
/* trilho escuro + faixa listrada que anda e cresce ate o limite */
.promo-card-v2-barra {
  position: relative;
  height: 30px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.promo-card-v2-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  border-radius: 6px 0 0 6px;
  background-color: rgba(255, 255, 255, 0.10);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.28) 0,
    rgba(0, 0, 0, 0.28) 5px,
    rgba(255, 255, 255, 0.10) 5px,
    rgba(255, 255, 255, 0.10) 10px
  );
  background-size: 14.14px 14.14px;
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  animation: promo-card-v2-listras 2.4s linear infinite;
}
@keyframes promo-card-v2-listras {
  from { background-position: 0 0; }
  to   { background-position: 14.14px 0; }
}
.promo-card-v2-tempo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.promo-card-v2-relogio {
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}
.promo-card-v2-texto {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
}
.promo-card-v2-validade {
  margin-top: 1px;
  font-size: 11.5px;
  opacity: 0.9;
}

/* =========================================================
   CHECKOUT V2 - so aparencia (mesma sequencia, mesmos campos e scripts)
   Login -> Cadastro -> Checkout (Concluir reserva) -> Pagina do pedido (PIX)
   ========================================================= */
#loginModal .modal-content,
#cadastroModal .modal-content,
#modal-checkout .modal-content {
  border: 0 !important;
  border-radius: 16px !important;
  overflow: hidden;
  background: #fff !important;
  color: #1f2328 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
@media (max-width: 767.98px) {
  #loginModal .modal-fullscreen-md-down .modal-content,
  #cadastroModal .modal-fullscreen-md-down .modal-content {
    border-radius: 0 !important;
  }
}
#loginModal .modal-header,
#cadastroModal .modal-header,
#modal-checkout .modal-header {
  border-bottom: 0 !important;
  padding: 18px 20px 4px !important;
}
#loginModal .modal-title,
#cadastroModal .modal-title,
#modal-checkout .modal-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #111 !important;
}
#loginModal .btn-close,
#cadastroModal .btn-close,
#modal-checkout .btn-close {
  background-color: #f1f3f5;
  border-radius: 50%;
  padding: 10px;
  opacity: 0.8;
}
#loginModal .modal-body,
#cadastroModal .modal-body,
#modal-checkout .modal-body {
  padding: 8px 20px 20px !important;
}
#loginModal .modal-body > p.text-muted,
#cadastroModal .modal-body > p.text-muted {
  font-size: 13px !important;
  color: #6b7280 !important;
  margin-bottom: 14px;
}
/* campos */
#loginModal .form-control,
#cadastroModal .form-control {
  height: 50px;
  border-radius: 10px !important;
  border: 1.5px solid #d0d5dd !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 16px;
  box-shadow: none !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#loginModal .form-floating > .form-control {
  height: 56px;
  padding-top: 1.4rem;
}
#loginModal .form-control:focus,
#cadastroModal .form-control:focus {
  border-color: #198754 !important;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.15) !important;
}
#cadastroModal .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}
#cadastroModal .modal-body .mb-2 {
  margin-bottom: 12px !important;
}
/* botao principal: verde, largo */
#loginModal .btn-primary,
#cadastroModal .btn-primary {
  width: 100%;
  height: 50px;
  border: 0 !important;
  border-radius: 10px !important;
  background: #198754 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(25, 135, 84, 0.3);
  margin-top: 6px;
}
#loginModal .btn-primary:hover,
#cadastroModal .btn-primary:hover {
  filter: brightness(1.07);
}
#loginModal .btn-link a {
  color: #198754 !important;
  font-weight: 600;
  font-size: 14px;
}
#cadastroModal .alert-primary {
  background: #f3f4f6 !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #4b5563 !important;
  font-size: 12px !important;
}
#cadastroModal .alert-primary a {
  color: #198754 !important;
  font-weight: 600;
}
/* checkout: resumo + conta + Concluir reserva */
#modal-checkout .modal-body .alert-info {
  background: #ecfdf3 !important;
  border: 1px solid #b7ebc6 !important;
  border-radius: 12px !important;
  color: #14532d !important;
  font-size: 13px !important;
  line-height: 1.45;
  padding: 12px 14px !important;
}
#modal-checkout .modal-body .alert-info .bi {
  color: #198754;
}
#modal-checkout .modal-body .card.app-card {
  background: #f8f9fa !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  color: #111 !important;
  box-shadow: none !important;
}
#modal-checkout .modal-body .card.app-card h5,
#modal-checkout .modal-body .card.app-card small,
#modal-checkout .modal-body .card.app-card .bi {
  color: #111 !important;
}
#modal-checkout #place_order {
  height: 52px;
  border: 0 !important;
  border-radius: 10px !important;
  background: #198754 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(25, 135, 84, 0.3);
  position: relative;
  overflow: hidden;
}
#modal-checkout #place_order::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  pointer-events: none;
  animation: botao-v2-raio 5s ease infinite;
}
#modal-checkout .btn-link a {
  color: #6b7280 !important;
  font-size: 13px;
}

/* ---------- Pagina do pedido (PIX) ---------- */
.compra-status .app-alerta-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #111;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.compra-status .app-alerta-msg--icone {
  font-size: 30px !important;
  line-height: 1;
}
.compra-status .app-alerta-msg--titulo {
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 0 0 2px !important;
  color: #111 !important;
}
.compra-status .app-alerta-msg--txt p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}
.compra-status hr {
  display: none;
}
.compra-pagamento .pagamento-rapido .app-card,
.compra-pagamento .app-card.rounded-bottom {
  background: #fff !important;
  color: #111 !important;
  border: 0 !important;
}
.compra-pagamento .pagamento-rapido .app-card {
  border-radius: 14px 14px 0 0 !important;
  border-bottom: 1px solid #eef0f2 !important;
}
.compra-pagamento .app-card.rounded-bottom {
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.pagamento-rapido--progress .progress {
  height: 10px;
  border-radius: 999px;
  background: #e9ecef !important;
}
.pagamento-rapido--progress .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #f59f00, #e03131) !important;
}
.pagamento-rapido--progress #tempo-restante {
  color: #e03131;
}
.compra-pagamento .badge.bg-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  margin-right: 6px;
  font-size: 12px;
}
.compra-pagamento .font-xs {
  color: #374151;
}
.compra-pagamento .input-group {
  border: 1.5px solid #d0d5dd;
  border-radius: 10px;
  overflow: hidden;
}
.compra-pagamento #pixCopiaCola {
  border: 0 !important;
  height: 46px;
  background: #f8f9fa !important;
  color: #111 !important;
  font-size: 13px;
  box-shadow: none !important;
}
.compra-pagamento .input-group .app-btn {
  height: 46px;
  border-radius: 0 !important;
  padding: 0 18px;
  font-weight: 700;
  background: #198754 !important;
  border: 0 !important;
}
.compra-pagamento .alert-warning {
  background: #fff8e6 !important;
  border: 1px solid #ffe2a8 !important;
  border-radius: 10px !important;
  color: #7a5200 !important;
  text-align: left !important;
}
.compra-pagamento div[style*="bg-btn-qr"] {
  background-image: none !important;
}
.compra-pagamento .btn-qr {
  width: 100%;
  height: 46px;
  border: 1.5px solid #198754;
  border-radius: 10px;
  background: #fff;
  color: #198754;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.compra-pagamento .btn-qr:hover {
  background: #ecfdf3;
}
.compra-pagamento #img-qrcode {
  padding: 8px;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
/* detalhes da compra (recibo) */
.app-main .detalhes.app-card {
  background: #fff !important;
  color: #111 !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.app-main .detalhes.app-card .item.d-flex {
  justify-content: space-between;
  border-bottom: 1px dashed #e5e7eb;
  padding: 6px 0 !important;
  margin: 0 !important;
}
.app-main .detalhes.app-card .title {
  color: #6b7280 !important;
}
.app-main .detalhes.app-card .result {
  color: #111 !important;
  font-weight: 600;
}
.app-main .detalhes.app-card .page-link {
  color: #198754;
  border-radius: 8px;
  margin: 0 2px;
}
.app-main .detalhes.app-card .page-item.active .page-link {
  background: #198754;
  border-color: #198754;
  color: #fff;
}
.app-main > a.app-btn {
  border-radius: 12px !important;
  height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}
@media (min-width: 576px) {
  #loginModal .modal-dialog.modal-sm,
  #cadastroModal .modal-dialog.modal-sm {
    max-width: 380px;
  }
  #modal-checkout .modal-dialog {
    max-width: 440px;
  }
}

/* =========================================================
   OFERTA NO CHECKOUT ("Aumente suas chances") - padrao Trevo
   ========================================================= */
.cb-v2 {
  background: linear-gradient(180deg, #f0fbf4 0%, #e6f7ec 100%);
  border: 1px solid #c7ecd4;
  border-left: 4px solid #198754;
  border-radius: 14px;
  padding: 12px;
  margin: 4px 0 14px;
  text-align: left;
}
.cb-v2-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cb-v2-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(25, 135, 84, 0.35);
}
.cb-v2-titulo {
  font-size: 16px;
  font-weight: 700;
  color: #14532d;
  line-height: 1.2;
}
.cb-v2-sub {
  font-size: 12px;
  color: #4b7a5d;
  line-height: 1.3;
}
.cb-v2-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #d5eadc;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 8px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.08s;
}
.cb-v2-opt:last-child {
  margin-bottom: 0;
}
.cb-v2-opt:active {
  transform: scale(0.99);
}
.cb-v2-rec {
  border-style: dashed;
  border-color: #198754;
}
.cb-v2-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cb-v2-box {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 7px;
  border: 2px solid #b6cfc0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  transition: background 0.15s, border-color 0.15s;
}
.cb-v2-box i {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
}
.cb-v2-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.cb-v2-qtd {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.cb-v2-preco {
  font-size: 14px;
  font-weight: 700;
  color: #198754;
  margin-top: 2px;
}
.cb-v2-tag {
  flex: 0 0 auto;
  background: #198754;
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
/* marcado */
.cb-v2-opt.cb-v2-ativo {
  background: #ecfdf3;
  border-color: #198754;
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
}
.cb-v2-opt.cb-v2-ativo .cb-v2-box {
  background: #198754;
  border-color: #198754;
}
.cb-v2-opt.cb-v2-ativo .cb-v2-box i {
  opacity: 1;
  transform: scale(1);
}

/* celular: Login/Cadastro em tela cheia com o conteudo no meio (oferta em cima, campo e botao embaixo) */
@media (max-width: 767.98px) {
  #loginModal .modal-fullscreen-md-down .modal-body,
  #cadastroModal .modal-fullscreen-md-down .modal-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 60px !important;
    padding-bottom: 16px !important;
  }
}

/* ===== Checkout: resumo "Voce esta adquirindo" + campo de telefone com dica ===== */
.ck-resumo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 2px 0 12px;
}
.ck-resumo-esq,
.ck-resumo-dir {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.ck-resumo-dir {
  align-items: flex-end;
  text-align: right;
  flex: 0 0 auto;
}
.ck-resumo-rot {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #6b7280;
}
.ck-resumo-nome {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ck-resumo-qtd {
  font-size: 12px;
  color: #6b7280;
}
.ck-resumo-total {
  font-size: 15px;
  font-weight: 800;
  color: #198754;
}
.ck-tel-rotulo {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}
#loginModal .ck-tel .form-control {
  height: 50px;
  padding-top: 0.375rem;
}
.ck-tel-dica {
  margin-top: 6px;
  font-size: 12.5px;
  color: #6b7280;
}
.ck-tel-dica .bi {
  margin-right: 3px;
}
/* no celular a janela fica como cartao (com margem nas laterais) */
@media (max-width: 575.98px) {
  #loginModal .modal-dialog,
  #cadastroModal .modal-dialog {
    margin: 12px;
  }
}

/* ===== Checkout/Cadastro compactos + selo "Compra 100% segura" ===== */
.ck-linha2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
#cadastroModal .modal-body .mb-2,
#loginModal .modal-body .mb-2 {
  margin-bottom: 8px !important;
}
#cadastroModal .form-control,
#loginModal .ck-tel .form-control {
  height: 44px !important;
  font-size: 15px;
}
#cadastroModal .form-label {
  font-size: 12px;
  margin-bottom: 3px;
}
#cadastroModal .modal-body > p.text-muted,
#loginModal .modal-body > p.text-muted {
  font-size: 12px !important;
  margin-bottom: 8px !important;
}
#cadastroModal .alert-primary {
  padding: 7px 10px !important;
  margin: 6px 0 8px !important;
  font-size: 11.5px !important;
}
#loginModal .btn-primary,
#cadastroModal .btn-primary {
  height: 46px !important;
  margin-bottom: 2px !important;
}
#loginModal .modal-header,
#cadastroModal .modal-header {
  padding: 14px 16px 2px !important;
}
#loginModal .modal-body,
#cadastroModal .modal-body {
  padding: 6px 16px 14px !important;
}
/* oferta e resumo mais enxutos dentro das janelas */
.modal .ck-resumo {
  padding: 8px 10px;
  margin: 0 0 8px;
}
.modal .cb-v2 {
  padding: 9px 10px;
  margin: 2px 0 10px;
}
.modal .cb-v2-head {
  margin-bottom: 7px;
  gap: 8px;
}
.modal .cb-v2-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 14px;
}
.modal .cb-v2-titulo {
  font-size: 15px;
}
.modal .cb-v2-opt {
  padding: 7px 10px;
  margin-bottom: 6px;
}
.modal .cb-v2-qtd {
  font-size: 14px;
}
.modal .cb-v2-preco {
  font-size: 13px;
  margin-top: 1px;
}
.modal .cb-v2-box {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}
/* selo */
.ck-seguro {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: #6b7280;
}
.ck-seguro b {
  color: #111;
  font-weight: 800;
}
.ck-seguro .bi {
  color: #198754;
  margin-left: 2px;
}
.modal .cb-v2-opt:last-child {
  margin-bottom: 0;
}
