/* No elements exist while collection is release-locked. hidden is authoritative. */
#rv-analytics-choices [hidden] { display: none !important; }
#rv-analytics-choices { color: #24201d; font: 1rem/1.5 system-ui, sans-serif; }
#rv-analytics-choices button, #rv-analytics-choices a { font: inherit; }
#rv-analytics-choices button { cursor: pointer; }
#rv-analytics-choices button:focus-visible, #rv-analytics-choices a:focus-visible, #rv-consent-heading:focus-visible { outline: 3px solid #15579b; outline-offset: 3px; }
.rv-privacy-choices { position: fixed; bottom: 12px; left: 12px; z-index: 90; padding: 9px 14px; color: #24201d; background: #fff; border: 1px solid #625b52; border-radius: 6px; box-shadow: 0 2px 8px #0002; }
.rv-consent-panel { position: fixed; inset: auto 16px 68px auto; z-index: 100; width: min(560px, calc(100vw - 32px)); max-height: min(78vh, 720px); overflow: auto; box-sizing: border-box; background: #fffdf7; border: 2px solid #625b52; border-radius: 10px; padding: 22px; box-shadow: 0 8px 32px #0003; }
.rv-consent-panel h2 { margin: 0 0 12px; font-size: 1.4rem; }
.rv-consent-panel h3 { margin: 14px 0 4px; font-size: 1rem; }
.rv-consent-panel p { margin: 12px 0; }
.rv-consent-status { font-weight: 650; }
.rv-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#rv-analytics-choices .rv-consent-choice { min-height: 48px; padding: 10px; border: 2px solid #625b52; border-radius: 6px; background: #fff; color: #24201d; font-weight: 650; }
#rv-analytics-choices .rv-consent-choice:hover { background: #f0ebe1; }
#rv-analytics-choices .rv-consent-choice:disabled { cursor: not-allowed; opacity: .6; }
.rv-consent-secondary { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.rv-consent-secondary button, .rv-consent-secondary a { padding: 6px 0; border: 0; color: #24201d; background: none; text-decoration: underline; }
@media (max-width: 400px) { .rv-consent-panel { padding: 16px; } .rv-consent-actions { grid-template-columns: 1fr; } }

/* Mobile notice is non-modal. Only the optional details scroll; neither choice
   is inside that scroller. Desktop keeps its original markup and presentation. */
@media (max-width: 760px) {
  #rv-analytics-choices { font-size: 14px; line-height: 1.4; }
  #rv-analytics-choices .rv-privacy-choices { bottom: max(12px, env(safe-area-inset-bottom)); }
  #rv-analytics-choices .rv-consent-panel {
    inset: auto 0 0;
    width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    padding: 12px max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    display: flex; flex-direction: column; gap: 8px;
    border-radius: 14px 14px 0 0; overflow: auto;
  }
  #rv-analytics-choices .rv-consent-panel > :not(.rv-consent-details) { flex-shrink: 0; }
  #rv-analytics-choices .rv-consent-panel h2 { margin: 0; font-size: 18px; line-height: 1.3; }
  #rv-analytics-choices .rv-consent-status { margin: 0; }
  #rv-analytics-choices .rv-consent-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  #rv-analytics-choices .rv-consent-choice { padding: 8px 6px; min-height: 48px; }
  #rv-analytics-choices .rv-consent-details-toggle { align-self: flex-start; min-height: 44px; padding: 8px 0; color: #24201d; background: none; border: 0; text-decoration: underline; }
  #rv-analytics-choices .rv-consent-details { min-height: 0; max-height: 32vh; max-height: 32dvh; overflow: auto; overscroll-behavior: contain; padding: 0 4px; }
  #rv-analytics-choices .rv-consent-details:focus-visible { outline: 3px solid #15579b; outline-offset: -3px; }
  #rv-analytics-choices .rv-consent-details h3:first-child { margin-top: 0; }
  #rv-analytics-choices .rv-consent-secondary { gap: 4px 16px; }
  #rv-analytics-choices .rv-consent-secondary button, #rv-analytics-choices .rv-consent-secondary a { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 0; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  /* Deliberate exception to the mobile-static rule: one gentle entrance only. */
  #rv-analytics-choices .rv-consent-panel:not([hidden]) { animation: rv-consent-reveal 450ms ease-out both !important; }
}
@keyframes rv-consent-reveal { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
