/* Shared by the root site and the betav2 overlay. */
.cookie-banner[hidden], [data-cookie-settings][hidden], [data-cookie-allow-media][hidden],
.cookie-video-placeholder[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 200;
  max-width: 1160px;
  margin-inline: auto;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgb(0 0 0 / 18%);
}
.cookie-banner h2, .cookie-dialog h2 { font-size: 20px; line-height: 1.3; color: var(--text-primary); }
.cookie-banner p, .cookie-dialog p, .cookie-video-placeholder p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.cookie-banner p { margin-top: 8px; }
.cookie-banner-copy { flex: 1; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-banner .cookie-actions { flex: 0 0 380px; align-items: stretch; }
.cookie-button, .cookie-text-button, .cookie-settings-link {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  cursor: pointer;
}
.cookie-button {
  padding: 10px 16px;
  border: 1px solid var(--brg);
  border-radius: 6px;
  background: var(--brg);
  color: #fff;
  text-align: center;
}
.cookie-button:hover { background: var(--brg-light); }
.cookie-text-button { padding: 8px; border: 0; background: transparent; color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.cookie-settings-link { border: 0; background: transparent; padding: 0; color: var(--gold-light); }
.cookie-settings-link:hover { text-decoration: underline; }
.cookie-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-primary);
}
.cookie-dialog::backdrop { background: rgb(0 0 0 / 50%); }
.cookie-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cookie-category { padding-block: 20px; border-bottom: 1px solid var(--border); }
.cookie-category label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.cookie-category input { width: 20px; height: 20px; accent-color: var(--brg); flex-shrink: 0; }
.cookie-category p { margin-top: 4px; }
.cookie-dialog .cookie-storage-note { margin-block: 20px; font-size: 13px; }
.cookie-noscript { padding: 16px; text-align: center; font-size: 13px; }
.cookie-video { margin-block: 24px; aspect-ratio: 16 / 9; background: var(--bg-alt); border: 1px solid var(--border); }
.cookie-video-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.cookie-video-placeholder a { font-size: 14px; }
.cookie-video iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) {
  .cookie-banner { inset: auto 8px 8px; padding: 16px; flex-direction: column; align-items: stretch; gap: 12px; max-height: calc(100dvh - 16px); overflow-y: auto; }
  .cookie-banner .cookie-actions { flex: auto; }
  .cookie-banner .cookie-button { flex: 1 1 120px; }
  .cookie-banner .cookie-text-button { width: 100%; }
  .cookie-dialog { padding: 20px; }
  .cookie-dialog .cookie-actions { flex-direction: column; align-items: stretch; }
  .cookie-video { aspect-ratio: auto; min-height: 240px; }
  .cookie-video:has(iframe) { aspect-ratio: 16 / 9; min-height: 0; }
}
