.c-cookie-consent[hidden],
.c-cookie-consent [hidden] {
    display: none !important;
}

.c-cookie-consent {
    position: fixed;
    z-index: 10000;
    right: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #17212b;
    background: #fff;
    border: 1px solid #dbe2e8;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
}

.c-cookie-consent__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
}

.c-cookie-consent h2 {
    margin: 0 0 .5rem;
    font-size: 1.4rem;
    line-height: 1.25;
}

.c-cookie-consent__notice p {
    margin: 0;
}

.c-cookie-consent__notice a,
.c-cookie-consent__policy {
    color: #145b82;
    text-decoration: underline;
}

.c-cookie-consent__policy {
    display: inline-block;
    margin-top: .6rem;
}

.c-cookie-consent__policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
}

.c-cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
    max-width: 390px;
}

.c-cookie-consent button,
.c-footer__cookie-settings {
    cursor: pointer;
    font: inherit;
}

.c-cookie-consent__actions button,
.c-cookie-consent__preferences button {
    padding: .65rem .9rem;
    border: 1px solid #17212b;
    border-radius: 5px;
    background: #fff;
    color: #17212b;
}

.c-cookie-consent__actions [data-cookie-accept] {
    background: #17212b;
    color: #fff;
}

.c-cookie-consent button:focus-visible,
.c-cookie-consent a:focus-visible,
.c-footer__cookie-settings:focus-visible {
    outline: 3px solid #9666ff;
    outline-offset: 3px;
}

.c-cookie-consent__preferences {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid #dbe2e8;
    padding-top: 1rem;
}

.c-cookie-consent__preferences label {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
}

.c-footer__cookie-settings {
    margin-top: .5rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 720px) {
    .c-cookie-consent {
        right: .75rem;
        bottom: .75rem;
        left: .75rem;
        max-height: calc(100vh - 1.5rem);
        overflow-y: auto;
        padding: 1rem;
    }

    .c-cookie-consent__inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .c-cookie-consent__actions {
        justify-content: stretch;
        max-width: none;
    }

    .c-cookie-consent__actions button {
        flex: 1 1 125px;
    }
}
