/* ── Cookie Consent Banner ───────────────────────── */

.cookieBanner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 503px;
  max-width: calc(100vw - 48px);
  padding: 24px;
  background: #fff;
  border-radius: 21px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  animation: cookieIn 0.35s ease both;
}

.cookieBanner.hidden {
  display: none;
}

.cookieBanner .curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom right;
  pointer-events: none;
}

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookieBanner .icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.cookieBanner .content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.cookieBanner .textGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.cookieBanner .title {
  font-family: var(--font-manrope, 'Manrope', sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  color: #000;
}

.cookieBanner .text {
  font-family: var(--font-manrope, 'Manrope', sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  color: #605f5f;
}

.cookieBanner .link {
  width: fit-content;
  font-family: var(--font-manrope, 'Manrope', sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  color: #000;
  text-decoration: underline;
}

.cookieBanner .link:hover { opacity: 0.7; }

.cookieBanner .buttonGroup {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.cookieBanner .button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 8px 16px;
  background: #397de3;
  border: none;
  cursor: pointer;
  border-radius: 1000px;
  font-family: var(--font-manrope, 'Manrope', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: opacity 0.2s;
}

.cookieBanner .button:hover { opacity: 0.85; }

/* ── Reveal animation ────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

.reveal:not(.shown) {
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Adaptive ────────────────────────────────────── */

@media (max-width: 600px) {
  .cookieBanner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 20px;
  }

  .cookieBanner .icon {
    display: none;
  }
}
