.cookie-consent {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 99999;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    color: #111827;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    animation: cookie-slide-up 0.25s ease-out;
}

.cookie-consent--dark {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.98);
    color: #fff;
}

.cookie-consent__title {
    margin: 0 0 5px;
    color: inherit;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cookie-consent__text {
    margin: 0;
    color: rgba(17, 24, 39, 0.76);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent--dark .cookie-consent__text {
    color: rgba(255, 255, 255, 0.76);
}

.cookie-consent__providers {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.cookie-consent__providers li {
    display: grid;
    gap: 1px;
    font-size: 13px;
    line-height: 1.4;
}

.cookie-consent__providers strong {
    font-size: 13px;
}

.cookie-consent__providers span {
    color: rgba(17, 24, 39, 0.68);
}

.cookie-consent--dark .cookie-consent__providers span {
    color: rgba(255, 255, 255, 0.7);
}

.cookie-consent__policy {
    display: inline-block;
    margin-top: 10px;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
}

.cookie-consent__btn {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.15s ease, background 0.15s ease;
}

.cookie-consent__btn:hover {
    transform: translateY(-1px);
}

.cookie-consent__btn:focus-visible,
.cookie-consent__checkbox:focus-visible,
.cookie-consent__policy:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.cookie-consent__btn--choice,
.cookie-consent__btn--primary {
    border-color: rgba(17, 24, 39, 0.18);
    background: #111827;
    color: #fff;
}

.cookie-consent--dark .cookie-consent__btn--choice,
.cookie-consent--dark .cookie-consent__btn--primary {
    border-color: rgba(255, 255, 255, 0.22);
    background: #fff;
    color: #0f172a;
}

.cookie-consent__btn--secondary {
    border-color: rgba(17, 24, 39, 0.12);
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
}

.cookie-consent--dark .cookie-consent__btn--secondary {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cookie-consent__btn--ghost {
    grid-column: 1 / -1;
    border-color: rgba(17, 24, 39, 0.12);
    background: transparent;
    color: rgba(17, 24, 39, 0.78);
}

.cookie-consent--dark .cookie-consent__btn--ghost {
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
}

.cookie-consent__settings {
    display: none;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.cookie-consent.is-customizing .cookie-consent__settings {
    display: grid;
}

.cookie-consent--dark .cookie-consent__settings {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.cookie-consent__option {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.05);
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    font-weight: inherit;
}

.cookie-consent--dark .cookie-consent__option {
    background: rgba(255, 255, 255, 0.09);
}

.cookie-consent__option strong,
.cookie-consent__option span span {
    display: block;
}

.cookie-consent__option strong {
    font-size: 14px;
}

.cookie-consent__option span span {
    margin-top: 3px;
    color: rgba(17, 24, 39, 0.68);
    font-size: 13px;
    line-height: 1.4;
}

.cookie-consent--dark .cookie-consent__option span span {
    color: rgba(255, 255, 255, 0.7);
}

.cookie-consent__checkbox {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    accent-color: #111827;
    transition: none;
}

@keyframes cookie-slide-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        animation: none;
    }

    .cookie-consent__btn {
        transition: none;
    }
}

@media (max-width: 520px) {
    .cookie-consent {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        padding: 15px;
        border-radius: 18px;
    }

    .cookie-consent__actions {
        grid-template-columns: 1fr;
    }

    .cookie-consent__btn--ghost {
        grid-column: auto;
    }
}
