/* Cookie preferences banner — Dynamiqo */

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9990;
  width: min(420px, calc(100vw - 40px));
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: #0e161f;
  color: #fff;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 20px 50px rgba(7, 16, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: cookie-in 0.35s ease;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner[hidden] {
  display: none !important;
}

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

.cookie-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #16d6b5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #16d6b5;
}

.cookie-banner-icon svg {
  width: 18px;
  height: 18px;
}

.cookie-banner-title {
  margin: 0;
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.cookie-banner-close {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px;
  margin: -4px -4px 0 0;
  cursor: pointer;
  line-height: 0;
  border-radius: 6px;
}

.cookie-banner-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.cookie-banner-text {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
}

.cookie-banner-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 0.88rem;
  font-weight: 600;
}

.cookie-banner-links a {
  color: #16d6b5;
  text-decoration: none;
}

.cookie-banner-links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-links span {
  color: #64748b;
  font-weight: 500;
}

.cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cookie-banner-actions button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.cookie-banner-actions button:active {
  transform: translateY(1px);
}

.cookie-btn-accept {
  background: #16d6b5;
  color: #071014;
}

.cookie-btn-accept:hover {
  filter: brightness(1.05);
}

.cookie-btn-decline {
  background: #1e293b;
  color: #fff;
}

.cookie-btn-decline:hover {
  filter: brightness(1.1);
}

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

  .cookie-banner-actions {
    grid-template-columns: 1fr;
  }
}
