.pe-cookie-consent[hidden] {
  display: none !important;
}

.pe-cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1070;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.08));
}

.pe-cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}

.pe-cookie-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.pe-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.pe-cookie-consent--prompt {
  z-index: 1100;
}

.pe-cookie-consent--prompt .pe-cookie-inner {
  animation: pe-cookie-prompt 0.55s ease;
  box-shadow: 0 20px 56px rgba(79, 70, 229, 0.22);
  border-color: rgba(79, 70, 229, 0.35);
}

@keyframes pe-cookie-prompt {
  0% { transform: translateY(8px); opacity: 0.85; }
  40% { transform: translateY(-4px); }
  100% { transform: none; opacity: 1; }
}

@media (max-width: 767px) {
  .pe-cookie-inner {
    grid-template-columns: 1fr;
  }
  .pe-cookie-actions {
    justify-content: stretch;
  }
  .pe-cookie-actions .btn {
    flex: 1;
  }
}

/* Diálogo LGPD ao tentar usar função bloqueada */
body.pe-consent-gate-open {
  overflow: hidden;
}

.pe-consent-gate[hidden] {
  display: none !important;
}

.pe-consent-gate:not([hidden]) {
  display: block;
}

.pe-consent-gate {
  position: fixed;
  inset: 0;
  z-index: 1110;
}

.pe-consent-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pe-consent-gate-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 26rem);
  margin: min(20vh, 6rem) auto 1rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(79, 70, 229, 0.15);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  padding: 1.5rem 1.35rem 1.35rem;
  text-align: center;
  animation: pe-consent-gate-in 0.32s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes pe-consent-gate-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pe-consent-gate-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.pe-consent-gate-title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.pe-consent-gate-text {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #64748b;
}

.pe-consent-gate-question {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}

.pe-consent-gate-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .pe-consent-gate-actions {
    flex-direction: row;
    justify-content: center;
  }
  .pe-consent-gate-actions .btn {
    min-width: 9rem;
  }
}
