.privacy-cookie[hidden],
#privacy-cookie-settings[hidden] {
    display: none;
}

.privacy-cookie {
    position: fixed;
    z-index: 10000;
    inset: auto 16px 16px auto;
    width: min(530px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid #ced4da;
    border-radius: 18px;
    background: linear-gradient(90deg, #59c4f2, #04567f) top / 100% 5px no-repeat, #fff;
    box-shadow: 0 8px 32px rgba(4, 86, 127, 0.18);
    color: #212529;
    font: 400 15px/1.45 "Fira Sans", sans-serif;
}

.privacy-cookie h2 {
    margin: 0 0 8px;
    color: #04567f;
    font: 700 25px/1.15 "Blogger Sans", "Fira Sans", sans-serif;
}

.privacy-cookie p {
    margin: 0 0 12px;
}

.privacy-cookie a,
#privacy-cookie-settings {
    color: #04567f;
    text-decoration: underline;
}

.privacy-cookie__choice {
    display: grid;
    gap: 2px;
    margin: 10px 0;
}

.privacy-cookie__choice label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.privacy-cookie__choice input[type="checkbox"] {
    position: static;
    display: inline-block;
    appearance: auto;
    opacity: 1;
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    accent-color: #04567f;
}

.privacy-cookie__choice a {
    margin-left: 27px;
}

.privacy-cookie__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.privacy-cookie__actions button {
    flex: 1 1 180px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #04567f;
    border-radius: 24px;
    background: #fff;
    color: #04567f;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.privacy-cookie__actions button:hover {
    background: #e7f6fc;
}

.privacy-cookie__footer {
    text-align: center;
}

#privacy-cookie-settings {
    margin: 0 0 12px;
    padding: 6px 12px;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.privacy-cookie :focus-visible,
#privacy-cookie-settings:focus-visible {
    outline: 2px solid #04567f;
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .privacy-cookie {
        inset: auto 10px 10px;
        width: auto;
        max-height: calc(100vh - 20px);
        padding: 17px;
    }

    .privacy-cookie__actions button {
        flex-basis: 100%;
    }
}
