/*!
 * Resolve Cookies — עיצוב ברירת מחדל. כל הצבעים דרך משתני --rc-* (override per brand).
 * דוגמה לערכת מותג (שים ב-:root של האתר):
 *   :root{ --rc-accent:#67482f; --rc-accent-grad-1:#8a7286; --rc-accent-grad-2:#5f4a59; }
 */
:root {
  --rc-bg: #ffffff;
  --rc-ink: #2b2b2b;
  --rc-ink-head: #1a1714;
  --rc-muted: #8a7a6b;
  --rc-line: rgba(150,130,145,.28);
  --rc-accent: #67482f;            /* לינקים / טקסט משני */
  --rc-accent-grad-1: #8a7286;     /* כפתור ראשי gradient */
  --rc-accent-grad-2: #5f4a59;
  --rc-switch-off: #d8cdd4;
  --rc-switch-on: #80687a;
  --rc-radius: 14px;
  --rc-font: inherit;
  --rc-z: 9200;
}

.rc-cookie {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--rc-z);
  background: var(--rc-bg); border-top: 1px solid var(--rc-line);
  box-shadow: 0 -8px 28px rgba(40,30,40,.16);
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  display: none; direction: rtl; font-family: var(--rc-font);
}
.rc-cookie[dir="ltr"], .rc-cookie.rc-ltr { direction: ltr; }
.rc-cookie.rc-show { display: block; }
.rc-inner { max-width: 640px; margin: 0 auto; }
.rc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.rc-head svg { color: var(--rc-switch-on); flex-shrink: 0; }
.rc-head b { font-size: 15px; color: var(--rc-ink-head); font-weight: 600; }
.rc-txt { font-size: 13.5px; line-height: 1.6; color: var(--rc-ink); margin: 0 0 14px; }
.rc-txt .rc-policy { color: var(--rc-accent); }
.rc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-btn {
  padding: 10px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; border: 1px solid var(--rc-switch-on); background: var(--rc-bg); color: var(--rc-accent);
  transition: background .15s ease, transform .12s ease;
}
.rc-btn:hover { transform: translateY(-1px); }
.rc-accept { background: linear-gradient(165deg, var(--rc-accent-grad-1) 0%, var(--rc-accent-grad-2) 100%); color: #fff; border-color: transparent; }
.rc-custom { border-color: transparent; text-decoration: underline; text-underline-offset: 2px; padding-inline: 12px; }

.rc-prefs { display: none; margin-top: 14px; border-top: 1px solid var(--rc-line); padding-top: 6px; }
.rc-cookie.rc-prefs-open .rc-prefs { display: block; }
.rc-cookie.rc-prefs-open .rc-custom { display: none; }
.rc-cat { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rc-line); }
.rc-cat-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--rc-ink-head); }
.rc-cat-desc { display: block; font-size: 12px; line-height: 1.45; color: var(--rc-muted); margin-top: 2px; }
.rc-prefs-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* מתג */
.rc-sw { flex-shrink: 0; width: 44px; height: 25px; border-radius: 999px; background: var(--rc-switch-off); border: none; position: relative; cursor: pointer; padding: 0; direction: ltr; transition: background .2s ease; }
.rc-sw::after { content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.34,1.4,.64,1); }
.rc-sw[aria-checked="true"] { background: var(--rc-switch-on); }
.rc-sw[aria-checked="true"]::after { transform: translateX(19px); }
.rc-sw[disabled] { opacity: .5; cursor: default; }
.rc-sw:focus-visible { outline: 2px solid var(--rc-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .rc-btn, .rc-sw, .rc-sw::after { transition: none !important; }
}
