/* cookie-consent.css — Groundless */

#gl-consent {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #0e1a0e;
  border: 1px solid rgba(147, 168, 95, 0.35);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 480px;
  width: calc(100% - 48px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(147, 168, 95, 0.08);
  font-family: var(--gl-font, 'Bricolage Grotesque', system-ui, sans-serif);
  font-size: 14px;
  animation: gl-consent-in 0.32s cubic-bezier(.2, .8, .2, 1);
}

@keyframes gl-consent-in {
  from { transform: translateX(-50%) translateY(24px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

.gl-consent__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gl-consent__text {
  margin: 0;
  color: rgba(232, 221, 204, 0.82);
  line-height: 1.6;
}

.gl-consent__link {
  color: var(--gl-moss, #7d9a3c);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gl-consent__link:hover { opacity: 0.8; }

.gl-consent__actions {
  display: flex;
}

.gl-consent__btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  line-height: 1;
  transition: opacity 0.15s;
}

.gl-consent__btn--primary {
  background: var(--gl-moss, #7d9a3c);
  color: #0a1200;
}

.gl-consent__btn:hover { opacity: 0.85; }

/* Light theme */
html[data-theme="light"] #gl-consent {
  background: #f5f5f0;
  border-color: rgba(60, 80, 40, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .gl-consent__text {
  color: rgba(10, 18, 10, 0.75);
}

/* Mobile */
@media (max-width: 640px) {
  #gl-consent {
    bottom: 16px;
    padding: 22px 20px;
    width: calc(100% - 32px);
  }
}
