.cookie-notice {
    position:fixed; z-index:50; bottom:8px; left:8px; right:8px; box-sizing:border-box;
    padding:16px; border:1px solid oklch(var(--bc) / .1); border-radius:12px;
    background:oklch(var(--b3)); color:oklch(var(--bc));
    box-shadow:0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1);
    display:grid; gap:16px; max-height:calc(100dvh - 16px); overflow:auto;
    animation:cookie-notice-in .3s ease-out both;
}
.cookie-notice-copy,.cookie-notice-heading,.cookie-notice-actions {display:flex}
.cookie-notice-copy {gap:12px; align-items:flex-start; justify-content:space-between}
.cookie-notice-copy>div {flex:1; min-width:0}
.cookie-notice-heading {align-items:center; gap:8px; margin-bottom:8px}
.cookie-notice-heading h2 {margin:0; font-size:18px; line-height:28px; font-weight:700; color:oklch(var(--p))}
.cookie-notice-heading span {border:1px solid oklch(var(--p)); border-radius:999px; padding:2px 8px; color:oklch(var(--p)); font-size:12px; line-height:16px}
.cookie-notice-copy p {margin:0 0 8px; font-size:13px; line-height:1.625; color:oklch(var(--bc) / .7)}
.cookie-notice-copy a {font-size:12px; line-height:16px; color:oklch(var(--bc) / .5); text-decoration:none}
.cookie-notice-copy a:hover {color:oklch(var(--p))}
.cookie-notice-copy img {width:64px; height:64px; flex-shrink:0; object-fit:contain; filter:drop-shadow(0 4px 6px rgb(0 0 0/.2)); transform-origin:center bottom; animation:cookie-cow 2s ease-in-out infinite}
.cookie-notice-actions {gap:8px; flex-direction:column; justify-content:flex-end}
.cookie-notice-actions button {font:inherit; font-size:12px; line-height:16px; border-radius:8px; padding:8px 12px; cursor:pointer}
.cookie-notice-actions button[data-cookie-choice=declined] {border:1px solid oklch(var(--bc) / .2); background:transparent; color:oklch(var(--bc));}
.cookie-notice-actions button[data-cookie-choice=accepted] {border:0; background:oklch(var(--p)); color:oklch(var(--b1)); padding-inline:16px}
.cookie-notice-actions button[data-cookie-choice=declined]:hover {background:oklch(var(--b2))}
.cookie-notice-actions button[data-cookie-choice=accepted]:hover {filter:brightness(.94)}
.cookie-notice :focus-visible {outline:2px solid oklch(var(--p)); outline-offset:2px}
.cookie-notice.cookie-notice-leaving {animation:cookie-notice-out .2s ease-in both}
@keyframes cookie-notice-in {from{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes cookie-notice-out {to{transform:translateY(100%);opacity:0}}
@media(min-width:640px){
    .cookie-notice {left:auto; right:24px; bottom:24px; width:448px; padding:24px; gap:24px}
    .cookie-notice-copy {gap:16px}
    .cookie-notice-copy img {width:80px; height:80px}
    .cookie-notice-heading {gap:12px; margin-bottom:12px}
    .cookie-notice-heading h2 {font-size:20px; line-height:28px}
    .cookie-notice-heading span {padding:4px 12px}
    .cookie-notice-copy p {font-size:15px}
    .cookie-notice-actions {flex-direction:row; gap:12px}
    .cookie-notice-actions button {font-size:14px; line-height:20px; padding:10px 16px}
    .cookie-notice-actions button[data-cookie-choice=accepted] {padding-inline:24px}
}
@media(max-width:359px){.cookie-notice-heading{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.cookie-notice,.cookie-notice.cookie-notice-leaving{animation-duration:.01ms}}

@keyframes cookie-cow {
    0%,50%,100%{transform:translateY(0) rotate(0) scale(1)}
    25%{transform:translateY(-5px) rotate(-5deg) scale(1.05)}
    75%{transform:translateY(-5px) rotate(5deg) scale(1.05)}
}
@media(prefers-reduced-motion:reduce){.cookie-notice-copy img{animation:none}}
