/* ==========================================================================
   Cookie consent banner + settings modal
   ========================================================================== */

.re-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: var(--ink, #1a1715);
  color: #fff;
  padding: 24px 28px;
  box-shadow: 0 -10px 40px -10px rgba(0,0,0,0.25);
}

.re-cookie__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.re-cookie__copy {
  flex: 1 1 480px;
  min-width: 0;
}

.re-cookie__title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
  color: #fff;
}

.re-cookie__text {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: #e8e6e3;
}

.re-cookie__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.re-cookie__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.re-cookie__btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.re-cookie__btn--primary {
  background: var(--accent, #2f8a1f);
  color: #fff;
}
.re-cookie__btn--primary:hover { background: #267015; }

.re-cookie__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.re-cookie__btn--ghost:hover { background: rgba(255,255,255,0.08); }

.re-cookie__btn--text {
  background: transparent;
  color: #cfcdc9;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 12px 8px;
}
.re-cookie__btn--text:hover { color: #fff; }

/* Modal */
.re-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.re-cookie-modal__panel {
  background: #fff;
  color: var(--ink, #1a1715);
  max-width: 560px;
  width: 100%;
  border-radius: 6px;
  padding: 32px 32px 24px;
  max-height: 90vh;
  overflow-y: auto;
}

.re-cookie-modal__title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 12px;
}

.re-cookie-modal__intro {
  font-size: 14px;
  color: var(--ink-soft, #555);
  margin: 0 0 24px;
  line-height: 1.55;
}

.re-cookie-cat {
  display: block;
  border-top: 1px solid #eee;
  padding: 16px 0;
  cursor: pointer;
}

.re-cookie-cat:last-of-type {
  border-bottom: 1px solid #eee;
}

.re-cookie-cat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 6px;
}

.re-cookie-cat__head input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent, #2f8a1f);
  flex-shrink: 0;
}

.re-cookie-cat__head em {
  color: var(--ink-mute, #888);
  font-style: normal;
  font-size: 13px;
}

.re-cookie-cat__desc {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft, #555);
  padding-left: 28px;
}

.re-cookie-cat--locked .re-cookie-cat__head input { cursor: not-allowed; opacity: 0.6; }
.re-cookie-cat--locked { cursor: default; }

.re-cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .re-cookie { padding: 18px 18px; }
  .re-cookie__inner { gap: 18px; }
  .re-cookie__title { font-size: 17px; }
  .re-cookie__text { font-size: 13px; }
  .re-cookie__actions { width: 100%; justify-content: flex-start; }
  .re-cookie__btn { padding: 10px 14px; font-size: 13px; }
  .re-cookie-modal__panel { padding: 24px 20px; }
  .re-cookie-modal__title { font-size: 22px; }
}
