/* Container de botões */
.twtgr-btn-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

/* Estado a enviar */
.twtgr-sending {
  opacity: 0.8 !important;
  pointer-events: none !important;
}

/* Toast */
.twtgr-toast {
  z-index: 2147483647;
  position: fixed;
  left: 50%;
  top: 10%;
  transform: translateX(-50%) scale(0.91);
  background: #3776e4;
  color: #fff;
  padding: 18px 32px;
  border-radius: 30px;
  box-shadow: 0 6px 32px -4px #3776e4aa;
  font-size: 1.05em;
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s;
  pointer-events: none;
  max-width: min(92vw, 720px);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.twtgr-toast.shown {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.twtgr-toast-error {
  background: #e43e53;
}

/* =========================================
   BOTÃO GOOGLE REVIEW
   ========================================= */

/* Pill original (mantido) */
.twtgr-link.twtgr-pill {
  background: linear-gradient(90deg, #3776e4 0%, #53bdec 100%);
  color: #fff;
  padding: 12px 32px 12px 42px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1em;
  position: relative;
  box-shadow: 0 2px 8px -2px #3776e474;
  border: none;
  transition: background 180ms, box-shadow 180ms, transform 150ms;
  outline: none;
  cursor: pointer;
  margin: 3px 0;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
}

.twtgr-link.twtgr-pill:hover,
.twtgr-link.twtgr-pill.twtgr-hover {
  background: linear-gradient(90deg, #53bdec 10%, #3776e4 90%);
  box-shadow: 0 4px 14px -4px #3776e4aa;
  transform: translateY(-2px) scale(1.05);
}

.twtgr-link .twtgr-g {
  font-weight: bold;
  background: #fff;
  color: #3776e4;
  border-radius: 50%;
  padding: 3px 7px;
  margin-right: 7px;
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1em;
}

/* Estilo defensivo para o botão do shortcode */
.twtgr-link.twtgr-review-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none !important;
  font-weight: 600;
  line-height: 1.1;

  border-radius: 40px;
  padding: 12px 28px;

  cursor: pointer;
  box-shadow: 0 2px 8px -2px rgba(55, 118, 228, 0.45);

  border: 1px solid rgba(55, 118, 228, 0.25);
  background: linear-gradient(90deg, #3776e4 0%, #53bdec 100%);
  color: #fff !important;

  transition: transform 150ms, box-shadow 180ms, background 180ms, opacity 180ms;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.twtgr-link.twtgr-review-button:hover,
.twtgr-link.twtgr-review-button.twtgr-hover {
  background: linear-gradient(90deg, #53bdec 10%, #3776e4 90%);
  box-shadow: 0 4px 14px -4px rgba(55, 118, 228, 0.66);
  transform: translateY(-2px) scale(1.02);
}

.twtgr-link.twtgr-review-button:focus,
.twtgr-link.twtgr-review-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(55, 118, 228, 0.25), 0 4px 14px -4px rgba(55, 118, 228, 0.66);
}

/* =========================================
   MODAL LEAD CAPTURE
   ========================================= */

/* Wrapper, z-index e isolamento para não deixar o Elementor "apanhar" o touch */
#twtgr-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: auto;
  isolation: isolate;

  /* Android Chrome + overlays */
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overscroll-behavior: contain;
}

#twtgr-lead-modal,
#twtgr-lead-modal * {
  box-sizing: border-box;
}

#twtgr-lead-modal .twtgr-lead-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;

  /* Impede gestos e taps de "vazar" para o overlay do Elementor */
  touch-action: none;
  overscroll-behavior: contain;
}

#twtgr-lead-modal .twtgr-lead-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: auto;

  touch-action: none;
  overscroll-behavior: contain;
}

#twtgr-lead-modal .twtgr-lead-card {
  width: min(560px, 92vw);
  border-radius: 12px;
  padding: 18px 18px 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  pointer-events: auto;

  /* Evita comportamento estranho de cliques em cards dentro de overlays */
  touch-action: manipulation;
}

/* Inputs do modal, estilos defensivos */
#twtgr-lead-modal input[type="text"],
#twtgr-lead-modal input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  outline: none;
  box-shadow: none;

  /* Em mobile, evita zoom agressivo e glitches */
  font-size: 16px;
  touch-action: manipulation;
}

#twtgr-lead-modal input[type="text"]:focus,
#twtgr-lead-modal input[type="email"]:focus {
  border-color: rgba(55, 118, 228, 0.6);
  box-shadow: 0 0 0 3px rgba(55, 118, 228, 0.18);
}

#twtgr-lead-modal input[type="checkbox"] {
  width: 16px;
  height: 16px;
  touch-action: manipulation;
}

/* Botões do modal, blindagem contra tema */
#twtgr-lead-modal button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  line-height: 1.1;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  outline: none;
  background-image: none;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#twtgr-lead-modal button:focus,
#twtgr-lead-modal button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(55, 118, 228, 0.18);
}

/* Erro do modal */
#twtgr-lead-modal .twtgr-lead-error {
  color: #b91c1c;
  font-size: 12px;
}
