/* PropGlen GA4 consent bar — public site only (S2-K mobile compaction) */
.rv-analytics-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10050;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 0.86rem;
  line-height: 1.35;
}

.rv-analytics-consent__text {
  flex: 1 1 200px;
  margin: 0;
  color: #e2e8f0;
}

.rv-analytics-consent__text a {
  color: #6ee7b7;
  text-decoration: underline;
}

.rv-analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.rv-analytics-consent__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  min-height: 40px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.25;
  white-space: normal;
  max-width: 100%;
}

.rv-analytics-consent__btn--primary {
  background: #0a9d6a;
  color: #fff;
}

.rv-analytics-consent__btn--primary:hover {
  background: #07814f;
}

.rv-analytics-consent__btn--ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.35);
}

.rv-analytics-consent__btn--ghost:hover {
  border-color: #e2e8f0;
}

@media (max-width: 640px) {
  .rv-analytics-consent {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding: 8px 10px;
    gap: 8px;
    font-size: 0.82rem;
    line-height: 1.32;
    max-height: min(42vh, 280px);
    overflow: auto;
  }

  .rv-analytics-consent__text {
    flex: 1 1 100%;
  }

  .rv-analytics-consent__actions {
    width: 100%;
    margin-left: 0;
    gap: 6px;
  }

  .rv-analytics-consent__btn {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
    min-height: 40px;
    padding: 0.45rem 0.7rem;
  }

  .rv-analytics-consent__btn--primary {
    order: -1;
  }
}

@media (max-width: 390px) {
  .rv-analytics-consent__btn {
    flex: 1 1 100%;
  }
}

/* Keep clear of standalone app bottom tabs when present */
html.rv-standalone .rv-analytics-consent {
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* Re-open preferences — sits with footer legal links when possible */
.site-footer .rv-analytics-prefs,
.rv-analytics-prefs {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.92em;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
}

.site-footer .rv-analytics-prefs:hover,
.rv-analytics-prefs:hover,
.site-footer .rv-analytics-prefs:focus-visible,
.rv-analytics-prefs:focus-visible {
  color: #0a9d6a;
  outline: none;
}

.rv-analytics-prefs--fixed {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 10040;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #0f172a;
  color: #e2e8f0;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

html.rv-standalone .rv-analytics-prefs--fixed {
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
