/* ============================================================
   COOKIE CONSENT BANNER — EVER Precision Brand Style
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 32px));
  z-index: 9998;
  width: calc(100% - 48px);
  max-width: 820px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 8px 32px rgba(0,0,0,0.10),
    0 2px 8px  rgba(0,0,0,0.06);
  padding: 20px 24px;
  transition: transform 480ms cubic-bezier(0.34, 1.3, 0.64, 1),
              opacity  480ms ease;
  opacity: 0;
}

.cookie-banner--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Content ── */
.cookie-banner-content {
  flex: 1;
  min-width: 0;
}

.cookie-banner-eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 4px;
  display: block;
}

.cookie-banner-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-banner-text a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  opacity: 0.75;
}

/* ── Actions ── */
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 180ms ease, transform 120ms ease;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-btn:hover {
  opacity: 0.82;
}

.cookie-btn:active {
  transform: scale(0.97);
}

.cookie-btn--primary {
  background: var(--accent-primary);
  color: #ffffff;
}

.cookie-btn--secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .cookie-banner {
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 18px 18px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner-actions {
    flex-direction: row;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

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