.cookie-consent {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(14px);
}

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

.cookie-consent__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #2563eb;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
    font-size: 1.15rem;
}

.cookie-consent__content h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
}

.cookie-consent__content p {
    margin: 0;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.55;
}

.cookie-consent__preferences {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.cookie-consent__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    margin: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.cookie-consent__check input {
    margin-top: 3px;
}

.cookie-consent__check span {
    display: grid;
    gap: 2px;
}

.cookie-consent__check small {
    color: #64748b;
    line-height: 1.35;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 250px;
}

.cookie-consent__btn {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

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

.cookie-consent__btn--primary {
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.cookie-consent__btn--ghost {
    color: #0f172a;
    background: #ffffff;
    border-color: #cbd5e1;
}

.cookie-consent-trigger {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 9997;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #0f172a;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}

@media (max-width: 768px) {
    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        border-radius: 14px;
    }

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

    .cookie-consent__actions {
        min-width: 0;
        justify-content: stretch;
    }

    .cookie-consent__btn {
        flex: 1 1 120px;
    }
}
