/* =========================================================================
   a11y.css — תפריט הנגישות + ההתאמות שהוא מפעיל.
   ========================================================================= */

/* ---------- הכפתור הצף ---------- */
.bpx-a11y {
	position: fixed;
	/* ב-RTL זו הפינה הימנית־תחתונה. הכפתורים הצפים של העסק יושבים
	   בפינה השמאלית, ולכן השתיים לא נפגשות. */
	inset-inline-start: 14px;
	inset-block-end: 16px;
	z-index: 900;
}
.bpx-a11y-btn {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	/* !important: ערכת הנושא צובעת כל <button> ומחקה את הרקע כאן. */
	background: #1a56db !important;
	color: #fff !important;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(26, 86, 219, .38);
	transition: transform .16s, box-shadow .16s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bpx-a11y-btn:hover { transform: scale(1.06); box-shadow: 0 8px 22px rgba(26, 86, 219, .5); }
.bpx-a11y-btn:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.bpx-a11y-btn svg { width: 34px; height: 34px; display: block; }
.bpx-a11y.has-active .bpx-a11y-btn::after {
	content: '';
	position: absolute;
	inset-block-start: 1px;
	inset-inline-end: 1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 2px #fff;
}

/* ---------- הפאנל ---------- */
.bpx-a11y-panel {
	position: absolute;
	inset-block-end: calc(100% + 10px);
	inset-inline-start: 0;
	width: min(272px, calc(100vw - 24px));
	background: #fff;
	border: 1px solid #e2e0ea;
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(20, 10, 45, .26);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .18s, transform .18s;
	pointer-events: none;
	/* חייב להיות ניתן לגלילה: הפאנל גבוה מ-450px, ובמסך נמוך (טלפון
	   לרוחב) הכותרת וכפתור הסגירה יצאו מעל גבול המסך בלי שום דרך להגיע
	   אליהם — ההורה הוא position:fixed. */
	max-height: calc(100vh - 96px);
	max-height: calc(100dvh - 96px);
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

@media (max-height: 520px) {
	.bpx-a11y-head { padding: 9px 12px; }
	.bpx-a11y-body { padding: 8px; gap: 4px; }
	.bpx-a11y-opt { padding: 8px 11px; }
	.bpx-a11y-row { padding: 5px 10px; }
}
.bpx-a11y-panel[hidden] { display: none; }
.bpx-a11y.is-open .bpx-a11y-panel { opacity: 1; transform: none; pointer-events: auto; }

.bpx-a11y-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px solid #eeecf4;
}
.bpx-a11y-head strong { font-size: 16px; font-weight: 800; color: #1c1330; }
.bpx-a11y-x {
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: #f2eefa;
	color: #4a3b66;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	font-family: system-ui, sans-serif;
}
.bpx-a11y-x:hover { background: #e5dcf6; }

.bpx-a11y-body { padding: 10px; display: grid; gap: 6px; }

.bpx-a11y-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: #1c1330;
}
.bpx-a11y-steps { display: flex; align-items: center; gap: 6px; }
.bpx-a11y-steps button {
	width: 34px;
	height: 34px;
	border: 1.5px solid #e2e0ea;
	border-radius: 9px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #1a56db;
	cursor: pointer;
}
.bpx-a11y-steps button:hover { border-color: #1a56db; background: #eff4ff; }
.bpx-a11y-steps span { font-size: 13px; font-weight: 700; color: #4a3b66; min-width: 42px; text-align: center; }

.bpx-a11y-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px 12px;
	border: 1.5px solid #e2e0ea;
	border-radius: 11px;
	background: #fff;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: #1c1330;
	text-align: start;
	cursor: pointer;
	transition: border-color .14s, background-color .14s;
}
.bpx-a11y-opt:hover { border-color: #1a56db; background: #eff4ff; }
.bpx-a11y-opt.is-on { border-color: #1a56db; background: #e0eaff; color: #12329c; }
.bpx-a11y-ico { width: 22px; text-align: center; font-size: 15px; }

.bpx-a11y-reset {
	margin-top: 4px;
	padding: 10px;
	border: 1.5px dashed #e2e0ea;
	border-radius: 11px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #6b6580;
	cursor: pointer;
}
.bpx-a11y-reset:hover { border-color: #e11d48; color: #e11d48; }
.bpx-a11y-link {
	display: block;
	text-align: center;
	font-size: 13px;
	padding: 8px 0 4px;
	color: #1a56db;
	font-weight: 600;
}

@media (max-width: 640px) {
	.bpx-a11y { inset-block-end: 14px; }
	.bpx-a11y-btn { width: 44px; height: 44px; }
	.bpx-a11y-btn svg { width: 31px; height: 31px; }
}

/* =========================================================================
   ההתאמות עצמן
   ========================================================================= */

/* ניגודיות גבוהה */
html.bpx-a11y-contrast body,
html.bpx-a11y-contrast .bpx-header,
html.bpx-a11y-contrast .bpx-mainbar { background: #fff !important; }
html.bpx-a11y-contrast body,
html.bpx-a11y-contrast p,
html.bpx-a11y-contrast li,
html.bpx-a11y-contrast span,
html.bpx-a11y-contrast small,
html.bpx-a11y-contrast td,
html.bpx-a11y-contrast th,
html.bpx-a11y-contrast label { color: #000 !important; }
html.bpx-a11y-contrast h1,
html.bpx-a11y-contrast h2,
html.bpx-a11y-contrast h3,
html.bpx-a11y-contrast strong { color: #000 !important; }
html.bpx-a11y-contrast a { color: #0b3ea8 !important; }
html.bpx-a11y-contrast .bpx-btn-solid,
html.bpx-a11y-contrast .bpx-btn-wa,
html.bpx-a11y-contrast button[type="submit"],
html.bpx-a11y-contrast #place_order { background: #000 !important; color: #fff !important; border-color: #000 !important; }
html.bpx-a11y-contrast img { filter: contrast(1.15); }

/* המשטחים הכהים נשארים כהים — שם הטקסט הלבן כבר עמד בתקן.
   בלי זה כלל ה-!important שלמעלה צבע את כותרת הגיבור ואת כל הפוטר
   בשחור על #14092e, כלומר יחס ניגודיות 1.1:1 — בדיוק ההפך מהמטרה. */
html.bpx-a11y-contrast .bpx-hero,
html.bpx-a11y-contrast .bpx-footer,
html.bpx-a11y-contrast .bpx-topnotice { background: #0b0620 !important; }
html.bpx-a11y-contrast .bpx-hero-bg,
html.bpx-a11y-contrast .bpx-hero-bg::after { background: none !important; }

html.bpx-a11y-contrast .bpx-hero h1,
html.bpx-a11y-contrast .bpx-hero h2,
html.bpx-a11y-contrast .bpx-hero p,
html.bpx-a11y-contrast .bpx-hero li,
html.bpx-a11y-contrast .bpx-hero span,
html.bpx-a11y-contrast .bpx-hero small,
html.bpx-a11y-contrast .bpx-hero strong,
html.bpx-a11y-contrast .bpx-footer h1,
html.bpx-a11y-contrast .bpx-footer h2,
html.bpx-a11y-contrast .bpx-footer h3,
html.bpx-a11y-contrast .bpx-footer p,
html.bpx-a11y-contrast .bpx-footer li,
html.bpx-a11y-contrast .bpx-footer span,
html.bpx-a11y-contrast .bpx-footer small,
html.bpx-a11y-contrast .bpx-footer strong,
html.bpx-a11y-contrast .bpx-topnotice span,
html.bpx-a11y-contrast .bpx-topnotice small,
html.bpx-a11y-contrast .bpx-topnotice strong { color: #fff !important; }

html.bpx-a11y-contrast .bpx-hero a,
html.bpx-a11y-contrast .bpx-footer a,
html.bpx-a11y-contrast .bpx-topnotice a { color: #ffe27a !important; }
html.bpx-a11y-contrast .bpx-hl { color: #ffd76a !important; }

/* כפתור מלא על רקע כהה — לבן עם טקסט שחור, לא שחור על שחור. */
html.bpx-a11y-contrast .bpx-hero .bpx-btn-solid,
html.bpx-a11y-contrast .bpx-hero .bpx-btn-wa,
html.bpx-a11y-contrast .bpx-footer .bpx-btn-solid,
html.bpx-a11y-contrast .bpx-footer .bpx-btn-wa {
	background: #fff !important; color: #000 !important; border-color: #fff !important;
}
html.bpx-a11y-contrast .bpx-btn-solid span,
html.bpx-a11y-contrast .bpx-btn-wa span,
html.bpx-a11y-contrast #place_order span,
html.bpx-a11y-contrast button[type="submit"] span { color: inherit !important; }

/* הדגשת קישורים */
html.bpx-a11y-links a {
	text-decoration: underline !important;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px !important;
}
html.bpx-a11y-links a:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* גופן קריא */
html.bpx-a11y-readable body,
html.bpx-a11y-readable input,
html.bpx-a11y-readable textarea,
html.bpx-a11y-readable button,
html.bpx-a11y-readable select {
	font-family: Arial, "Arial Hebrew", "Segoe UI", sans-serif !important;
	letter-spacing: .01em;
}

/* ריווח שורות */
html.bpx-a11y-spacing p,
html.bpx-a11y-spacing li,
html.bpx-a11y-spacing td,
html.bpx-a11y-spacing dd { line-height: 2.05 !important; }
html.bpx-a11y-spacing p { margin-bottom: 1.2em !important; }

/* עצירת אנימציות */
html.bpx-a11y-motion *,
html.bpx-a11y-motion *::before,
html.bpx-a11y-motion *::after {
	animation-duration: .001ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: .001ms !important;
	scroll-behavior: auto !important;
}

/* ---------- מיקוד מקלדת גלוי בכל האתר (ת"י 5568) ---------- */
.bpx-on a:focus-visible,
.bpx-on button:focus-visible,
.bpx-on input:focus-visible,
.bpx-on select:focus-visible,
.bpx-on textarea:focus-visible,
.bpx-on [tabindex]:focus-visible {
	outline: 3px solid #f59e0b;
	outline-offset: 2px;
	border-radius: 4px;
}
