.privacy-toast,
.pwa-install-prompt {
    box-sizing: border-box;
    position: fixed;
    z-index: 1000;
    right: 1rem;
    bottom: 1rem;
    width: min(calc(100vw - 2rem), 430px);
    padding: 1.25rem;
    border: 1px solid rgba(23, 25, 29, 0.2);
    border-top: 5px solid #ed1c24;
    border-radius: 6px;
    color: #17191d;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.privacy-toast[hidden],
.pwa-install-prompt[hidden] { display: none; }
.privacy-toast h2,
.pwa-install-prompt h2 { margin: 0; font-size: 1.08rem; letter-spacing: 0; }
.privacy-toast p,
.pwa-install-prompt p { margin: 0.75rem 0 0; color: #4d5056; font-size: 0.88rem; line-height: 1.5; text-shadow: none; }
.privacy-toast a { color: #a80d14; font-weight: 800; }

.privacy-actions,
.pwa-install-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.privacy-actions button,
.pwa-install-actions button {
    min-width: 0;
    min-height: 44px;
    padding: 0.7rem 0.8rem;
    border: 1px solid #a80d14;
    border-radius: 4px;
    color: #a80d14;
    background: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.privacy-actions button:last-child,
.pwa-install-actions .primary {
    color: #fff;
    background: #a80d14;
}

.privacy-actions button:focus-visible,
.pwa-install-actions button:focus-visible,
.privacy-settings-link:focus-visible,
.external-consent-placeholder button:focus-visible {
    outline: 3px solid #f2bd3c;
    outline-offset: 3px;
}

.privacy-settings-link {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

body[data-page="entree"] .privacy-settings-link {
    position: fixed;
    z-index: 10;
    left: 1rem;
    bottom: 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.76rem;
}

.pwa-install-prompt { display: none; }
.pwa-install-prompt .pwa-mark { color: #ed1c24; font-size: 0.72rem; font-weight: 950; text-transform: uppercase; }
.pwa-install-prompt .pwa-instruction { font-weight: 700; }
.pwa-install-prompt .pwa-share-symbol { display: inline-grid; width: 1.65rem; height: 1.65rem; place-items: center; margin: 0 0.2rem; border: 1px solid #1686d9; color: #1686d9; font-size: 1.1rem; vertical-align: middle; }

.external-embed-frame {
    position: relative;
    min-width: 0;
    min-height: 330px;
    background: #ecebe6;
}

.official-site-embed .external-embed-frame { min-height: 680px; }
.external-embed-frame iframe { display: none; }
.external-embed-frame.is-loaded iframe { display: block; }
.external-embed-frame.is-loaded .external-consent-placeholder { display: none; }

.external-consent-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.8rem;
    padding: 2rem;
    color: #17191d;
    background: #ecebe6;
    text-align: center;
}

.external-consent-placeholder strong { font-size: 1.05rem; }
.external-consent-placeholder p { max-width: 34rem; margin: 0; color: #55585e; font-size: 0.86rem; line-height: 1.5; text-shadow: none; }
.external-consent-placeholder button { padding: 0.75rem 1rem; border: 0; border-radius: 4px; color: #fff; background: #a80d14; font: inherit; font-weight: 850; cursor: pointer; }

@media (max-width: 820px) and (pointer: coarse) {
    .pwa-install-prompt { display: block; }
    .pwa-install-prompt[hidden] { display: none; }
    .privacy-toast,
    .pwa-install-prompt { right: 0.75rem; bottom: 0.75rem; width: calc(100vw - 1.5rem); }
    body[data-page="entree"] .privacy-settings-link { bottom: 0.5rem; }
}

@media (max-width: 420px) {
    .privacy-toast,
    .pwa-install-prompt { padding: 1rem; }
    .privacy-actions,
    .pwa-install-actions { grid-template-columns: 1fr; }
}
