/* Sysgate - banner de consentimento de cookies */

.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e6e8ee;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  padding: 22px 22px 20px;
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    sans-serif;
  transform: translateY(140%);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition: opacity 0.2s linear;
    transform: none;
  }
}

.cookie-consent-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.cookie-consent-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-consent-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-consent-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.cookie-consent-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #64748b;
}

.cookie-consent-text a {
  color: #b91c1c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-consent-actions button {
  flex: 1;
  min-width: 130px;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 42px;
  border: 1px solid #e6e8ee;
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    background 0.2s ease-out;
}

.cookie-consent-accept {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.3);
}

.cookie-consent-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.38);
}

.cookie-consent-reject {
  background: #fff;
  color: #0f172a;
}

.cookie-consent-reject:hover {
  background: #f8fafc;
  border-color: #d8dbe3;
}

.cookie-consent:focus-visible,
.cookie-consent-actions button:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 980px) {
  /* evita sobrepor a barra de CTA fixa da home em telas pequenas */
  .cookie-consent {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    padding: 18px 16px 16px;
  }
}
