/* Neravia consent banner – parchment card on a dimmed page, readable on every size. */
.nv-consent {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(12, 8, 4, 0.72);
  backdrop-filter: blur(3px);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2b1d12;
}
.nv-consent-box {
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: linear-gradient(180deg, #f6ead2 0%, #eddcb8 100%);
  border: 2px solid #c9a227;
  box-shadow: 0 0 0 3px #3a2617, 0 24px 60px rgba(0, 0, 0, 0.55);
  border-radius: 14px;
  padding: 22px 24px 18px;
  box-sizing: border-box;
}
.nv-consent h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #3a2617;
}
.nv-consent-intro { margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.nv-consent-list { display: flex; flex-direction: column; gap: 10px; }
.nv-consent-cat {
  background: rgba(255, 250, 238, 0.7);
  border: 1px solid #d8c391;
  border-radius: 10px;
  padding: 10px 12px;
}
.nv-consent-disabled { opacity: 0.7; }
.nv-consent-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nv-consent-cat-title { font-weight: 600; font-size: 15px; }
.nv-consent-cat-text { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: #4a3626; }
.nv-consent-details { margin-top: 6px; font-size: 12px; }
.nv-consent-details summary { cursor: pointer; color: #7a4d1c; }
.nv-consent-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.nv-consent-table td { padding: 4px 6px; vertical-align: top; border-top: 1px solid #e3d3ad; }
.nv-consent-key { width: 42%; font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: #5a3d1f; }
.nv-consent-links { margin: 12px 0 10px; font-size: 13px; }
.nv-consent-links a { color: #7a4d1c; }
.nv-consent-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.nv-consent-btn {
  flex: 1 1 160px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid #3a2617;
  background: #6b4a2a;
  color: #fff3d6;
  cursor: pointer;
}
.nv-consent-btn:hover { filter: brightness(1.1); }
.nv-consent-btn:focus-visible { outline: 3px solid #c9a227; outline-offset: 2px; }
.nv-consent-primary { background: #8e1b1b; border-color: #c9a227; }

/* Toggle switch */
.nv-consent-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex: 0 0 auto; }
.nv-consent-switch input { opacity: 0; width: 0; height: 0; }
.nv-consent-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #b9a17a; border-radius: 26px; transition: background 0.2s;
}
.nv-consent-slider::before {
  content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff8e6; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.nv-consent-switch input:checked + .nv-consent-slider { background: #2f7a3a; }
.nv-consent-switch input:checked + .nv-consent-slider::before { transform: translateX(22px); }
.nv-consent-switch input:disabled + .nv-consent-slider { cursor: default; opacity: 0.75; }
.nv-consent-switch input:focus-visible + .nv-consent-slider { outline: 3px solid #c9a227; }

@media (max-width: 480px) {
  .nv-consent { padding: 8px; }
  .nv-consent-box { padding: 16px 14px 12px; border-radius: 10px; }
  .nv-consent h2 { font-size: 19px; }
  .nv-consent-key { width: 48%; }
}
