/* Banner LGPD + exit intent — isolado (prefixo .ct-) para não afetar o tema */

html.ct-cookie-visible body {
  padding-bottom: max(88px, 12vh, env(safe-area-inset-bottom, 0px));
}

.ct-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10040;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 22, 24, 0.96);
  color: #f4f4f5;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ct-cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 20px;
}

.ct-cookie-banner__text {
  margin: 0;
  flex: 1 1 240px;
  text-align: center;
}

.ct-cookie-banner .ct-cookie-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.ct-cookie-banner .ct-cookie-link:hover {
  opacity: 0.92;
}

.ct-cookie-banner .ct-cookie-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
}

.ct-cookie-banner__accept {
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  color: #161618;
  background: linear-gradient(180deg, #fafafa 0%, #e8e8ea 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ct-cookie-banner__accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ct-cookie-banner__accept:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ct-cookie-banner__accept {
    transition: none;
  }
}

/* Exit intent */
.ct-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: ct-fade-in 0.22s ease-out;
}

.ct-exit-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f3f4f6 100%);
  color: #18181b;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06);
  text-align: center;
  animation: ct-pop-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-exit-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #52525b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.ct-exit-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #18181b;
}

.ct-exit-close:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.ct-exit-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ct-exit-text {
  margin: 0 0 22px;
  font-size: 1rem;
  color: #3f3f46;
  line-height: 1.5;
}

.ct-exit-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ct-exit-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

.ct-exit-cta:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 3px;
}

@keyframes ct-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ct-pop-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-exit-overlay,
  .ct-exit-modal {
    animation: none;
  }

  .ct-exit-cta:hover {
    transform: none;
  }
}
