Documentation
Documentation
.cookie-bar {
position: fixed;
inset: auto 0 0;
z-index: 50;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.75rem 1.5rem;
padding: 0.875rem 1.5rem;
background: #14213d;
color: #f8f9fb;
font:
0.9375rem/1.5 system-ui,
sans-serif;
box-shadow: 0 -4px 16px rgb(0 0 0 / 0.15);
}
.cookie-bar__text {
flex: 1 1 20rem;
margin: 0;
}
.cookie-bar__actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.cookie-bar button {
padding: 0.5rem 1rem;
border: 1px solid #f8f9fb;
border-radius: 999px;
background: transparent;
color: inherit;
font: inherit;
cursor: pointer;
}
.cookie-bar .cookie-bar__button {
background: #f8f9fb;
color: #14213d;
font-weight: 600;
}
.cookie-bar .cookie-bar__link {
border-color: transparent;
text-decoration: underline;
text-underline-offset: 3px;
}
.cookie-bar button:focus-visible {
outline: 2px solid #fca311;
outline-offset: 2px;
}
/* On narrow screens, Reject and Accept share a row at equal width. */
@media (max-width: 30rem) {
.cookie-bar__actions {
width: 100%;
}
.cookie-bar__actions button {
flex: 1 1 40%;
}
.cookie-bar__actions .cookie-bar__link {
flex-basis: 100%;
}
}