/* =========================================================
   COOKIE CONSENT — Noble Circle Club
   ========================================================= */

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9000;
  transform: translateY(calc(100% + 1.5rem));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* ── Inner card ────────────────────────────────────────── */

.cookie-consent__inner {
  position: relative;
  background: var(--color-panel);
  border: 1px solid rgba(201, 154, 69, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.25rem;
  overflow: hidden;
}

/* gold top hairline */
.cookie-consent__inner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-gold),
    transparent
  );
  border-radius: 999px;
}

/* blue inner ring */
.cookie-consent__inner::after {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(30, 17, 239, 0.08);
  border-radius: calc(var(--radius-lg) - 2px);
  pointer-events: none;
}

/* ── Header ────────────────────────────────────────────── */

.cookie-consent__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.cookie-consent__eyebrow {
  font-size: 0.65rem;
  color: var(--color-gold);
  line-height: 1;
}

.cookie-consent__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

/* ── Body text ─────────────────────────────────────────── */

.cookie-consent__text {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0 0 1.125rem;
}

.cookie-consent__link {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 154, 69, 0.45);
  transition:
    text-decoration-color 0.2s ease,
    color 0.2s ease;
}

.cookie-consent__link:hover {
  color: var(--color-white);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.cookie-consent__link:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── Actions ───────────────────────────────────────────── */

.cookie-consent__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.cookie-consent__button:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

.cookie-consent__button--accept {
  background-color: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.cookie-consent__button--accept:hover {
  background-color: #3525ff;
  border-color: #3525ff;
}

.cookie-consent__button--reject {
  background-color: transparent;
  color: var(--color-muted);
  border-color: var(--color-border);
}

.cookie-consent__button--reject:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ── Desktop: bottom-left compact card ────────────────── */

@media (min-width: 640px) {
  .cookie-consent {
    left: 1.5rem;
    right: auto;
    max-width: 26rem;
    bottom: 1.5rem;
  }

  .cookie-consent__actions {
    flex-direction: row;
  }

  .cookie-consent__button {
    width: auto;
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .cookie-consent {
    left: 2rem;
    bottom: 2rem;
  }
}
