:root {
  --bypa-olive-900: #2f382f;
  --bypa-olive-700: #5f6b5c;
  --bypa-olive-600: #6f7c69;
  --bypa-olive-100: #edf0e9;
  --bypa-cream: #f5efe3;
  --bypa-ink: #22261f;
  --bypa-muted: #64695f;
  --bypa-line: #dfe3da;
  --bypa-white: #ffffff;
  --bypa-shadow: 0 22px 70px rgba(31, 36, 30, 0.2), 0 4px 18px rgba(31, 36, 30, 0.1);
}

#bypa-root,
#bypa-root * { box-sizing: border-box; }

#bypa-root {
  color: var(--bypa-ink);
  direction: rtl;
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  line-height: 1.5;
  position: relative;
  z-index: 2147483000;
}

#bypa-root [hidden] { display: none !important; }

.bypa-banner {
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(95, 107, 92, 0.22);
  border-radius: 24px;
  bottom: 18px;
  box-shadow: var(--bypa-shadow);
  display: grid;
  gap: 22px;
  grid-template-columns: 58px minmax(0, 1fr) minmax(170px, 210px);
  left: 50%;
  max-width: 980px;
  padding: 20px 22px;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  z-index: 2147483640;
}

.bypa-banner__mark {
  align-items: center;
  background: var(--bypa-olive-100);
  border-radius: 18px;
  display: flex;
  height: 56px;
  justify-content: center;
  width: 56px;
}

