/* Scoped privacy choice controls used by the public RWT footer. */
#rwt-privacy-controls [hidden] { display: none !important; }
#rwt-privacy-controls { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.rwt-privacy-banner {
  position: fixed; inset: auto 16px 16px 16px; z-index: 99990;
  margin: 0 auto; max-width: 1080px; padding: 20px 24px;
  background: #fff; color: #172033; border: 1px solid #cbd5e1;
  border-radius: 14px; box-shadow: 0 14px 50px rgba(15,23,42,.23);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.rwt-privacy-copy { flex: 1 1 400px; min-width: 0; }
.rwt-privacy-copy strong { font-size: 16px; font-weight: 700; }
.rwt-privacy-copy p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: #334155; }
.rwt-privacy-copy a { color: #1d4ed8; text-decoration: underline; }
.rwt-privacy-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.rwt-privacy-actions button {
  min-height: 43px; padding: 10px 15px; cursor: pointer;
  border: 1px solid #64748b; color: #172033; background: #fff;
  border-radius: 8px; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.3;
}
.rwt-privacy-actions button:hover { background: #f1f5f9; }
.rwt-privacy-actions button.rwt-privacy-primary {
  color: #fff; background: #1d4ed8; border-color: #1d4ed8;
}
.rwt-privacy-actions button.rwt-privacy-primary:hover { background: #1e40af; }
/* The first-choice banner must not visually privilege consent over refusal. */
.rwt-privacy-banner button[data-rwt-action="reject"] {
  color: #fff; background: #1d4ed8; border-color: #1d4ed8;
}
.rwt-privacy-banner button[data-rwt-action="reject"]:hover { background: #1e40af; }
.rwt-privacy-actions button:focus-visible, .rwt-privacy-dialog input:focus-visible {
  outline: 3px solid #60a5fa; outline-offset: 3px;
}
.rwt-privacy-overlay {
  position: fixed; inset: 0; z-index: 99999; padding: 20px;
  background: rgba(15,23,42,.7); display: flex; align-items: center; justify-content: center;
}
.rwt-privacy-dialog {
  background: #fff; color: #172033; width: 100%; max-width: 540px; max-height: 90vh;
  overflow-y: auto; border-radius: 14px; padding: 24px;
  box-shadow: 0 24px 65px rgba(0,0,0,.3);
}
.rwt-privacy-dialog h2 { margin: 0 0 8px; font-size: 23px; font-weight: 700; }
.rwt-privacy-dialog > p { margin: 0 0 18px; color: #475569; font-size: 14px; line-height: 1.5; }
.rwt-privacy-dialog label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-top: 1px solid #e2e8f0; cursor: pointer;
}
.rwt-privacy-dialog label strong { font-size: 15px; display: block; }
.rwt-privacy-dialog label small { display: block; margin-top: 4px; color: #475569; font-size: 12px; }
.rwt-privacy-dialog input { width: 20px; height: 20px; accent-color: #1d4ed8; flex-shrink: 0; }
.rwt-privacy-dialog .rwt-privacy-actions { padding-top: 18px; }
body.rwt-privacy-dialog-open { overflow: hidden; }
@media (max-width: 800px) {
  .rwt-privacy-banner { flex-direction: column; align-items: stretch; gap: 15px; padding: 16px; }
  .rwt-privacy-copy { flex-basis: auto; }
  .rwt-privacy-actions { justify-content: stretch; }
  .rwt-privacy-banner .rwt-privacy-actions button { flex: 1 1 130px; }
}
@media (max-width: 440px) {
  .rwt-privacy-banner { left: 10px; right: 10px; bottom: 10px; max-height: 80vh; overflow-y: auto; }
  .rwt-privacy-dialog { padding: 18px; }
  .rwt-privacy-dialog .rwt-privacy-actions button { flex: 1 1 auto; }
}
