/* Cookie consent — popup overlay (not in-flow page text) */
.fg-cc-root[hidden] {
  display: none !important;
}

.fg-cc-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.fg-cc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.55);
}

.fg-cc-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #f7f4ef;
  color: #1a1a1a;
  border: 1px solid #cfc6b8;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  padding: 1.25rem 1.35rem 1.35rem;
  font-family: "PT Serif", Georgia, serif;
}

.fg-cc-dialog h2 {
  margin: 0 0 0.5rem;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.fg-cc-intro {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.fg-cc-intro a {
  color: #1e73be;
}

.fg-cc-categories {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
}

.fg-cc-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #ddd4c6;
}

.fg-cc-cat strong {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
}

.fg-cc-cat p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #444;
}

.fg-cc-cat label.fg-cc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
}

.fg-cc-cat input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #2a2a2a;
}

.fg-cc-cat input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.fg-cc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.fg-cc-actions .fg-cc-save {
  grid-column: 1 / -1;
}

.fg-cc-btn {
  appearance: none;
  border: 2px solid #1a1a1a;
  background: #1a1a1a;
  color: #f7f4ef;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  text-align: center;
  min-height: 2.75rem;
}

/* Equal visual weight: Reject matches Accept size/style (inverted colors only) */
.fg-cc-btn.fg-cc-reject {
  background: #f7f4ef;
  color: #1a1a1a;
}

.fg-cc-btn.fg-cc-accept {
  background: #1a1a1a;
  color: #f7f4ef;
}

.fg-cc-btn.fg-cc-save {
  background: transparent;
  color: #1a1a1a;
  border-style: dashed;
}

.fg-cc-btn:hover,
.fg-cc-btn:focus-visible {
  outline: 2px solid #1e73be;
  outline-offset: 2px;
}

.fg-cc-btn:focus-visible {
  outline: 2px solid #1e73be;
}

@media (max-width: 480px) {
  .fg-cc-root {
    padding: 0;
    align-items: stretch;
  }

  .fg-cc-dialog {
    width: 100%;
    max-height: 100%;
    border: none;
    border-top: 1px solid #cfc6b8;
  }

  .fg-cc-actions {
    grid-template-columns: 1fr;
  }

  .fg-cc-actions .fg-cc-save {
    grid-column: auto;
  }
}

/* When banner open, prevent background scroll */
html.fg-cc-open,
html.fg-cc-open body {
  overflow: hidden;
}
