.champimo-cookie-ui {
    box-sizing: border-box;
    color: var(--purple-ink, #4b325f);
    background: var(--paper, #fffdf7);
    border: 1px solid var(--lilac-dark, #c8b6f4);
    border-radius: 24px;
    padding: 28px;
    font-family: "Pimpimfont", system-ui, sans-serif;
    font-size: 21px;
    line-height: 1.45;
}
.champimo-cookie-ui *, .champimo-cookie-ui *::before, .champimo-cookie-ui *::after { box-sizing: border-box; }
.champimo-cookie-ui[hidden], .champimo-cookie-ui [hidden] { display: none !important; }
.champimo-cookie-banner {
    position: fixed;
    z-index: 99990;
    inset: auto auto max(20px, env(safe-area-inset-bottom)) 20px;
    width: min(620px, calc(100% - 40px));
    box-shadow: 0 8px 32px #4b325f20;
}
.champimo-cookie-ui h2 {
    font-family: "BBB ReadMe", system-ui, sans-serif;
    font-size: 28px;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: 0;
    text-transform: none;
}
.champimo-cookie-ui p { font: inherit; margin: 0 0 20px; }
.champimo-cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.champimo-cookie-ui .champimo-cookie-actions button {
    flex: 1 1 160px;
    min-height: 52px;
    border: 1px solid var(--purple-deep, #65469f);
    border-radius: 28px;
    padding: 10px 18px;
    color: #fff;
    background: var(--purple-btn, #7e5ec6);
    box-shadow: 0 3px 0 var(--purple-deep, #65469f);
    font: inherit;
    font-size: 21px;
    text-align: center;
    cursor: pointer;
}
.champimo-cookie-ui .champimo-cookie-actions button:hover { background: var(--purple-deep, #65469f); }
.champimo-cookie-ui button:disabled { opacity: .65; cursor: wait; }
.champimo-cookie-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; margin-top: 16px; }
.champimo-cookie-ui :is(.champimo-cookie-links button, .champimo-cookie-links a, .champimo-cookie-more) {
    font: inherit;
    font-size: 20px;
    line-height: 1.3;
    color: var(--purple-deep, #65469f);
    padding: 4px 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}
.champimo-cookie-ui :is(button, input, a):focus-visible { outline: 3px solid var(--purple-deep, #65469f); outline-offset: 4px; }
.champimo-cookie-dialog {
    position: fixed;
    z-index: 99991;
    inset: 0;
    margin: auto;
    width: min(620px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    box-shadow: 0 12px 60px #4b325f35;
}
.champimo-cookie-dialog::backdrop { background: #4b325f65; }
.champimo-cookie-dialog-head { display: flex; align-items: flex-start; gap: 16px; }
.champimo-cookie-dialog-head h2 { flex: 1; padding-top: 5px; }
.champimo-cookie-ui .champimo-cookie-close {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--card, #f4eefe);
    color: var(--purple-ink, #4b325f);
    box-shadow: none;
    cursor: pointer;
}
.champimo-cookie-category { border-top: 1px solid var(--lilac-dark, #c8b6f4); padding-top: 18px; margin-top: 8px; }
.champimo-cookie-category-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 10px; }
.champimo-cookie-ui h3, .champimo-cookie-option span { margin: 0; font: inherit; font-size: 23px; font-weight: 700; }
.champimo-cookie-category-head > span { font-size: 18px; color: var(--purple-deep, #65469f); }
.champimo-cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin: 0 0 10px; cursor: pointer; }
.champimo-cookie-ui input[type="checkbox"] { appearance: auto; flex: 0 0 26px; width: 26px; height: 26px; margin: 0 4px 0 0; accent-color: var(--purple-deep, #65469f); }
.champimo-cookie-ui .champimo-cookie-duration { font-size: 19px; }
.champimo-cookie-more { display: inline-flex; margin-top: 20px; }
.champimo-cookie-ui .champimo-cookie-error { color: #8f2445; margin: 18px 0 0; }
.champimo-cookie-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 620px) {
    .champimo-cookie-ui { border-radius: 20px; padding: 22px 20px; font-size: 20px; }
    .champimo-cookie-banner { inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px; width: auto; max-height: calc(100dvh - 24px); overflow-y: auto; }
    .champimo-cookie-ui h2 { font-size: 26px; margin-bottom: 12px; }
    .champimo-cookie-actions { gap: 10px; }
    .champimo-cookie-ui .champimo-cookie-actions button { flex-basis: 120px; padding: 10px 12px; font-size: 20px; }
    .champimo-cookie-ui .champimo-cookie-actions--settings button { flex-basis: 100%; }
    .champimo-cookie-category-head { margin-bottom: 12px; }
    .champimo-cookie-ui h3, .champimo-cookie-option span { font-size: 22px; }
    .champimo-cookies-pending .back-to-top { visibility: hidden; }
}
/* Page d'information : même lecture que les autres formulaires du site. */
.page-cookies .page-hero { text-align: left; padding-bottom: 0; border: 0; margin-bottom: 28px; }
.page-cookies .paper-page { max-width: 960px; margin-inline: auto; }
.page-cookies .entry-content { font-size: 22px; line-height: 1.55; }
.page-cookies .entry-content h2 { font-size: 28px; margin: 32px 0 12px; }
.page-cookies .entry-content p { margin: 0 0 16px; }
@media (max-width: 620px) {
    .page-cookies .entry-content { font-size: 20px; }
    .page-cookies .entry-content h2 { font-size: 25px; }
}
