/* ===== AP Cookie Consent — glassmorphism card ===== */
.ap-cookie{
    /* z-index below navbar (1000) and mobile nav menu (999) so the open menu is never blocked */
    position:fixed;bottom:24px;right:24px;z-index:998;
    display:flex;flex-direction:column;gap:14px;
    max-width:340px;padding:22px 24px;
    background:rgba(255,255,255,0.72);
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,0.6);
    border-radius:18px;
    box-shadow:0 12px 40px rgba(15,10,26,0.18),0 2px 10px rgba(108,60,225,0.10);
    direction:rtl;font-family:'Heebo','Inter',sans-serif;
    opacity:0;transform:translateY(24px) scale(0.97);
    /* when not .show the card must not swallow taps — it is an invisible fixed overlay */
    visibility:hidden;pointer-events:none;
    transition:opacity .35s ease,transform .35s cubic-bezier(0.25,0.46,0.45,0.94),visibility .35s;
}
/* display:flex above would otherwise override the hidden attribute set by cookie-popup.js */
.ap-cookie[hidden]{display:none}
.ap-cookie.show{opacity:1;transform:translateY(0) scale(1);visibility:visible;pointer-events:auto}
.ap-cookie-icon{
    font-size:2rem;line-height:1;width:52px;height:52px;
    display:flex;align-items:center;justify-content:center;
    background:linear-gradient(135deg,rgba(108,60,225,0.12),rgba(0,212,170,0.12));
    border-radius:14px;
    animation:ap-cookie-bob 2.6s ease-in-out infinite;
}
@keyframes ap-cookie-bob{
    0%,100%{transform:translateY(0) rotate(0deg)}
    30%{transform:translateY(-4px) rotate(-8deg)}
    60%{transform:translateY(0) rotate(6deg)}
}
.ap-cookie-text strong{display:block;font-size:1.02rem;font-weight:800;color:#1a1a2e;margin-bottom:4px}
.ap-cookie-text p{margin:0;font-size:0.88rem;line-height:1.6;color:#4a4a6a}
.ap-cookie-actions{display:flex;gap:10px;flex-wrap:wrap}
.ap-cookie-btn{
    flex:1;min-width:110px;padding:0.6rem 1rem;border-radius:50px;
    font-family:inherit;font-size:0.88rem;font-weight:700;cursor:pointer;
    transition:transform .25s,box-shadow .25s,background .25s;
}
.ap-cookie-btn.primary{
    background:linear-gradient(135deg,#6C3CE1,#8B5CF6);color:#fff;border:none;
    box-shadow:0 4px 14px rgba(108,60,225,0.35);
}
.ap-cookie-btn.primary:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(108,60,225,0.45)}
.ap-cookie-btn.ghost{
    background:transparent;color:#4a4a6a;border:1.5px solid rgba(74,74,106,0.25);
}
.ap-cookie-btn.ghost:hover{background:rgba(74,74,106,0.06);color:#1a1a2e}
@media(max-width:480px){
    /* bottom:90px keeps the buttons clear of the NagishLi accessibility icon (bottom-right corner) */
    .ap-cookie{right:12px;left:12px;bottom:90px;max-width:none}
}
