.footer-cookie-settings {
    display: inline;
    min-height: 0;
    width: auto;
    padding: 0;
    color: white;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:active {
    color: white;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.cookie-consent[hidden],
.cookie-consent__modal[hidden] {
    display: none;
}

.cookie-consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 1000;
    color: var(--ink, #1f2933);
    pointer-events: none;
}

.cookie-consent__bar {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background: var(--panel-bg, #ffffff);
    border: 1px solid var(--panel-line, #d8dee4);
    border-radius: var(--radius-md, 16px);
    box-shadow: 0 18px 48px rgba(23, 33, 30, 0.22);
    pointer-events: auto;
}

.cookie-consent.is-configuring .cookie-consent__bar {
    display: none;
}

.cookie-consent__copy strong {
    display: block;
    margin-bottom: 4px;
    color: var(--brand-dark, #1f2933);
    font-size: 1rem;
    font-weight: 900;
}

.cookie-consent__copy p,
.cookie-consent__dialog p,
.cookie-consent__category p {
    margin: 0;
    color: var(--muted, #4b5563);
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-consent__button {
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 16px;
    white-space: nowrap;
}

.cookie-consent__button--primary {
    background: var(--button-bg, #1f2933);
}

.cookie-consent__button--secondary,
.cookie-consent__button--ghost {
    color: var(--brand-dark, #1f2933);
    background: var(--soft-surface, #f3f4f6);
    border: 1px solid var(--line, #d8dee4);
    box-shadow: none;
}

.cookie-consent__button--ghost {
    background: transparent;
}

.cookie-consent__button--secondary:hover,
.cookie-consent__button--ghost:hover {
    color: var(--brand-dark, #1f2933);
    background: var(--brand-soft, #e5e7eb);
    box-shadow: none;
}

.cookie-consent__modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    pointer-events: auto;
}

.cookie-consent__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(34, 19, 42, 0.42);
}

.cookie-consent__dialog {
    position: relative;
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    padding: 24px;
    background: var(--panel-bg, #ffffff);
    border: 1px solid var(--panel-line, #d8dee4);
    border-radius: var(--radius-lg, 22px);
    box-shadow: 0 24px 70px rgba(23, 33, 30, 0.26);
}

.cookie-consent__dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.cookie-consent__dialog h2,
.cookie-consent__category-title {
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0;
}

.cookie-consent__dialog h2 {
    font-size: 1.45rem;
}

.cookie-consent__category-title {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 900;
}

.cookie-consent__close {
    width: 36px;
    min-height: 36px;
    padding: 0;
    color: var(--brand-dark, #1f2933);
    background: var(--soft-surface, #f3f4f6);
    border: 1px solid var(--line, #d8dee4);
    border-radius: 999px;
    box-shadow: none;
    font-size: 1rem;
    line-height: 1;
}

.cookie-consent__close:hover {
    color: var(--brand-dark, #1f2933);
    background: var(--brand-soft, #e5e7eb);
    box-shadow: none;
}

.cookie-consent__category {
    margin-top: 16px;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    background: var(--highlight-bg, #f8fafc);
    border: 1px solid var(--highlight-line, #d8dee4);
    border-radius: var(--radius-md, 16px);
}

.cookie-consent__category--toggle {
    cursor: pointer;
}

.cookie-consent__category input {
    width: 24px;
    height: 24px;
    min-height: 24px;
    accent-color: var(--brand-dark, #1f2933);
    cursor: pointer;
}

.cookie-consent__required {
    color: var(--brand-dark, #1f2933);
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

.cookie-consent__actions--modal {
    margin-top: 18px;
}

@media (max-width: 860px) {
    .cookie-consent__bar {
        grid-template-columns: minmax(0, 1fr);
    }

    .cookie-consent__actions {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .cookie-consent__button {
        flex: 1 1 170px;
    }
}

@media (max-width: 560px) {
    .cookie-consent__bar {
        width: calc(100% - 24px);
        margin-bottom: 12px;
        padding: 16px;
    }

    .cookie-consent__actions,
    .cookie-consent__actions--modal {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent__button {
        width: 100%;
    }

    .cookie-consent__category {
        grid-template-columns: minmax(0, 1fr);
    }

    .cookie-consent__required {
        white-space: normal;
    }
}
