/*
 * Cookie consent banner — used by /analytics.js.
 * Visual treatment matches jootle.com (marketing) and blog.jootle.com:
 * warm dark with brass-gold accents, equal-prominence accept/decline.
 */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: min(420px, calc(100vw - 32px));
  background: linear-gradient(180deg, #15110d 0%, #0a0807 100%);
  border: 1px solid rgba(201, 169, 97, 0.4);
  border-radius: 8px;
  padding: 22px 22px 18px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 169, 97, 0.04),
    inset 0 1px 0 rgba(255, 240, 220, 0.04);
  z-index: 200;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #e8e0d4;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cookie-banner.cookie-banner--visible { opacity: 1; transform: translateY(0); }
.cookie-banner.cookie-banner--leaving {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.cookie-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  color: #786e5d;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0;
}
.cookie-banner__close:hover {
  color: #e8e0d4;
  background: rgba(255, 255, 255, 0.04);
}
.cookie-banner__eyebrow {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a961;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-banner__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(138, 115, 64, 0.7) 0%, transparent 100%);
}
.cookie-banner__heading {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  color: #ebe3d4;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.cookie-banner__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: #a8a090;
  margin: 0 0 18px;
}
.cookie-banner__body a {
  color: #e8e0d4;
  text-decoration: underline;
  text-decoration-color: #8a7340;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.cookie-banner__body a:hover { text-decoration-color: #e6c47a; }
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-banner__btn {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid rgba(201, 169, 97, 0.55);
  border-radius: 3px;
  color: #ebe3d4;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.cookie-banner__btn:hover {
  background: rgba(201, 169, 97, 0.12);
  border-color: rgba(230, 196, 122, 0.85);
  color: #f5ecd6;
}
.cookie-pill {
  position: fixed;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  background: rgba(15, 12, 10, 0.78);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 999px;
  color: #c7bdaa;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.18s ease, border-color 0.18s ease;
  z-index: 100;
  backdrop-filter: blur(6px);
}
.cookie-pill.cookie-pill--visible { opacity: 1; transform: translateY(0); }
.cookie-pill:hover {
  color: #e8e0d4;
  border-color: rgba(230, 196, 122, 0.55);
}
.cookie-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a961;
  box-shadow: 0 0 6px rgba(201, 169, 97, 0.6);
}
