/* OZZI – עוזר התמיכה באתר. אותה שפה כמו המתכנן: שחור #0A0A0A, צהוב #EBE12B, Heebo, RTL.
 * בבועה אחת (ברירת המחדל) העוזר יושב במקום של הבועה של המתכנן, שמוסתרת; בשתי בועות — בצד שנקבע.
 * הצד והגובה נקבעים ב-widget.js (כמו בבועה של המתכנן). z-index (0.1.23, לפי התבנית ozzi-theme): סגור 99981 ופתוח 99999 —
 * מעל הכותרת של האתר (9990) והבועה של המתכנן (99980), מתחת לתפריט הצד (#ozd-drawer 100000) ולחלון איסוף UPS בקופה, ומתחת
 * לחלון השאלון (2147482000). רק "שאלו את העוזר" מתוך השאלון (.ozsb--over) עולה מעליו. הכל תחת .ozsb, כדי שהתבנית לא תשפיע ולא תושפע. */
.ozsb, .ozsb *, .ozsb *::before, .ozsb *::after { box-sizing: border-box; }
.ozsb {
	--y: #EBE12B; --y2: #FFF59A; --tx: #F2F2F2; --mut: #A8A8A8; --line: #2A2A2A;
	position: fixed;
	bottom: 20px;
	z-index: 99981;
	display: flex;
	align-items: flex-end;
	gap: 10px;
	direction: rtl;
	font-family: 'Heebo', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tx);
}
.ozsb--right { right: 20px; flex-direction: row-reverse; }
.ozsb--left { left: 20px; }
.ozsb [hidden] { display: none !important; }

.ozsb__btn {
	width: 62px;
	height: 62px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	border: 2px solid var(--y);
	background: #0A0A0A;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
	cursor: pointer;
	transition: transform .15s;
}
.ozsb__btn:hover { transform: scale(1.06); }
.ozsb__btn:focus-visible, .ozsb button:focus-visible, .ozsb a:focus-visible, .ozsb [role="button"]:focus-visible { outline: 3px solid var(--y2); outline-offset: 2px; }
.ozsb__btn svg { width: 36px; height: 36px; }
.ozsb.is-open .ozsb__btn { display: none; }
/* הצעד הבא (המתכנן) — מעל הכרטיסים */
.ozsb__next { margin: 6px 0 2px; }
.ozsb__next-sub { font-size: 12px; color: var(--mut); margin: 4px 2px 0; line-height: 1.4; }
/* פתוח: מעל הכותרת של האתר, מתחת לתפריט הצד (100000) ולחלון השאלון. */
.ozsb.is-open { z-index: 99999; }
/* שאלה מתוך השאלון: העוזר מעל החלון של המתכנן (2147482000, המסך 2147482500), מתחת לכלי הנגישות (2147483647). */
.ozsb.ozsb--over { z-index: 2147483000; }

