/* A quiet edge notice, never a modal. Keep touch targets usable and choices equal. */
#analytics-consent[hidden], #analytics-consent [hidden], .privacy-choices [hidden] { display: none !important; }
.privacy-choices { text-align: center; }
.privacy-choices > button {
    border: 0; background: #f5f9f9; color: #234552; border-radius: 5px;
    font: 500 14px/1.4 Arial, sans-serif; text-decoration: underline;
    min-height: 44px; padding: 8px 14px; margin: 0 0 12px; cursor: pointer;
}
#analytics-consent {
    position: fixed; inset: auto 0 0; z-index: 85; box-sizing: border-box;
    padding: 8px max(14px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    border-top: 1px solid #b5c9ce; background: #f6fafb; color: #234552;
    box-shadow: 0 -2px 10px rgba(20, 55, 65, .08);
    font: 400 14px/1.45 Arial, sans-serif; text-align: left;
}
.analytics-consent-row { display: flex; align-items: center; justify-content: center; gap: 8px 20px; }
.analytics-consent-summary { max-width: 540px; }
.analytics-consent-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
#analytics-consent button {
    appearance: none; display: inline-flex; align-items: center; justify-content: center;
    box-sizing: border-box; min-width: 76px; min-height: 44px; padding: 8px 12px;
    margin: 0; border: 1px solid #819ca6; border-radius: 7px; background: #fff;
    color: #234552; font: 600 14px/1.3 Arial, sans-serif; cursor: pointer;
    box-shadow: none; text-transform: none; letter-spacing: normal;
}
#analytics-consent button[data-consent-details] { border-color: transparent; background: transparent; font-weight: 400; text-decoration: underline; min-width: 60px; }
#analytics-consent button:hover { background: #e7f0f3; }
#analytics-consent button:disabled { opacity: .6; cursor: not-allowed; }
#analytics-consent button:focus-visible, .privacy-choices button:focus-visible { outline: 3px solid #08739c; outline-offset: 2px; }
#analytics-consent-details { max-width: 900px; max-height: 30vh; overflow: auto; margin: 8px auto 0; }
#analytics-consent-details p { margin: 0 0 8px; color: #234552; font: inherit; }
#analytics-consent-details a { color: #075d80; text-decoration: underline; }
#analytics-consent-spacer { height: calc(var(--analytics-notice-height, 0px) + var(--privacy-action-height, 0px)); }
@media (max-width: 1799px) {
    /* XLS's scrolling menu must end above the measured privacy notice. */
    body.brand-xls nav.main-nav.nav-open {
        max-height: calc(100vh - 96px - var(--analytics-notice-height, 0px));
        max-height: calc(100dvh - 96px - var(--analytics-notice-height, 0px));
    }
}
@media (max-width: 700px) {
    .analytics-consent-row { flex-direction: column; align-items: stretch; gap: 4px; }
    .analytics-consent-actions { justify-content: flex-end; }
    body.site-selected-design.brand-roney #listings .quote-selection {
        bottom: calc(max(10px, env(safe-area-inset-bottom)) + var(--analytics-notice-height, 0px));
    }
}
@media (max-width: 899px) {
    .unit-mobile-actionbar { bottom: var(--analytics-notice-height, 0px); }
}
@media print { #analytics-consent, #analytics-consent-spacer, .privacy-choices { display: none !important; } }
