/* ============================================================
   cookie-consent.css – Cookie Banner für blog.brdg.mn
   Passt zum Light-Mode-Design der Seite.
   ============================================================ */

.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cc-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.cc-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9001;
  padding: 1.5rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
}

.cc-wrap--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cc-inner {
  max-width: 785px;
  margin: 0 auto;
  background: rgba(249, 249, 249, 0.95);
  border: 1px solid #d1d1d6;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #1d1d1f;
}

/* ── Close button ───────────────────────────────────────────── */

.cc-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: #6e6e73;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.cc-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
}

/* ── Header ─────────────────────────────────────────────────── */

.cc-header {
  margin-bottom: 0.75rem;
}

.cc-title {
  font-size: 1.125rem; 
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #1d1d1f;
  line-height: 1.3;
  border-bottom: 0;
}

.cc-subtitle {
  font-size: 1.0625rem;
  color: #6e6e73;
  margin: 0;
}

/* ── Body ───────────────────────────────────────────────────── */

.cc-body {
  /* font-size: 0.8125rem; */
  color: #3a3a3a;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

/* ── Categories ─────────────────────────────────────────────── */

.cc-categories {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cc-category {
  background: #fbf9fa;
  border: 0;
  border-radius: 12px;
  padding: 0.875rem 1rem;
}

.cc-category__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cc-category__label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: default;
  flex-shrink: 0;
}

.cc-category__name {
  /* font-size: 0.875rem; */
  font-weight: 600;
  color: #1d1d1f;
}

.cc-badge {
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.15);
  color: #007a55;
}

.cc-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #2b7fff;
  cursor: pointer;
  flex-shrink: 0;
}

.cc-checkbox:disabled {
  cursor: default;
  opacity: 0.7;
}

.cc-details-toggle {
  /* font-size: 0.75rem; */
  font-weight: 500;
  color: #6e6e73;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  transition: color 0.15s;
  flex-shrink: 0;
}

.cc-details-toggle:hover {
  color: #1d1d1f;
}

.cc-details {
  margin-top: 0.625rem;
}

.cc-details p {
  /* font-size: 0.75rem; */
  color: #6e6e73;
  line-height: 1.6;
  margin: 0;
}

/* ── Actions ────────────────────────────────────────────────── */

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cc-btn {
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  padding: 0.75rem 1.125rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}

.cc-btn--ghost {
  background: none;
  border: 0;
  color: #6e6e73;
}

.cc-btn--ghost:hover {
  border-color: #aeaeb2;
  color: #1d1d1f;
}

.cc-btn--outline {
  background: none;
  border: 1px solid #aeaeb2;
  color: #3a3a3a;
}

.cc-btn--outline:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
}

.cc-btn--primary {
  background: #1d1d1f;
  border: 1px solid #1d1d1f;
  color: #f9f9f9;
  font-weight: 600;
}

.cc-btn--primary:hover {
  background: #3a3a3a;
  border-color: #3a3a3a;
}

/* ── Mobile ─────────────────────────────────────────────────── */

/* ── Footer cookie button ────────────────────────────────────── */

.page-footer__cookie-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}

.page-footer__cookie-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ── Mobile ─────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .cc-inner {
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 16px 16px 0 0;
  }

  .cc-wrap {
    padding: 0;
  }

  .cc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-btn {
    text-align: center;
  }
}
