/* ----- Toast-style banner (cookie consent pattern) ----- */
.monitoratividade-geo-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  display: none;
  pointer-events: none;
}

.monitoratividade-geo-popup.is-visible {
  display: block;
  pointer-events: auto;
  animation: monitoratividade-geo-slide-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes monitoratividade-geo-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.monitoratividade-geo-popup__panel {
  width: 380px;
  max-width: calc(100vw - 40px);
  padding: 0;
  border-radius: 16px;
  background: #ffffff;
  color: #0f121c;
  box-shadow: 0 8px 32px rgba(15, 18, 28, 0.18), 0 2px 8px rgba(15, 18, 28, 0.08);
  overflow: hidden;
}

.monitoratividade-geo-popup__hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
  background: linear-gradient(135deg, #ee175e 0%, #d20143 100%);
  color: #ffffff;
  overflow: hidden;
}

.monitoratividade-geo-popup__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(254, 249, 192, 0.18) 0, rgba(254, 249, 192, 0) 36%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

.monitoratividade-geo-popup__logo {
  position: relative;
  display: block;
  max-width: 100px;
  max-height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.monitoratividade-geo-popup__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.monitoratividade-geo-popup__icon-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 249, 192, 0.4) 0%, rgba(254, 249, 192, 0) 70%);
  animation: monitoratividade-geo-glow 2.6s ease-in-out infinite;
}

@keyframes monitoratividade-geo-glow {
  0%, 100% { transform: scale(0.85); opacity: 0.55; }
  50% { transform: scale(1.18); opacity: 1; }
}

.monitoratividade-geo-popup__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.monitoratividade-geo-popup__icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

/* ----- Sound wave equalizer (compact) ----- */
.monitoratividade-geo-popup__equalizer {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 22px;
  margin-left: auto;
  padding: 0 4px 4px;
}

.monitoratividade-geo-popup__bar {
  width: 4px;
  border-radius: 2px;
  background: #fef9c0;
  box-shadow: 0 0 6px rgba(254, 249, 192, 0.35);
  height: 30%;
  transform-origin: bottom center;
  animation: monitoratividade-geo-eq 1.1s ease-in-out infinite;
}

.monitoratividade-geo-popup__bar:nth-child(1) { animation-delay: 0.00s; animation-duration: 1.10s; }
.monitoratividade-geo-popup__bar:nth-child(2) { animation-delay: 0.18s; animation-duration: 0.95s; }
.monitoratividade-geo-popup__bar:nth-child(3) { animation-delay: 0.36s; animation-duration: 1.25s; background: #ffffff; }
.monitoratividade-geo-popup__bar:nth-child(4) { animation-delay: 0.10s; animation-duration: 1.05s; }
.monitoratividade-geo-popup__bar:nth-child(5) { animation-delay: 0.28s; animation-duration: 1.30s; background: #ffffff; }
.monitoratividade-geo-popup__bar:nth-child(6) { animation-delay: 0.42s; animation-duration: 0.90s; }
.monitoratividade-geo-popup__bar:nth-child(7) { animation-delay: 0.06s; animation-duration: 1.15s; }
.monitoratividade-geo-popup__bar:nth-child(8) { animation-delay: 0.22s; animation-duration: 1.00s; background: #ffffff; }
.monitoratividade-geo-popup__bar:nth-child(9) { animation-delay: 0.34s; animation-duration: 1.20s; }

@keyframes monitoratividade-geo-eq {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* ----- Confetti / stars (hidden in toast mode) ----- */
.monitoratividade-geo-popup__confetti {
  display: none;
}

/* ----- Content ----- */
.monitoratividade-geo-popup__content {
  padding: 16px 18px 18px;
}

.monitoratividade-geo-popup__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f121c;
  letter-spacing: -0.01em;
}

.monitoratividade-geo-popup__body {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4a5160;
}

.monitoratividade-geo-popup__status {
  min-height: 1em;
  margin: 8px 0 0;
  color: #8a90a0;
  font-size: 0.78rem;
}

.monitoratividade-geo-popup__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.monitoratividade-geo-popup__button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 20px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.monitoratividade-geo-popup__button:hover {
  transform: translateY(-1px);
}

.monitoratividade-geo-popup__button:active {
  transform: translateY(0);
}

.monitoratividade-geo-popup__button--primary {
  background: #d20143;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(210, 1, 67, 0.3);
}

.monitoratividade-geo-popup__button--primary:hover {
  background: #b8003a;
  box-shadow: 0 8px 20px rgba(210, 1, 67, 0.4);
}

.monitoratividade-geo-popup__button--secondary {
  background: #f3f4f7;
  color: #0f121c;
}

.monitoratividade-geo-popup__button--secondary:hover {
  background: #e6e8ee;
  color: #0f121c;
}

@media (max-width: 640px) {
  .monitoratividade-geo-popup {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .monitoratividade-geo-popup__panel {
    width: 100%;
    max-width: none;
  }

  .monitoratividade-geo-popup__actions {
    flex-direction: column;
  }

  .monitoratividade-geo-popup__button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .monitoratividade-geo-popup__panel,
  .monitoratividade-geo-popup.is-visible,
  .monitoratividade-geo-popup__icon-glow,
  .monitoratividade-geo-popup__bar {
    animation: none !important;
  }
}
