/* Плашка cookie: карточка в левом нижнем углу. */

.cookie {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border: 1px solid var(--border-on-light);
    border-radius: 16px;
    background: var(--bg);
    box-shadow: var(--shadow-dropdown);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie--hidden {
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
}

.cookie__title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie__icon {
    display: flex;
    flex-shrink: 0;
    color: var(--brand-primary);
}

.cookie__icon svg {
    width: 24px;
    height: 24px;
}

.cookie__text {
    color: var(--text-secondary);
}

.cookie__text a {
    color: var(--brand-primary);
    text-decoration: underline;
}

.cookie__actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.cookie__btn {
    flex: 1;
}

@media (max-width: 768px) {

    .cookie {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        padding: 16px;
    }

    .cookie--hidden {
        transform: translateY(calc(100% + 10px));
    }
}
