/* Colours follow the blue navigation and light panels on plociennik.info. */
.ciasteczka {
    --ciasteczka-blue: #4e88c7;
    box-sizing: border-box;
    position: fixed;
    z-index: 100002;
    left: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1160px;
    margin-inline: auto;
    padding: 24px 28px;
    border: 1px solid #d8dfe7;
    border-top: 4px solid var(--ciasteczka-blue);
    border-radius: 6px;
    background: #fff;
    color: #242a30;
    box-shadow: 0 4px 22px rgb(0 0 0 / 18%);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}
.ciasteczka[hidden] { display: none !important; }
.ciasteczka--dol { bottom: 24px; }
.ciasteczka--gora { top: 24px; }
.ciasteczka--srodek { top: 50%; transform: translateY(-50%); max-width: 600px; }
.ciasteczka .ciasteczka__content { flex: 1; min-width: 0; }
.ciasteczka h2 { margin: 0 0 6px; color: #356da8; font-size: 21px; font-weight: 700; line-height: 1.3; }
.ciasteczka p { margin: 0 0 6px; color: #242a30; overflow-wrap: anywhere; }
.ciasteczka .ciasteczka__link { color: #285f99; text-decoration: underline; text-underline-offset: 3px; }
.ciasteczka .ciasteczka__button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid #285f99;
    border-radius: 4px;
    background: #356da8;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.ciasteczka .ciasteczka__button:hover { background: #285787; }
.ciasteczka :is(a, button):focus-visible { outline: 3px solid #242a30; outline-offset: 4px; }
@media (max-width: 640px) {
    .ciasteczka { left: 12px; right: 12px; padding: 18px; gap: 16px; flex-direction: column; align-items: stretch; }
    .ciasteczka--dol { bottom: 12px; }
    .ciasteczka--gora { top: 12px; }
    .ciasteczka h2 { font-size: 19px; }
}
