/* ============================================================
   Cookie Consent — iOS notification style + liquid glass
   ============================================================ */

.lsi-cookie {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    transform: translateY(calc(100% + 2rem));
    z-index: 99999;

    /* Glass card */
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(380px, calc(100vw - 3rem));
    padding: 1rem 1rem 1rem 1.1rem;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
    -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.10),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    opacity: 0;
    transition: none;
}

/* Entrance */
.lsi-cookie--visible {
    animation: lsi-cookie-in 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Exit */
.lsi-cookie--hiding {
    animation: lsi-cookie-out 0.36s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes lsi-cookie-in {
    from {
        opacity: 0;
        transform: translateY(calc(100% + 2rem));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lsi-cookie-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(calc(100% + 2rem));
    }
}

/* Cookie icon */
.lsi-cookie__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ee3638, #ff7043);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(238, 54, 56, 0.35);
}

/* Text body */
.lsi-cookie__body {
    flex: 1;
    min-width: 0;
}

.lsi-cookie__title {
    font-family: var(--lsi-font-heading, 'Montserrat', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lsi-text, #111);
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.lsi-cookie__text {
    font-family: var(--lsi-font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    color: var(--lsi-text-secondary, #555);
    margin: 0;
    line-height: 1.5;
}

/* Action buttons */
.lsi-cookie__actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

.lsi-cookie__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 1.1rem;
    font-family: var(--lsi-font-body, 'Inter', sans-serif);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.01em;
}

.lsi-cookie__btn:active {
    transform: scale(0.96);
}

.lsi-cookie__btn--accept {
    background: #ee3638;
    color: #fff;
    box-shadow: 0 2px 8px rgba(238, 54, 56, 0.30);
}

.lsi-cookie__btn--accept:hover {
    background: #d42d2f;
}

.lsi-cookie__btn--decline {
    background: rgba(0, 0, 0, 0.07);
    color: var(--lsi-text-secondary, #555);
}

.lsi-cookie__btn--decline:hover {
    background: rgba(0, 0, 0, 0.12);
}

/* ── Dark mode ── */
[data-theme="dark"] .lsi-cookie {
    background: rgba(14, 18, 26, 0.68);
    backdrop-filter: blur(32px) saturate(180%) brightness(0.95);
    -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(0.95);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.40),
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .lsi-cookie__btn--decline {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .lsi-cookie__btn--decline:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ── Mobile ── */
@media (max-width: 540px) {
    .lsi-cookie {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
        border-radius: 16px;
        padding: 0.9rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .lsi-cookie__actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }

    .lsi-cookie__btn {
        flex: 1;
        justify-content: center;
    }
}
