/* =====================================================
   MODAL – ESTABELECIMENTO FECHADO
   Layout moderno • Centralizado • Responsivo
   ===================================================== */

/* Overlay */
.qr-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 18px;
}

/* Modal box */
.qr-modal{
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
  transform: translateY(10px) scale(0.97);
  opacity: 0;
  transition: all .25s ease;
}

/* Estado aberto */
.qr-modal-overlay.is-open{
  display: flex;
}
.qr-modal-overlay.is-open .qr-modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Botão fechar */
.qr-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: rgba(255,255,255,.9);
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.qr-modal-close:hover{
  background: #ffffff;
}

/* Hero (topo colorido) */
.qr-modal-hero{
  padding: 22px 22px 16px 22px;
  background: linear-gradient(135deg, #FF6A3D, #FFB703);
  color: #fff;
}

.qr-modal-badge{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}

.qr-modal-title{
  margin: 0 0 8px 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.qr-modal-subtitle{
  margin: 0;
  opacity: .95;
  font-size: 14.5px;
  line-height: 1.35;
}

/* Conteúdo */
.qr-modal-card{
  padding: 16px 18px;
}

.qr-modal-row{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.qr-modal-icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF3E6;
  font-size: 18px;
}

.qr-modal-text{
  font-size: 14px;
  line-height: 1.35;
  color: #2a2a2a;
}

.qr-modal-divider{
  height: 1px;
  background: #f0f0f0;
  margin: 14px 0;
}

/* Ações */
.qr-modal-actions{
  display: flex;
  gap: 10px;
  padding: 0 18px 14px 18px;
}

.qr-btn{
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  width: 100%;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.qr-btn:active{
  transform: scale(0.98);
}

.qr-btn-primary{
  background: #1cc88a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(28,200,138,.25);
}
.qr-btn-primary:hover{
  background: #18b57b;
}

.qr-btn-ghost{
  background: #f6f7fb;
  color: #222;
}
.qr-btn-ghost:hover{
  background: #eef0f7;
}

/* Rodapé */
.qr-modal-footnote{
  margin: 0;
  padding: 0 18px 18px 18px;
  font-size: 12.5px;
  color: #6a6a6a;
}

/* Mobile */
@media (max-width: 480px){
  .qr-modal-title{
    font-size: 20px;
  }
  .qr-modal-actions{
    flex-direction: column;
  }
}

/* Cupom box */
.qr-cupom-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px;
  border: 2px dashed rgba(255,106,61,.65);
  border-radius: 14px;
  background: #fffaf5;
}
.qr-cupom-code{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .8px;
  color:#222;
}
.qr-cupom-badge{
  background: #ff6a3d;
  color:#fff;
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width:480px){
  .qr-cupom-box{ flex-direction: column; align-items:flex-start; }
  .qr-cupom-badge{ width:100%; text-align:center; }
}

/* ============================= */
/* Botão "Voltar amanhã" pulsar  */
/* (forçado por ID para não ser sobrescrito) */
/* ============================= */

@keyframes qr_pulse_soft {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 106, 61, 0.45);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 14px rgba(255, 106, 61, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 106, 61, 0);
  }
}

/* ✅ Só o botão do Modal FECHADO ("Voltar amanhã") */
#btnFechadoAvisar{
  animation: qr_pulse_soft 2.0s infinite !important;
  will-change: transform, box-shadow;
  position: relative;
  z-index: 2;
}

/* Pausa no hover (desktop) + dá destaque */
#btnFechadoAvisar:hover{
  animation-play-state: paused !important;
  transform: scale(1.06) !important;
}

/* Respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce){
  #btnFechadoAvisar{ animation: none !important; }
}
