.cookie-banner {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3000;
    padding: 18px;
    color: var(--um-text);
    background: rgb(255 255 255 / 98%);
    border-top: 1px solid var(--um-border);
    box-shadow: 0 -14px 40px rgb(12 28 64 / 16%);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.cookie-banner[hidden] {
    display: none;
}


.cookie-banner__content {
    position: relative;
}

.cookie-banner__close {
    position: absolute;
    top: -10px;
    right: -4px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    align-items: center;
    justify-content: center;
    color: var(--um-text);
    background: transparent;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.cookie-banner__close:hover,
.cookie-banner__close:focus-visible {
    color: var(--um-blue);
}

.cookie-banner__content {
    display: flex;
    width: min(100%, 1240px);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner__copy {
    max-width: 780px;
}

.cookie-banner h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.cookie-banner p {
    margin: 0;
    color: var(--um-muted);
    font-size: 13px;
    line-height: 1.5;
}

.cookie-banner__links {
    display: flex;
    margin-top: 8px !important;
    gap: 14px;
}

.cookie-banner__links a {
    color: var(--um-blue);
    font-weight: 600;
}

.cookie-banner__actions,
.cookie-preferences__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.cookie-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--um-blue);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition:
        color 150ms ease,
        background-color 150ms ease;
}

.cookie-button--primary {
    color: #ffffff;
    background: var(--um-blue);
}

.cookie-button--secondary {
    color: var(--um-blue);
    background: #ffffff;
}

.cookie-button:hover,
.cookie-button:focus-visible {
    color: #ffffff;
    background: var(--um-blue-dark);
}

.cookie-preferences {
    width: min(92vw, 660px);
    max-height: 88vh;
    padding: 0;
    border: 0;
    color: var(--um-text);
    background: transparent;
}

.cookie-preferences::backdrop {
    background: rgb(3 10 25 / 66%);
}

.cookie-preferences__panel {
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--um-shadow);
}

.cookie-preferences__header {
    display: flex;
    padding: 22px 24px;
    border-bottom: 1px solid var(--um-border);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-preferences__header h2 {
    margin: 0;
    font-size: 22px;
}

.cookie-preferences__close {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    color: var(--um-text);
    background: transparent;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
}

.cookie-preferences__categories {
    display: grid;
    max-height: 56vh;
    padding: 8px 24px;
    overflow-y: auto;
}

.cookie-category {
    display: flex;
    min-height: 92px;
    padding: 18px 0;
    border-bottom: 1px solid var(--um-border);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-category__copy {
    display: grid;
    gap: 5px;
}

.cookie-category__copy strong {
    font-size: 16px;
}

.cookie-category__copy span {
    color: var(--um-muted);
    font-size: 13px;
    line-height: 1.5;
}

.cookie-category input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: var(--um-blue);
}

.cookie-preferences__actions {
    padding: 20px 24px;
    background: var(--um-soft);
}

@media (max-width: 760px) {
    .cookie-banner__content {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__actions .cookie-button {
        flex: 1 1 140px;
    }

    .cookie-preferences__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cookie-preferences__actions .cookie-button {
        width: 100%;
    }
}
