/*
 * Cookie notice — site chrome shared by every page.
 * A floating panel above the bottom-left corner; token values fall back to
 * the light palette on pages that do not load the library token sheet.
 */

.cookie-panel {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 90;
  width: min(380px, calc(100vw - 48px));
  background: var(--re-surface, #ffffff);
  border: 1px solid var(--re-line, #e2d9cb);
  border-radius: var(--re-radius, 14px);
  box-shadow: 0 24px 60px -28px rgba(20, 17, 14, 0.55);
  padding: 20px;
  font-family: var(--re-font-sans, "Inter", system-ui, -apple-system, sans-serif);
}

.cookie-panel__title {
  margin: 0 0 6px;
  font-family: var(--re-font-display, "Fraunces", Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--re-ink, #14110e);
}

.cookie-panel__text {
  margin: 0;
  font-size: var(--re-text-sm, 0.82rem);
  line-height: 1.55;
  color: var(--re-ink-muted, #4a433c);
}

.cookie-panel__text a {
  color: var(--re-accent, #1c5c4a);
  text-underline-offset: 2px;
}

.cookie-panel__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.cookie-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--re-accent, #1c5c4a);
  border-radius: var(--re-radius-pill, 999px);
  background: var(--re-accent, #1c5c4a);
  color: var(--re-accent-ink, #ffffff);
  font: inherit;
  font-size: var(--re-text-sm, 0.82rem);
  font-weight: 600;
  cursor: pointer;
}

.cookie-panel__btn:hover {
  background: var(--re-accent-hover, #17503f);
  border-color: var(--re-accent-hover, #17503f);
}

.cookie-panel__btn:focus-visible {
  outline: 2px solid var(--re-accent, #1c5c4a);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .cookie-panel {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }

  .cookie-panel__actions,
  .cookie-panel__btn {
    width: 100%;
  }
}