/* וואטסאפ בכותרת החלון (0.1.23): קישור ירוק, לשונית חדשה. */
.ozsb__wa { display: inline-flex; align-items: center; gap: 5px; margin-inline-start: auto; padding: 4px 9px; border: 1px solid rgba(37, 211, 102, .45); border-radius: 999px; background: rgba(37, 211, 102, .12); color: #25D366 !important; font-size: 12.5px; font-weight: 700; line-height: 1.2; text-decoration: none !important; white-space: nowrap; }
.ozsb__wa:hover { background: #25D366; color: #0A0A0A !important; }
.ozsb__wa svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.ozsb__wa ~ .ozsb__new { margin-inline-start: 0; }

.ozsb__teaser {
	position: relative;
	max-width: 230px;
	padding: 12px 30px 12px 14px;
	border-radius: 16px 16px 16px 4px;
	background: #0A0A0A;
	border: 1px solid rgba(235, 225, 43, .45);
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
	cursor: pointer;
	animation: ozsb-in .5s 1.6s cubic-bezier(.2, .8, .3, 1) both;
}
.ozsb--left .ozsb__teaser { border-radius: 16px 16px 4px 16px; }
.ozsb__teaser b { color: var(--y); }
.ozsb__x {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #A9A9A9;
	font-size: 14px;
	line-height: 22px;
	cursor: pointer;
}
@keyframes ozsb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ozsb__win {
	width: min(390px, calc(100vw - 40px));
	height: min(640px, calc(100vh - 40px));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #0F0F0F;
	border: 1px solid #262626;
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
	animation: ozsb-in .25s cubic-bezier(.2, .8, .3, 1) both;
}
.ozsb__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #0A0A0A; border-bottom: 1px solid #222; }
.ozsb__ava { width: 34px; height: 34px; border-radius: 50%; background: #1A1A1A; display: grid; place-items: center; flex: none; }
.ozsb__ava svg { width: 26px; height: 26px; }
.ozsb__head b { display: block; font-size: 14.5px; font-weight: 700; color: #fff; }
.ozsb__head small { display: block; color: var(--mut); font-size: 12px; }
.ozsb__head small.is-open::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #45C27A; margin-inline-end: 5px; vertical-align: 1px; }
.ozsb__new, .ozsb__close { background: none; border: 0; color: var(--mut); cursor: pointer; line-height: 1; padding: 4px; }
.ozsb__new { margin-inline-start: auto; font-size: 18px; }
.ozsb__close { font-size: 24px; }
.ozsb__new:hover, .ozsb__close:hover { color: #fff; }

.ozsb__log { position: relative; flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.ozsb__msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; line-height: 1.5; font-size: 14.2px; white-space: pre-line; word-wrap: break-word; }
.ozsb__msg--me { align-self: flex-end; background: var(--y); color: #0A0A0A; border-end-end-radius: 4px; }
.ozsb__msg--bot { align-self: flex-start; background: #1E1E1E; color: var(--tx); border-end-start-radius: 4px; }
.ozsb__msg--safety { background: #3A1414; border: 1px solid #6B2323; }
.ozsb__msg--sys { align-self: center; background: none; color: var(--mut); font-size: 12px; padding: 2px; text-align: center; }
.ozsb__msg ol { margin: 6px 0 0; padding-inline-start: 20px; white-space: normal; }
.ozsb__msg li { margin: 3px 0; }
.ozsb__lic { margin-top: 8px; padding: 6px 9px; background: #2A2410; border-radius: 8px; color: var(--y2); font-size: 12.5px; white-space: normal; }
.ozsb__tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #2A2A2A; color: var(--mut); margin-top: 6px; white-space: normal; }
.ozsb__typing { align-self: flex-start; color: var(--mut); font-size: 13px; padding: 4px 8px; }
.ozsb__typing::after { content: '…'; animation: ozsb-dots 1.2s steps(4) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes ozsb-dots { from { width: 0; } to { width: 1.2em; } }

.ozsb__cards { align-self: flex-start; display: grid; gap: 8px; width: 88%; }
.ozsb__card { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; background: #171717; border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-decoration: none !important; color: var(--tx) !important; }
.ozsb__card:hover { border-color: var(--y); }
.ozsb__img { width: 64px; height: 52px; border-radius: 8px; background: #222; overflow: hidden; display: grid; place-items: center; position: relative; font-size: 22px; }
.ozsb__img img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.ozsb__img--video::after { content: '▶'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; text-shadow: 0 0 6px #000; }
.ozsb__card b { display: block; font-size: 13.5px; line-height: 1.35; font-weight: 500; color: var(--tx); }
.ozsb__card small { color: var(--mut); font-size: 12px; }
.ozsb__card small em { color: var(--y); font-style: normal; font-weight: 700; }

.ozsb__chips { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; max-width: 95%; }
.ozsb__chip { background: transparent; border: 1px solid #3A3A3A; border-radius: 999px; padding: 5px 11px; margin: 0; font: inherit; font-size: 13px; line-height: 1.4; cursor: pointer; color: #E6E6E6; text-decoration: none !important; }
.ozsb__chip:hover { border-color: var(--y); color: var(--y); }
.ozsb__chip--main { border-color: var(--y); color: var(--y); font-weight: 700; }
.ozsb__chip:disabled { opacity: .45; cursor: default; }

.ozsb__form { display: flex; gap: 8px; padding: 10px; margin: 0; border-top: 1px solid #222; background: #0A0A0A; }
.ozsb__form input { flex: 1; min-width: 0; height: 40px; margin: 0; background: #1A1A1A; border: 1px solid #333; border-radius: 999px; padding: 0 14px; outline: none; color: #fff; font: inherit; font-size: 15px; box-shadow: none; }
.ozsb__form input:focus { border-color: var(--y); }
.ozsb__form input::placeholder { color: #777; }
.ozsb__form button { height: 40px; margin: 0; background: var(--y); color: #0A0A0A; border: 0; border-radius: 999px; padding: 0 16px; font: inherit; font-weight: 800; cursor: pointer; }
.ozsb__form button:disabled { opacity: .5; cursor: default; }
.ozsb__foot { padding: 0 12px 8px; background: #0A0A0A; color: #6F6F6F; font-size: 11px; text-align: center; }

/* טלפון: החלון על כל המסך. */
@media (max-width: 520px) {
	.ozsb { bottom: 14px; }
	.ozsb--right { right: 14px; }
	.ozsb--left { left: 14px; }
	.ozsb.is-open { inset: 0; bottom: 0; right: 0; left: 0; }
	/* מחוברים: סרגל הניהול (46px) נשאר מעל — החלון מתחיל מתחתיו, כדי שה-× ייראה. */
	body.admin-bar .ozsb.is-open { top: 46px; }
	/* כותרת צרה: בלי האווטאר, ↺ צר יותר — כדי שהכותרת, "וואטסאפ", ↺ ו-× ייכנסו בשורה אחת. */
	.ozsb__head { gap: 8px; }
	.ozsb__ava { display: none; }
	.ozsb__head b { white-space: nowrap; }
	.ozsb__new { min-width: 36px; }
	.ozsb__wa { min-height: 36px; padding: 4px 10px; font-size: 13px; }
	.ozsb.is-open .ozsb__teaser { display: none; }
	.ozsb__teaser { max-width: calc(100vw - 172px); } /* משאיר ~80px בצד השני — לכפתור וואטסאפ או נגישות */
	.ozsb__win { width: 100vw; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
	.ozsb__form input { font-size: 16px; } /* בלי זום אוטומטי באייפון */
	/* × ו-↺ בגודל אצבע */
	.ozsb__new, .ozsb__close { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
	.ozsb__close { font-size: 30px; color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
	.ozsb__teaser, .ozsb__win { animation: none; }
	.ozsb__btn { transition: none; }
	.ozsb__log { scroll-behavior: auto; }
}
