/* ============================================================
   Cookie Consent — Afek Center
   קונספט: כרטיסייה צפה מרכזית-תחתונה עם אנימציית spring
   GDPR · חוק הגנת הפרטיות הישראלי · RTL · Heebo
   ============================================================ */

/* ── Card ── */
#afek-cookie-banner {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(18px) scale(0.96);
  z-index: 99999;
  width: min(480px, calc(100vw - 32px));
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow:
    0 4px 6px rgba(2,6,23,0.04),
    0 20px 50px rgba(2,6,23,0.14),
    0 0 0 1px rgba(2,6,23,0.05);
  padding: 24px 26px 22px;
  opacity: 0;
  transition:
    transform .42s cubic-bezier(.34,1.56,.64,1),
    opacity   .28s ease;
  pointer-events: none;
}

#afek-cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

#afek-cookie-banner.is-hidden {
  transform: translateX(-50%) translateY(24px) scale(0.94);
  opacity: 0;
  pointer-events: none;
}

/* ── Title row ── */
.afek-cookie__head {
  margin-bottom: 10px;
}

.afek-cookie__head strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

/* ── Body text ── */
.afek-cookie__text p {
  margin: 0 0 18px;
  font-size: .855rem;
  color: var(--muted);
  line-height: 1.65;
}

.afek-cookie__link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.afek-cookie__link:hover { color: var(--brand-2); }

/* ── Actions ── */
.afek-cookie__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ── כפתור אישור ── */
.afek-cookie__btn--accept {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 46px;
  border: none;
  background: linear-gradient(135deg, #ff7a3a, #ff9355);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255,122,58,.32);
  transition: transform .15s ease, box-shadow .2s ease;
}

.afek-cookie__btn--accept:hover  {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255,122,58,.42);
}
.afek-cookie__btn--accept:active { transform: translateY(0); }
.afek-cookie__btn--accept:focus-visible { outline: none; box-shadow: var(--focus); }

/* ── קישור דחייה — קטן ועדין מתחת ── */
.afek-cookie__btn--reject {
  background: none;
  border: none;
  padding: 2px 0;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s ease;
}

.afek-cookie__btn--reject:hover { color: var(--muted); }
.afek-cookie__btn--reject:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* ── Mobile ── */
@media (max-width: 480px) {
  #afek-cookie-banner {
    bottom: 16px;
    padding: 20px 18px 18px;
    border-radius: var(--r-md);
  }
}

/* ═══════════════════════════════════════════════════════════
   פקד הסכמה בדף מדיניות הפרטיות — שורה קומפקטית
   ═══════════════════════════════════════════════════════════ */

.afek-consent-manager {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 18px;
  background: var(--warm);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.afek-consent-manager__label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.afek-consent-manager__status {
  display: inline-flex;
  align-items: center;
  font-size: .82rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

.afek-consent-manager__status--accepted { background: #dcfce7; color: #166534; }
.afek-consent-manager__status--rejected { background: #f1f5f9; color: var(--muted); }
.afek-consent-manager__status--unknown  { background: #fef9c3; color: #854d0e; }

.afek-consent-manager__actions {
  display: flex;
  gap: 8px;
  margin-right: auto;
}

.afek-consent-manager__btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.afek-consent-manager__btn:hover  { transform: translateY(-1px); }
.afek-consent-manager__btn:active { transform: translateY(0); }
.afek-consent-manager__btn:focus-visible { outline: none; box-shadow: var(--focus); }

.afek-consent-manager__btn--accept {
  background: linear-gradient(135deg, #ff7a3a, #ff9355);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,122,58,.22);
}

.afek-consent-manager__btn--reject {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}

.afek-consent-manager__timestamp {
  font-size: .75rem;
  color: var(--muted-2);
  white-space: nowrap;
}
