/* Layout and colours follow the privacy panel on podatki.gov.pl. */
.cookie-consent {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 100%;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #e7eaed;
    background: #fff;
    color: #434343;
    font-family: "Podatki Open Sans", sans-serif;
    font-size: 16px;
    line-height: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.cookie-consent::backdrop { background: rgb(0 0 0 / 45%); }
.cookie-consent:not([open]),
.cookie-consent [hidden] { display: none !important; }
.cookie-consent-inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.cookie-consent-title {
    margin: 0 0 8px;
    font: 700 20px/26px "Podatki Open Sans", sans-serif;
}
.cookie-consent-description { max-width: 640px; margin: 0; }
.cookie-consent a { color: #0452a8; text-decoration: underline; }
.cookie-consent-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}
.cookie-consent-button {
    min-height: 44px;
    padding: 6px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #fff;
    color: #0052a5;
    font: 700 16px/24px "Podatki Open Sans", sans-serif;
    cursor: pointer;
}
.cookie-consent-primary { background: #0052a5; color: #fff; font-weight: 400; }
.cookie-consent-button:hover { background: #3376ab; color: #fff; }
.cookie-consent :focus-visible,
.cookie-consent #cookie-accept:focus,
.cookie-settings-button:focus-visible {
    outline: 3px solid #171717;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #ffdd00;
}
.cookie-consent-title:focus { outline: none; }
.cookie-consent-chevron { display: inline-block; margin-left: 10px; font-size: 24px; }
.cookie-consent [aria-expanded="true"] .cookie-consent-chevron { transform: rotate(90deg); }
.cookie-consent-panel fieldset { margin: 32px 0 0; padding: 0; border: 0; }
.cookie-consent-category { display: flex; max-width: 640px; gap: 10px; margin-bottom: 8px; align-items: flex-start; }
.cookie-consent-category input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #0452a8; }
.cookie-consent-category label { cursor: pointer; }
.cookie-consent-note { max-width: 640px; margin: 12px 0 0; font-size: 14px; }
.cookie-consent-save { display: flex; justify-content: flex-end; margin-top: 24px; }
.cookie-settings-footer {
    margin-top: auto;
    padding: 12px 8px max(8px, env(safe-area-inset-bottom));
    padding-left: max(8px, env(safe-area-inset-left));
    background: #fff;
    text-align: left;
}
.cookie-settings-footer .cookie-settings-button {
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-settings-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #015497;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.cookie-settings-button:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .cookie-consent-inner { padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .cookie-consent-actions { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
    .cookie-consent-button { width: 100%; }
    .cookie-consent-title { margin-bottom: 4px; }
}
