/* ===== באנר עוגיות — קומפקטי, שתי פעולות שוות, לא מסתיר את המסר ===== */
section.cookie-consent{
  position:fixed;z-index:1000;
  right:24px;left:auto;bottom:calc(24px + env(safe-area-inset-bottom));
  width:min(calc(100% - 48px),420px);max-width:420px;margin:0;
  padding:14px 16px!important;
  border:1px solid rgba(236,204,110,.5);border-radius:14px;
  background:rgba(17,18,35,.97);
  color:#f7f4f4;box-shadow:0 12px 40px rgba(0,0,0,.45);
  direction:rtl;font-family:'Polin',sans-serif;display:block;
  opacity:0;transform:translateY(10px);transition:opacity .28s ease,transform .28s ease
}
.cookie-consent.is-in{opacity:1;transform:none}
@supports (backdrop-filter:blur(6px)){.cookie-consent{backdrop-filter:blur(6px)}}
.cookie-consent[hidden],.cookie-preferences[hidden]{display:none!important}

/* הכותרת נשארת לקוראי מסך בלבד — חוסכת גובה בלי לפגוע בנגישות */
.cookie-consent h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cookie-consent p{margin:0 0 .6rem;font-size:.82rem;line-height:1.45;color:#c9ccdb}
.cookie-consent a{color:#eccc6e;text-underline-offset:2px}

.cookie-consent .cookie-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin:0}
.cookie-consent .cookie-actions button{
  min-height:44px;padding:.55rem .8rem;border-radius:11px;
  font:700 .9rem 'Polin',sans-serif;cursor:pointer;border:1.5px solid #eccc6e;white-space:nowrap
}
.cookie-accept{background:#eccc6e;color:#111223}
.cookie-reject{background:transparent;color:#f7f4f4}

/* "העדפות" כקישור בתוך הטקסט — לא כפתור שלישי שמתחרה בשניים */
.cookie-consent .cookie-manage{
  display:inline;min-height:0;background:none;border:0;padding:0;
  font:400 .82rem 'Polin',sans-serif;color:#eccc6e;cursor:pointer;
  text-decoration:underline;text-underline-offset:2px
}

/* שמירת מקום בתחתית הדף כל עוד הבאנר מוצג, כדי שלא יסתיר תוכן */
html.has-cookie-banner body{padding-bottom:calc(var(--cookie-h,120px) + 12px)}

/* ===== דיאלוג ההעדפות ===== */
.cookie-preferences{position:fixed;z-index:1001;inset:0;display:grid;place-items:center;padding:1rem;background:rgba(11,12,23,.72);direction:rtl}
.cookie-dialog{width:min(100%,560px);max-height:min(88svh,680px);overflow:auto;padding:1.25rem;border:1px solid rgba(236,204,110,.65);border-radius:20px;background:#111223;color:#f7f4f4;box-shadow:0 30px 90px rgba(0,0,0,.55)}
.cookie-preferences h2{margin:0 0 .45rem;font-size:1.25rem;color:#eccc6e}
.cookie-preferences p{margin:0;line-height:1.55;color:#d7d9e4}
.cookie-preferences a{color:#eccc6e}
.cookie-preferences .cookie-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem;justify-content:flex-start}
.cookie-preferences button{min-height:44px;padding:.55rem .85rem;border:1px solid #eccc6e;border-radius:9px;font:700 .88rem 'Polin',sans-serif;cursor:pointer}
.cookie-save{background:#eccc6e;color:#111223}
.cookie-preferences .cookie-reject{background:transparent;color:#f7f4f4}
.cookie-category{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:1px solid rgba(247,244,244,.14)}
.cookie-category strong{display:block;margin-bottom:.2rem}
.cookie-category input{width:24px;height:24px;flex:none;accent-color:#eccc6e}

@media(max-width:600px){
  section.cookie-consent{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;max-width:none;padding:12px 14px!important}
  .cookie-dialog{padding:1rem}
}
@media(prefers-reduced-motion:reduce){.cookie-consent{transition:none}}
