/* Cookie banner of Pandao CMS 8 for the theme of L'As du Débarras (its style.css comes from version 7, which had
   no consent banner): the rules of the default theme of version 8.5.0, the buttons in the main colour of the site.
   Loaded after custom.css. */
/*************** COOKIES NOTICE **************/
.cookie-banner {
    position: fixed;
    bottom: 20px;
    max-width: calc(100vw - 40px);
    width: 560px;
    border-radius: 10px;
    padding: 10px 20px;
    inset-inline-start: 20px;
    z-index: 999;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, .2);
    font-size: 16px;
}
.cookie-banner p {
    line-height: 1.2;
}
.cookie-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cookie-actions .btn,
.cookie-modal .btn {
    padding-top: 10px;
    padding-bottom: 10px;
    height: 45px;
    font-size: 15px;
    text-transform: none;
    border-radius: 23px;
}
#cookie-accept-all,
#cookie-reject-all,
#cookie-save {
    background: var(--main-color);
    color: #fff;
}
#cookie-cancel,
#cookie-customize {
    background: #E5EBEE;
    color: #333;
}
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    font-size: 17px;
}
.cookie-modal__panel {
    background: #fff;
    color: #222;
    width: min(560px, 92vw);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}
.cookie-group {
    margin: 12px 0;
}
.cookie-help {
    margin: 4px 0 0;
    color: #666;
    font-size: 14px;
}
.cookie-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}
.cookie-open {
    position: fixed;
    inset-inline-start: 18px;
    bottom: 18px;
    z-index: 9998;
    background: rgba(100, 100, 100, 0.9);
    font-size: 15px;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.cookie-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.cookie-switch input[type="checkbox"] {
    transform: scale(1.2);
}
/* On a phone the banner is a low strip along the bottom of the screen, which leaves the page
   in sight: its text, then the two answers side by side, as easy one as the other (CNIL, EDPB),
   and the choices as a link. A phone held sideways has little height: the same. */
@media (max-width: 767.98px), (max-height: 500px) {
    .cookie-banner {
        inset-inline-start: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 10px 10px 0 0;
        padding: 0;
        font-size: 14px;
    }
    .cookie-banner .container {
        padding-top: 10px !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    }
    .cookie-banner p {
        margin-bottom: 8px;
        line-height: 1.35;
    }
    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 0;
    }
    .cookie-actions .btn {
        height: auto;
        min-height: 40px;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 14px;
        line-height: 1.2;
    }
    #cookie-customize {
        grid-column: 1 / -1;
        min-height: 0;
        padding: 2px 0 0;
        background: none;
        color: inherit;
        text-decoration: underline;
        font-size: 13px;
    }
}
