/* Cookie Banner styles – spójne z LP (slate-900, indigo accents) */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 70;
    background: linear-gradient(rgba(2,6,23,.92), rgba(2,6,23,.9)); /* slate-900 */
    border: 1px solid rgba(129,140,248,.45); /* indigo-400/45 */
    border-radius: 12px;
    box-shadow: 0 24px 64px -24px rgba(99,102,241,.35), inset 0 1px 0 rgba(255,255,255,.05);
    color: #e5e7eb;
    padding: 14px 14px 12px 14px;
    display: none; /* hidden until JS decides */
}

@media (min-width: 768px) {
    .cookie-banner {
        left: 24px;
        right: auto;
        width: 560px;
        bottom: 24px;
        padding: 16px 18px 16px 18px;
    }
}

.cookie-banner__title {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

.cookie-banner__desc {
    color: #cbd5e1;
    font-size: .98rem;
    line-height: 1.55;
}

.cookie-banner__desc a { color: #a78bfa; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__desc a:hover { color: #c4b5fd; }

.cookie-banner__actions {
    display: flex;
    gap: .5rem;
    margin-top: .9rem;
    flex-wrap: wrap;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .98rem;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    cursor: pointer;
}

.cookie-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 8px;
}

.cookie-btn--primary {
    background-color: #4f46e5;
    color: #fff;
    box-shadow: 0 10px 20px -8px rgba(99,102,241,.45);
}
.cookie-btn--primary:hover { background-color: #4338ca; transform: translateY(-1px); }

.cookie-btn--secondary {
    background: rgba(15,23,42,.6);
    color: #e5e7eb;
    border-color: rgba(71,85,105,.7);
}
.cookie-btn--secondary:hover { border-color: rgba(129,140,248,.6); transform: translateY(-1px); }

.cookie-btn--ghost {
    background: transparent;
    color: #cbd5e1;
    border-color: rgba(71,85,105,.6);
}
.cookie-btn--ghost:hover { color: #fff; border-color: rgba(129,140,248,.6); }

.cookie-preferences {
    margin-top: .6rem;
    border-top: 1px solid rgba(71,85,105,.6);
    padding-top: .6rem;
    display: none; /* toggled */
}

.cookie-pref-item {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .4rem 0;
}

.cookie-pref-item__label { color: #fff; font-weight: 700; font-size: .98rem; }
.cookie-pref-item__desc { color: #cbd5e1; font-size: .92rem; line-height: 1.45; }

.cookie-toggle {
    appearance: none;
    width: 44px; height: 26px; border-radius: 999px;
    background: rgba(71,85,105,.6);
    position: relative;
    outline: none; cursor: pointer;
    border: 1px solid rgba(71,85,105,.8);
    transition: background .2s ease, border-color .2s ease;
    flex: 0 0 auto;
    margin-top: .1rem;
}
.cookie-toggle::after {
    content: ""; position: absolute; top: 50%; left: 3px; transform: translateY(-50%);
    width: 20px; height: 20px; border-radius: 999px; background: #e5e7eb;
    transition: left .2s ease, background .2s ease;
}
.cookie-toggle:checked { background: rgba(79,70,229,.35); border-color: rgba(129,140,248,.7); }
.cookie-toggle:checked::after { left: 21px; background: #c7d2fe; }

.cookie-banner__footer {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: .8rem;
}

.cookie-reopen {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 120;
    display: none; /* controlled by JS */
    align-items: center;
    justify-content: center;
}

.cookie-reopen .cookie-btn--icon { 
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(30,41,59,0.9));
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(129,140,248,0.5);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), 
                0 0 0 1px rgba(255,255,255,0.05) inset,
                0 2px 8px rgba(99,102,241,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.cookie-reopen .cookie-btn--icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(129,140,248,0.1), rgba(167,139,250,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cookie-reopen .cookie-btn--icon:hover::before {
    opacity: 1;
}
.cookie-reopen .cookie-btn--icon:hover {
    background: linear-gradient(135deg, rgba(15,23,42,0.98), rgba(30,41,59,0.95));
    border-color: rgba(129,140,248,0.7);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 12px 32px rgba(99,102,241,0.4), 
                0 0 0 1px rgba(255,255,255,0.08) inset,
                0 4px 12px rgba(99,102,241,0.3);
    color: #c4b5fd;
}
.cookie-reopen .cookie-btn--icon:active {
    transform: translateY(-1px) scale(1.05);
}
.cookie-reopen .cookie-btn--icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}