.bypa-banner__mark svg,
.bypa-fab svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bypa-banner__mark svg { color: var(--bypa-olive-700); height: 31px; width: 31px; }
.bypa-banner__copy { min-width: 0; }
.bypa-eyebrow { color: var(--bypa-olive-700); font-size: 12px; font-weight: 800; letter-spacing: .03em; margin: 0 0 2px; }
.bypa-banner h2,
.bypa-panel h2 { color: var(--bypa-olive-900); font-size: 21px; line-height: 1.25; margin: 0; }
.bypa-banner__copy > p:not(.bypa-eyebrow) { color: var(--bypa-muted); font-size: 14px; line-height: 1.55; margin: 6px 0 4px; }
.bypa-policy-link { color: var(--bypa-olive-700) !important; font-size: 13px; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
.bypa-banner__actions { display: grid; gap: 8px; }

.bypa-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  min-height: 42px;
  padding: 9px 16px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.bypa-button:hover { transform: translateY(-1px); }
.bypa-button:focus-visible,
.bypa-icon-button:focus-visible,
.bypa-fab:focus-visible,
.bypa-switch:focus-visible,
.bypa-a11y-grid button:focus-visible { outline: 3px solid #bf7b31; outline-offset: 3px; }
.bypa-button--primary { background: var(--bypa-olive-700); color: var(--bypa-white); }
.bypa-button--primary:hover { background: var(--bypa-olive-900); }
.bypa-button--secondary { background: var(--bypa-white); border-color: var(--bypa-line); color: var(--bypa-olive-900); }
.bypa-button--secondary:hover { background: var(--bypa-olive-100); border-color: var(--bypa-olive-600); }
.bypa-button--text { background: transparent; color: var(--bypa-olive-700); min-height: 32px; padding: 3px 8px; text-decoration: underline; text-underline-offset: 3px; }

.bypa-backdrop {
  background: rgba(24, 29, 24, 0.52);
  inset: 0;
  position: fixed;
  z-index: 2147483641;
}

.bypa-panel {
  background: var(--bypa-white);
  border: 1px solid rgba(95, 107, 92, 0.2);
  border-radius: 24px;
  box-shadow: var(--bypa-shadow);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  position: fixed;
  z-index: 2147483642;
}

.bypa-preferences {
  left: 50%;
  max-width: 620px;
  padding: 24px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
}

.bypa-panel__header { align-items: flex-start; display: flex; justify-content: space-between; gap: 16px; }
.bypa-icon-button {
  align-items: center;
  appearance: none;
  background: var(--bypa-olive-100);
  border: 0;
  border-radius: 50%;
  color: var(--bypa-olive-900);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.bypa-icon-button svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-width: 2; width: 20px; }
.bypa-panel__intro { color: var(--bypa-muted); font-size: 14px; margin: 14px 0 18px; }

.bypa-consent-row {
  align-items: center;
  border-top: 1px solid var(--bypa-line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 15px 0;
}
.bypa-consent-row h3 { color: var(--bypa-olive-900); font-size: 16px; margin: 0 0 3px; }
.bypa-consent-row p { color: var(--bypa-muted); font-size: 13px; line-height: 1.45; margin: 0; max-width: 410px; }
.bypa-required { background: var(--bypa-olive-100); border-radius: 999px; color: var(--bypa-olive-700); flex: 0 0 auto; font-size: 12px; font-weight: 800; padding: 7px 10px; }

.bypa-switch {
  align-items: center;
  appearance: none;
  background: #eceeea;
  border: 1px solid #d9ddd5;
  border-radius: 999px;
  color: var(--bypa-muted);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 34px;
  padding: 4px 6px 4px 9px;
}
.bypa-switch span { background: #8a9085; border-radius: 50%; height: 22px; transition: transform .18s ease, background-color .18s ease; width: 22px; }
.bypa-switch b { font-size: 11px; min-width: 28px; }
.bypa-switch[aria-checked="true"] { background: var(--bypa-olive-100); border-color: var(--bypa-olive-600); color: var(--bypa-olive-900); }
.bypa-switch[aria-checked="true"] span { background: var(--bypa-olive-700); }
.bypa-switch[disabled] { cursor: not-allowed; opacity: .5; }

.bypa-panel__footer { align-items: center; border-top: 1px solid var(--bypa-line); display: grid; gap: 9px; grid-template-columns: 1fr 1fr auto; margin-top: 4px; padding-top: 18px; }
.bypa-panel__footer--single { grid-template-columns: 1fr; }

.bypa-fab {
  align-items: center;
  appearance: none;
  background: var(--bypa-olive-700);
  border: 2px solid var(--bypa-white);
  border-radius: 50%;
  box-shadow: 0 7px 22px rgba(31, 36, 30, .24);
  color: var(--bypa-white);
  cursor: pointer;
  display: flex;
  height: 50px;
  justify-content: center;
  position: fixed;
  right: 18px;
  transition: bottom .2s ease, transform .18s ease, background-color .18s ease;
  width: 50px;
  z-index: 2147483635;
}
.bypa-fab:hover { background: var(--bypa-olive-900); transform: translateY(-2px); }
.bypa-fab svg { height: 26px; width: 26px; }
.bypa-a11y-fab { bottom: 18px; }
.bypa-privacy-fab { bottom: 78px; height: 44px; right: 21px; width: 44px; }
.bypa-privacy-fab svg { height: 23px; width: 23px; }

body.bypa-consent-open .bypa-a11y-fab { bottom: 220px; }
body.bypa-consent-open .bypa-privacy-fab { bottom: 280px; }
body.bypa-consent-open .yydev-chat-button { bottom: 220px !important; }

.bypa-a11y { bottom: 18px; max-width: 390px; padding: 22px; right: 18px; width: calc(100% - 36px); }
.bypa-a11y-grid { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; margin-top: 18px; }
.bypa-a11y-grid button {
  align-items: center;
  appearance: none;
  background: #fafbf9;
  border: 1px solid var(--bypa-line);
  border-radius: 14px;
  color: var(--bypa-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  min-height: 54px;
  padding: 9px 11px;
  text-align: right;
}
.bypa-a11y-grid button:hover,
.bypa-a11y-grid button[aria-pressed="true"] { background: var(--bypa-olive-100); border-color: var(--bypa-olive-600); }
.bypa-a11y-grid button b { font-size: 12px; line-height: 1.3; }
.bypa-tool-icon { align-items: center; background: var(--bypa-white); border: 1px solid var(--bypa-line); border-radius: 10px; color: var(--bypa-olive-700); display: flex; flex: 0 0 auto; font-size: 15px; font-weight: 900; height: 31px; justify-content: center; width: 31px; }
.bypa-a11y-note { background: var(--bypa-cream); border-radius: 14px; margin-top: 14px; padding: 12px 14px; }
.bypa-a11y-note h3 { font-size: 14px; margin: 0 0 2px; }
.bypa-a11y-note p { color: var(--bypa-muted); font-size: 12px; margin: 0 0 4px; }
.bypa-a11y-note a { color: var(--bypa-olive-700) !important; font-size: 12px; font-weight: 800; text-decoration: underline !important; }
.bypa-live-region { height: 1px; overflow: hidden; position: fixed; width: 1px; clip: rect(1px,1px,1px,1px); }

html.bypa-font-1 body :where(p, li, label, input, textarea, select, button, h1, h2, h3, h4, h5, h6) { font-size: calc(1em * 1.1) !important; line-height: 1.55 !important; }
html.bypa-font-2 body :where(p, li, label, input, textarea, select, button, h1, h2, h3, h4, h5, h6) { font-size: calc(1em * 1.2) !important; line-height: 1.6 !important; }
html.bypa-readable body :not(.fa):not([class*="icon"]) { font-family: Arial, "Noto Sans Hebrew", sans-serif !important; letter-spacing: .01em; }
html.bypa-links body a:not(#bypa-root a) { outline: 2px solid currentColor !important; outline-offset: 2px !important; text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.bypa-motion *,
html.bypa-motion *::before,
html.bypa-motion *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
html.bypa-grayscale body > *:not(#bypa-root) { filter: grayscale(1) !important; }
html.bypa-images body img:not(#bypa-root img),
html.bypa-images body picture:not(#bypa-root picture),
html.bypa-images body video:not(#bypa-root video),
html.bypa-images body [style*="background-image"]:not(#bypa-root *) { visibility: hidden !important; }
html.bypa-focus body :focus { outline: 4px solid #f2a43f !important; outline-offset: 4px !important; }
html.bypa-cursor body,
html.bypa-cursor body * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' stroke='%23000' stroke-width='2' d='M4 2l20 18-10 1 5 8-5 2-5-9-5 7z'/%3E%3C/svg%3E") 4 2, auto !important; }

html.bypa-contrast body,
html.bypa-contrast body :where(header, main, footer, section, article, aside, nav, div, form) { background-color: #000 !important; color: #fff !important; }
html.bypa-contrast body :where(p, li, span, h1, h2, h3, h4, h5, h6, label, strong) { color: #fff !important; }
html.bypa-contrast body a { color: #ffeb3b !important; }
html.bypa-contrast body :where(input, textarea, select, button) { background: #000 !important; border-color: #fff !important; color: #fff !important; }
html.bypa-contrast #bypa-root,
html.bypa-contrast #bypa-root * { background-color: revert; color: revert; }

.bypa-section11-notice {
  background: #f7f5ee;
  border: 1px solid #ded9ca;
  border-radius: 12px;
  color: #4d5149;
  flex: 0 0 100%;
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  margin: 10px 0 14px;
  max-width: 100%;
  padding: 10px 12px;
  text-align: right;
  width: 100%;
}
.bypa-section11-notice p { font-size: 12px !important; line-height: 1.55 !important; margin: 0 !important; }
.bypa-section11-notice strong { color: #2f382f; }
.bypa-section11-notice a { color: #53604f !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 2px; }

.bypa-legal-links {
  background: #2f382f;
  color: #fff;
  direction: rtl;
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  padding: 14px 18px;
  position: relative;
  width: 100%;
  z-index: 20;
}
.bypa-legal-links__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1180px;
}
.bypa-legal-links span { color: #dce2d8; font-size: 13px; font-weight: 800; }
.bypa-legal-links a { color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
.bypa-legal-links__cancel { background: #f5efe3; border-radius: 999px; color: #2f382f !important; padding: 6px 13px; text-decoration: none !important; }

.bypa-legal-page {
  color: #30342e;
  direction: rtl;
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  line-height: 1.75;
  margin: 48px auto 72px;
  max-width: 920px;
  padding: 0 24px;
  text-align: right;
}
.bypa-legal-page__hero {
  background: linear-gradient(145deg, #edf0e9, #f7f2e8);
  border: 1px solid #dfe3da;
  border-radius: 26px;
  margin-bottom: 24px;
  padding: 34px 38px;
}
.bypa-legal-page__eyebrow { color: #5f6b5c !important; font-size: 13px !important; font-weight: 800; letter-spacing: .03em; margin: 0 0 4px !important; }
.bypa-legal-page__title { color: #394238; font-size: clamp(30px, 5vw, 46px); line-height: 1.2; margin: 0 0 10px; }
.bypa-legal-page__hero > p:last-child { color: #575d54; font-size: 16px; margin: 0; max-width: 720px; }
.bypa-legal-page section { background: #fff; border-bottom: 1px solid #e3e5df; padding: 22px 6px; }
.bypa-legal-page h2 { color: #394238; font-size: 23px; line-height: 1.35; margin: 0 0 9px; }
.bypa-legal-page p,
.bypa-legal-page li { font-size: 16px; }
.bypa-legal-page p { margin: 0 0 11px; }
.bypa-legal-page p:last-child { margin-bottom: 0; }
.bypa-legal-page ul { margin: 8px 0 0; padding-right: 23px; }
.bypa-legal-page li { margin-bottom: 6px; }
.bypa-legal-page a { color: #53604f !important; font-weight: 700; overflow-wrap: anywhere; text-decoration: underline !important; text-underline-offset: 3px; }
.bypa-cancel-card { background: #f8f6ef !important; border: 1px solid #d9ded4 !important; border-radius: 22px; margin: 0 0 12px; padding: 26px 28px !important; }
.bypa-cancel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.bypa-legal-page .bypa-legal-cta {
  align-items: center;
  background: #5f6b5c;
  border: 1px solid #5f6b5c;
  border-radius: 12px;
  color: #fff !important;
  display: inline-flex;
  font-size: 15px;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  text-decoration: none !important;
}
.bypa-legal-page .bypa-legal-cta--secondary { background: #fff; color: #394238 !important; }
.bypa-legal-page .bypa-small { color: #62675f; font-size: 13px; }

@media (max-width: 780px) {
  .bypa-banner {
    align-items: start;
    border-radius: 20px 20px 0 0;
    bottom: 0;
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 11px 12px calc(9px + env(safe-area-inset-bottom));
    width: 100%;
  }
  .bypa-banner__mark,
  .bypa-banner .bypa-eyebrow { display: none; }
  .bypa-banner h2 { font-size: 17px; }
  .bypa-banner__copy > p:not(.bypa-eyebrow) { font-size: 12px; line-height: 1.38; margin: 3px 0 2px; }
  .bypa-banner .bypa-policy-link { font-size: 11.5px; }
  .bypa-banner__actions { grid-template-columns: 1fr 1fr; }
  .bypa-button { font-size: 13px; min-height: 38px; padding: 7px 8px; }
  .bypa-button--text { grid-column: 1 / -1; min-height: 25px; padding-block: 1px; }
  body.bypa-consent-open .bypa-a11y-fab { bottom: 216px; }
  body.bypa-consent-open .bypa-privacy-fab { bottom: 272px; }
  body.bypa-consent-open .yydev-chat-button { bottom: 216px !important; }
  .bypa-preferences,
  .bypa-a11y { border-radius: 22px 22px 0 0; bottom: 0; left: 0; max-height: 88dvh; max-width: none; padding: 18px 15px calc(16px + env(safe-area-inset-bottom)); right: 0; top: auto; transform: none; width: 100%; }
  .bypa-consent-row { gap: 12px; padding: 13px 0; }
  .bypa-consent-row p { font-size: 12px; }
  .bypa-panel__footer { grid-template-columns: 1fr 1fr; }
  .bypa-panel__footer .bypa-policy-link { grid-column: 1 / -1; text-align: center; }
  .bypa-a11y-grid { gap: 8px; }
  .bypa-a11y-grid button { min-height: 50px; }
  .bypa-fab { right: 12px; }
  .bypa-a11y-fab { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .bypa-privacy-fab { bottom: calc(68px + env(safe-area-inset-bottom)); right: 15px; }
  .bypa-section11-notice { margin: 8px 0 11px; padding: 9px 10px; }
  .bypa-section11-notice p { font-size: 11px !important; line-height: 1.48 !important; }
  .bypa-legal-links { padding: 12px 10px; }
  .bypa-legal-links__inner { gap: 9px 14px; }
  .bypa-legal-links span { flex: 0 0 100%; text-align: center; }
  .bypa-legal-links a { font-size: 12px; }
  .bypa-legal-page { margin: 22px auto 48px; padding: 0 14px; }
  .bypa-legal-page__hero { border-radius: 20px; margin-bottom: 10px; padding: 23px 19px; }
  .bypa-legal-page__hero > p:last-child { font-size: 14px; line-height: 1.6; }
  .bypa-legal-page section { padding: 18px 3px; }
  .bypa-legal-page h2 { font-size: 20px; }
  .bypa-legal-page p,
  .bypa-legal-page li { font-size: 15px; line-height: 1.7; }
  .bypa-cancel-card { border-radius: 18px; padding: 19px 16px !important; }
  .bypa-cancel-actions { display: grid; grid-template-columns: 1fr; }
  .bypa-legal-page .bypa-legal-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #bypa-root *, #bypa-root *::before, #bypa-root *::after { animation: none !important; transition: none !important; }
}
