/* The privacy notice (core 2.99.7, estuaries\PrivacyNotice). Theme-neutral,
   follows the visitor's light or dark mode, and holds its own [hidden] rule
   so no theme's display rule can show a hidden card. */
.es-privacy {
    --es-privacy-ground: #ffffff;
    --es-privacy-ink: #1d2430;
    --es-privacy-rule: #d6dbe2;
    --es-privacy-button: #1d2430;
    --es-privacy-button-ink: #ffffff;
    --es-privacy-focus: #2b6cb0;
}
@media (prefers-color-scheme: dark) {
    .es-privacy {
        --es-privacy-ground: #1f252d;
        --es-privacy-ink: #eef1f5;
        --es-privacy-rule: #3a434f;
        --es-privacy-button: #eef1f5;
        --es-privacy-button-ink: #1f252d;
        --es-privacy-focus: #8ab4f8;
    }
}
.es-privacy [hidden],
.es-privacy[hidden] { display: none !important; }

.es-privacy-card {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1040; /* just under Bootstrap's modal (1050) and its backdrop, so a dialog covers the card */
    max-width: 420px;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid var(--es-privacy-rule);
    border-radius: 10px;
    background: var(--es-privacy-ground);
    color: var(--es-privacy-ink);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}
.es-privacy-text { margin: 0; flex: 1 1 220px; }
.es-privacy-text a { color: inherit; text-decoration: underline; }
.es-privacy-actions { display: flex; gap: 8px; }
.es-privacy-btn {
    min-width: 84px;
    padding: 7px 14px;
    border: 1px solid var(--es-privacy-button);
    border-radius: 6px;
    background: var(--es-privacy-button);
    color: var(--es-privacy-button-ink);
    font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
    cursor: pointer;
}
.es-privacy-btn:focus-visible,
.es-privacy-link:focus-visible,
.es-privacy-text a:focus-visible { outline: 3px solid var(--es-privacy-focus); outline-offset: 2px; }
.es-privacy-choices { margin: 24px 0 8px; text-align: center; }
.es-privacy-link {
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}
@media (max-width: 480px) {
    .es-privacy-card { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: none; }
    .es-privacy-actions { width: 100%; }
    .es-privacy-btn { flex: 1 1 0; }
}
