.root-canvas .site-cookie-panel {
    position: fixed;
    inset: auto 16px 16px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.root-canvas .site-cookie-panel__card {
    width: min(100%, 760px);
    padding: 20px;
    border: 1px solid color-mix(in srgb, var(--section-border-subtle, currentColor) 18%, transparent);
    border-radius: 8px;
    color: var(--section-text-colour, var(--main-text-colour));
    background: var(--section-background, var(--main-background));
    box-shadow: 0 22px 60px color-mix(in srgb, var(--section-text-colour, currentColor) 20%, transparent);
    pointer-events: auto;
    animation: site-cookie-panel-enter .28s ease-out both;
}

.root-canvas .site-cookie-panel__copy h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.root-canvas .site-cookie-panel__copy p {
    margin: 0 0 10px;
    max-width: 62ch;
    line-height: 1.55;
}

.root-canvas .site-cookie-panel__copy a,
.root-canvas .site-footer__legal-button {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.root-canvas .site-cookie-panel__choices {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    overflow: hidden;
}

.root-canvas .site-cookie-panel__choices.is-open {
    animation: site-cookie-choices-enter .24s ease-out both;
}

.root-canvas .site-cookie-choice {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--section-border-subtle, currentColor) 14%, transparent);
    border-radius: 6px;
}

.root-canvas .site-cookie-choice strong,
.root-canvas .site-cookie-choice small {
    display: block;
}

.root-canvas .site-cookie-choice small {
    margin-top: 2px;
    color: color-mix(in srgb, var(--section-text-colour, currentColor) 68%, transparent);
}

.root-canvas .site-cookie-choice input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.root-canvas .site-cookie-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.root-canvas .site-cookie-panel [hidden] {
    display: none !important;
}

.root-canvas .site-cookie-placeholder {
    min-height: inherit;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 24px;
    border: 1px dashed color-mix(in srgb, var(--section-border-subtle, currentColor) 45%, transparent);
    border-radius: 8px;
    text-align: center;
    background: color-mix(in srgb, var(--section-background, var(--main-background)) 72%, transparent);
}

.root-canvas .site-cookie-placeholder strong,
.root-canvas .site-cookie-placeholder span {
    display: block;
}

.root-canvas .site-footer__legal-button {
    display: inline;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

@keyframes site-cookie-panel-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes site-cookie-choices-enter {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        max-height: 320px;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .root-canvas .site-cookie-panel__card,
    .root-canvas .site-cookie-panel__choices.is-open {
        animation: none;
    }
}

@media (max-width: 640px) {
    .root-canvas .site-cookie-panel {
        inset: auto 8px 8px;
    }

    .root-canvas .site-cookie-panel__card {
        padding: 16px;
    }

    .root-canvas .site-cookie-panel__actions {
        display: grid;
    }
}
