/*
 * Public site: the cookie banner — a strip at the bottom of the screen, over the width of it, the text on the left and
 * two buttons of the same look on the right: a refusal is no harder than a consent. It does not cover
 * the content of the page: while the strip is shown, the page keeps its room (.app-cookiepage — the body of a live page,
 * put there by web/js/cookie.js; the page of the mockup).
 *
 * The strip stands after .app-site, not in it: the frame is a size container, which would make it the containing block
 * of a fixed child. With no container above it, its narrow rule reads the window (@media), at the break point of the
 * frame (719, frame.css).
 */

.app-cookiepage {
    min-height: 100vh;
    padding-bottom: calc(var(--space-6) * 4);
}

.app-cookie {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    padding: var(--space-3) 0 calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-2);
    background: var(--surface);
    box-shadow: var(--shadow-pop);
}

.app-cookie__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3) var(--space-5);
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.app-cookie__text {
    flex: 1 1 360px;
    margin: 0;
    color: var(--text-2);
    font-size: var(--fs-site-read);
    line-height: var(--lh-text);
}

/* Two columns of equal width: the buttons are the same size as well as the same look. */
.app-cookie__actions {
    display: grid;
    grid-auto-columns: minmax(96px, 1fr);
    grid-auto-flow: column;
    gap: var(--space-2);
}

@media (max-width: 719px) {
    .app-cookiepage {
        padding-bottom: calc(var(--space-6) * 6);
    }

    .app-cookie__actions {
        flex: 1 1 100%;
    }
}
