/*
 * Public website and account pages (entrypoint assets/app.js). The backoffice has its own
 * stylesheet, assets/styles/admin.css.
 */
body {
    min-height: 100vh;
}

.avatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
}

/* Cookie notice (etc/specs/cookie-consent.md §6). Themes can restyle it or replace
   @theme/consent/banner.html.twig. It never covers the page: no cookie wall. */
.cms-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1080;
    padding: 1rem;
    pointer-events: none;
}

.cms-consent[hidden] {
    display: none;
}

/* consent.js focuses the notice when it opens (screen readers announce it). The container spans
   the whole width, so the browser's focus ring showed as a line across the page: hide it. The
   buttons inside keep their own focus ring. */
.cms-consent:focus,
.cms-consent:focus-visible {
    outline: none;
}

.cms-consent__box {
    max-width: 40rem;
    margin-inline: auto;
    pointer-events: auto;
}

.cms-consent__text {
    white-space: pre-line;
}

.cms-consent-dialog {
    width: min(36rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
}

.cms-consent-dialog::backdrop {
    background: rgb(0 0 0 / 50%);
}

.cms-consent-embed {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
}

.ratio > .cms-consent-embed {
    min-height: 0;
}

.cms-consent-embed__placeholder {
    max-width: 32rem;
}

.ratio > .cms-consent-embed .cms-consent-embed__placeholder {
    max-height: 100%;
    overflow: auto;
}
