/* Ryan's House LLC — Custom Privacy Consent Banner
   Compact bottom banner + manage modal. Bridges to Cloudflare Zaraz consent
   (zaraz.setConsent) when Zaraz is present; safe no-op otherwise.
   Do NOT enable Zaraz's native consent modal — this replaces it entirely.
   Brand: navy #12274f / #0a1a3a · gold #c8902f / #d9a23f · cream #faf6ee
*/

.rh-privacy-banner,
.rh-privacy-modal {
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ── Bottom banner ── */
.rh-privacy-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(92vw, 1080px);
  z-index: 2147483647;
  display: none;
  color: #f6f1e7;
}
.rh-privacy-banner.is-visible { display: block; }

.rh-privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(217, 162, 63, 0.12), transparent 32%),
    linear-gradient(135deg, #0a1a3a 0%, #12274f 100%);
  border: 1px solid rgba(217, 162, 63, 0.34);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36), 0 0 32px rgba(217, 162, 63, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
}

.rh-privacy-copy { min-width: 0; }
.rh-privacy-eyebrow {
  margin: 0 0 4px; color: #e7c993;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.rh-privacy-title {
  margin: 0 0 5px; color: #fff;
  font-family: Lora, Georgia, serif;
  font-size: 1.05rem; font-weight: 600; line-height: 1.25;
}
.rh-privacy-text { margin: 0; max-width: 680px; color: rgba(246, 241, 231, 0.78); font-size: 0.82rem; line-height: 1.55; }
.rh-privacy-text a { color: #e7c993; text-decoration: underline; text-underline-offset: 3px; }
.rh-privacy-text a:hover { color: #f1d9a8; }

.rh-privacy-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; }

.rh-privacy-btn {
  border: 1px solid rgba(246, 241, 231, 0.2);
  background: rgba(246, 241, 231, 0.07);
  color: #f6f1e7;
  border-radius: 999px;
  min-height: 38px;
  padding: 0.58rem 1.05rem;
  font: inherit; font-size: 0.8rem; font-weight: 700; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.rh-privacy-btn:hover { transform: translateY(-1px); border-color: rgba(217, 162, 63, 0.7); }
.rh-privacy-btn:focus-visible { outline: 3px solid rgba(217, 162, 63, 0.5); outline-offset: 3px; }

/* Accept All — gold primary (matches site .btn--gold) */
.rh-privacy-btn--primary {
  background: #c8902f; color: #0a1a3a; border-color: transparent;
  box-shadow: 0 2px 10px rgba(200, 144, 47, 0.35);
}
.rh-privacy-btn--primary:hover { background: #d9a23f; border-color: transparent; box-shadow: 0 4px 16px rgba(200, 144, 47, 0.45); }

.rh-privacy-btn--link { background: transparent; color: rgba(246, 241, 231, 0.78); border-color: transparent; }
.rh-privacy-btn--link:hover { color: #fff; background: transparent; border-color: transparent; }

/* ── Manage modal ── */
.rh-privacy-modal {
  position: fixed; inset: 0; z-index: 2147483646;
  display: none; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(10, 20, 35, 0.62); backdrop-filter: blur(8px);
}
.rh-privacy-modal.is-visible { display: flex; }
.rh-privacy-modal-panel {
  width: min(600px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto;
  background: #faf6ee; color: #12274f; border-radius: 20px; padding: 1.5rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}
.rh-privacy-modal-header {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(18, 39, 79, 0.12);
}
.rh-privacy-modal-header h2 { margin: 0; font-family: Lora, Georgia, serif; font-size: 1.3rem; font-weight: 600; color: #12274f; }
.rh-privacy-modal-header p { margin: 0.4rem 0 0; color: #4a5568; font-size: 0.875rem; line-height: 1.5; }
.rh-privacy-close {
  flex-shrink: 0; border: 0; width: 36px; height: 36px; border-radius: 999px;
  background: rgba(18, 39, 79, 0.08); color: #12274f; cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; transition: background .15s ease;
}
.rh-privacy-close:hover { background: rgba(18, 39, 79, 0.16); }

.rh-privacy-category {
  border: 1px solid rgba(18, 39, 79, 0.12); border-radius: 14px;
  padding: 1rem; margin: 0.625rem 0; background: rgba(255, 255, 255, 0.6);
}
.rh-privacy-category-top { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.rh-privacy-category h3 { margin: 0; font-size: 0.95rem; font-weight: 700; color: #12274f; }
.rh-privacy-category p { margin: 0.3rem 0 0; color: #4a5568; font-size: 0.8125rem; line-height: 1.5; }

.rh-privacy-toggle {
  display: inline-flex; gap: 0.5rem; align-items: center; white-space: nowrap;
  font-size: 0.8125rem; font-weight: 700; color: #4a5568; flex-shrink: 0;
}
.rh-privacy-toggle input { width: 18px; height: 18px; accent-color: #c8902f; cursor: pointer; }
.rh-privacy-toggle input:disabled { cursor: default; opacity: 0.5; }

.rh-privacy-modal-actions {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.625rem;
  margin-top: 1.125rem; padding-top: 1rem; border-top: 1px solid rgba(18, 39, 79, 0.1);
}
.rh-privacy-modal-actions .rh-privacy-btn { color: #12274f; border-color: rgba(18, 39, 79, 0.22); background: rgba(18, 39, 79, 0.05); }
.rh-privacy-modal-actions .rh-privacy-btn:hover { border-color: rgba(18, 39, 79, 0.38); background: rgba(18, 39, 79, 0.09); }
.rh-privacy-modal-actions .rh-privacy-btn--primary { background: #c8902f; color: #0a1a3a; border-color: transparent; }
.rh-privacy-modal-actions .rh-privacy-btn--primary:hover { background: #d9a23f; border-color: transparent; }

/* No floating "Privacy Preferences" button — preferences are reopened from the
   footer "Privacy Preferences" link (window.rhPrivacyShowPreferences). */

@media (max-width: 860px) {
  .rh-privacy-banner { width: calc(100vw - 20px); bottom: 10px; }
  .rh-privacy-panel { grid-template-columns: 1fr; gap: 14px; padding: 16px 18px 18px; border-radius: 16px; }
  .rh-privacy-actions { justify-content: stretch; flex-direction: column; }
  .rh-privacy-btn { width: 100%; text-align: center; justify-content: center; }
  .rh-privacy-category-top { align-items: flex-start; flex-direction: column; }
}
