.cookie-consent {
    position: fixed;
    z-index: 1000;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: grid;
    max-width: 1120px;
    margin: 0 auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    color: #172033;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .2);
    backdrop-filter: blur(12px);
}

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

.cookie-consent-settings {
    position: fixed;
    z-index: 999;
    right: 18px;
    bottom: 18px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: #344054;
    box-shadow: 0 7px 22px rgba(15, 23, 42, .14);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

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

.cookie-consent-settings:hover {
    border-color: #b8b2ff;
    color: #5148dc;
}

.cookie-consent__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: #f3f0ff;
    font-size: 23px;
}

.cookie-consent__content strong {
    display: block;
    margin-bottom: 4px;
    color: inherit;
    font-size: 16px;
}

.cookie-consent__content p {
    max-width: 720px;
    margin: 0;
    color: #526077;
    font-size: 13px;
    line-height: 1.55;
}

.cookie-consent__privacy {
    display: inline-block;
    margin-top: 7px;
    color: #6256d9;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cookie-consent__button {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-consent__button:focus-visible {
    outline: 3px solid rgba(99, 91, 255, .25);
    outline-offset: 2px;
}

.cookie-consent__button--primary {
    border-color: #635bff;
    background: #635bff;
    color: #fff;
}

.cookie-consent__button--primary:hover {
    background: #5148dc;
}

.cookie-consent__button--secondary {
    border-color: #d8dee9;
    background: #fff;
    color: #344054;
}

.cookie-consent__button--secondary:hover {
    background: #f6f7f9;
}

[data-theme="dark"] .cookie-consent {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(28, 25, 22, .97);
    color: #f5f0e8;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .42);
}

[data-theme="dark"] .cookie-consent-settings {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(28, 25, 22, .94);
    color: #f5f0e8;
}

[data-theme="dark"] .cookie-consent__content p {
    color: #bdb5aa;
}

[data-theme="dark"] .cookie-consent__icon {
    background: rgba(255, 255, 255, .08);
}

[data-theme="dark"] .cookie-consent__button--secondary {
    border-color: rgba(255, 255, 255, .18);
    background: transparent;
    color: #f5f0e8;
}

[data-theme="dark"] .cookie-consent__button--secondary:hover {
    background: rgba(255, 255, 255, .08);
}

@media (max-width: 760px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
        border-radius: 15px;
    }

    .cookie-consent__icon {
        width: 42px;
        height: 42px;
    }

    .cookie-consent__actions {
        grid-column: 1 / -1;
    }

    .cookie-consent__button {
        flex: 1;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .cookie-consent {
        display: block;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .cookie-consent__icon {
        margin-bottom: 12px;
    }

    .cookie-consent__actions {
        align-items: stretch;
        flex-direction: column-reverse;
        margin-top: 14px;
    }
}
