/**
 * Roleta de sorteio — só carrega em páginas onde functions.php
 * chama wp_enqueue_style('digitaledu-roleta-sorteio', ...) (mesmo critério do JS).
 *
 * Não existia ficheiro CSS antigo desta roleta no tema; estilos soltos vinham da página WP
 * e de style.cssText no JS (removido). Este ficheiro concentra o visual da ferramenta.
 */

#resultado {
  overflow: hidden;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

#resultado .roleta-resultado-conteudo {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.75rem;
  max-width: min(22rem, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

#resultado .titulo {
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  line-height: 1.35;
  font-weight: 500;
  color: #1a1a1a;
}

#resultado .vencedor {
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  line-height: 1.25;
  color: #002f77;
}

#resultado .vencedor strong {
  font-weight: 700;
}

#resultado .parabens {
  font-size: clamp(0.8125rem, 2vw, 0.95rem);
  font-weight: 600;
  color: #1d9500;
  margin: 0.25rem 0 0;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* Emojis: tamanho controlado (no Windows costumam herdar fonte gigante) */
#resultado .parabens-ico {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  vertical-align: 0.08em;
  margin: 0 0.12em;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

#resultado .texto-inicial,
#resultado .girando {
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  line-height: 1.3;
  text-align: center;
}

/* Container criado pelo JS para Finalizar + Desfazer */
.botoes-topo {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 20px;
}

.botoes-topo > button {
  flex: 0 1 auto;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.botoes-topo > button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

#finalizar-sorteio-btn {
  background: linear-gradient(180deg, #26a69a 0%, #00897b 100%);
  color: #fff;
}

#finalizar-sorteio-btn:hover {
  background: linear-gradient(180deg, #2dbbad 0%, #00796b 100%);
  color: #fff;
}

#desfazer-sorteio-btn.botao-desfazer-sorteio,
#desfazer-sorteio-btn {
  background: linear-gradient(180deg, #ef5350 0%, #c62828 100%) !important;
  color: #fff !important;
}

#desfazer-sorteio-btn.botao-desfazer-sorteio:hover,
#desfazer-sorteio-btn:hover {
  background: linear-gradient(180deg, #f44336 0%, #b71c1c 100%) !important;
  color: #fff !important;
}

/* ------------------------------------------------------------------ */
/* Modal: confirmar desfazer (Sim / Não)                               */
/* ------------------------------------------------------------------ */
/*
 * O Elementor costuma usar .confirmar-desfazer { top:50%; left:50%;
 * transform: translate(-50%,-50%); max-width:400px } no MESMO nó que
 * é overlay — isso desloca o fundo escuro e corta o conteúdo no canto.
 * Aqui forçamos overlay em tela cheia + flex + sem transform no root.
 */
#confirmar-desfazer.confirmar-desfazer,
#confirmar-desfazer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  transform: none !important;
  -webkit-transform: none !important;
  box-sizing: border-box !important;
  z-index: 999999 !important;
  padding: 1rem !important;
  background: rgba(0, 0, 0, 0.5) !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  /* display: none | flex — inline no JS */
}

/* Conteúdo textual do modal em “cartão” branco (o root é o backdrop) */
#confirmar-desfazer.confirmar-desfazer > h2,
#confirmar-desfazer.confirmar-desfazer > p,
#confirmar-desfazer.confirmar-desfazer > .premio-info {
  background: #fff !important;
  width: 100%;
  max-width: 420px;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

#confirmar-desfazer.confirmar-desfazer > h2 {
  border-radius: 16px 16px 0 0;
  padding: 1.25rem 1.5rem 0.35rem;
}

#confirmar-desfazer.confirmar-desfazer > p {
  padding: 0.25rem 1.5rem 0.75rem;
}

#confirmar-desfazer.confirmar-desfazer > .premio-info {
  border-radius: 0 0 16px 16px;
  padding: 0 1.5rem 1.25rem;
}

#confirmar-desfazer.confirmar-desfazer > .botoes {
  background: transparent !important;
  margin-top: 1rem !important;
  box-shadow: none !important;
}

.roleta-confirmar-desfazer-acoes {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
}

#confirmar-sim,
#confirmar-nao {
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

#confirmar-sim {
  background: linear-gradient(180deg, #ef5350 0%, #c62828 100%) !important;
  color: #fff !important;
}

#confirmar-sim:hover {
  background: linear-gradient(180deg, #f44336 0%, #b71c1c 100%) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

#confirmar-nao {
  background: linear-gradient(180deg, #607d8b 0%, #455a64 100%) !important;
  color: #fff !important;
}

#confirmar-nao:hover {
  background: linear-gradient(180deg, #78909c 0%, #37474f 100%) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}
