/* PrintixPAI — the PAI card, pill and in-place helper line (1.7.1). UI-UX tokens: ink #191512, sand #D5B398,
   line #E6DFD6, 20px corners, 50px buttons, Heebo, labels centred (D33). Logical sides only (RTL he/ar, LTR en/ru).
   Every button pins its own hover / focus colours: the site theme (Hello Elementor reset.css) paints any
   button:hover / :focus pink #c36 — selectors here are stronger than "[type=button]:hover". */
.pxai-badge{display:inline-flex;align-items:center;gap:1px;height:26px;padding:0 9px 0 8px;border-radius:20px;background:#191512;color:#fff;direction:ltr;font:800 14px/1 "Heebo",sans-serif;flex:none}
.pxai-badge svg{height:14px;width:auto;color:#D5B398}
.pxai-badge b{font-weight:800}

/* ── card ── */
.pxai-card{position:fixed;z-index:999998;inset-inline-start:20px;bottom:24px;width:min(380px,calc(100vw - 32px));box-sizing:border-box;padding:16px 18px 14px;border:1px solid #E6DFD6;border-radius:20px;background:linear-gradient(135deg,#fff,#FBF6F1);color:#191512;font:400 15px/1.55 "Heebo",sans-serif;box-shadow:0 12px 32px rgba(25,21,18,.16);animation:pxai-in .28s ease-out}
.pxai-card *{box-sizing:border-box}
.pxai-head{display:flex;align-items:center;gap:10px;margin:0 0 8px}
.pxai-title{flex:1;font-weight:700;font-size:16px;text-align:center}
.pxai-text{margin:0 0 12px;text-align:center;white-space:pre-line}
.pxai-text.pxai-wait{color:#7A7166}
.pxai-acts{display:flex;gap:10px}
.pxai-acts .pxai-btn{flex:1}
.pxai-pair .pxai-btn{flex:1}
.pxai-pair .pxai-main{flex:2}
.pxai-pair.pxai-long .pxai-btn{flex:1} /* a long label (e.g. with a price) gets half, not a third */
.pxai-card button.pxai-btn{white-space:normal;overflow-wrap:anywhere} /* 1.7.4: a long label wraps instead of being cut ("לכתוב טקסט משלי (+15 ₪)") */
.pxai-ask{display:flex;gap:8px;margin:12px 0 0}
.pxai-ask input{flex:1;min-width:0;height:50px;padding:0 16px;border:1px solid #E6DFD6;border-radius:20px;background:#fff;color:#191512;font:400 16px "Heebo",sans-serif;text-align:start}
.pxai-ask input:focus{outline:2px solid #D5B398;outline-offset:0;border-color:#D5B398}

/* buttons (pinned against the theme) */
.pxai-card button.pxai-btn,.pxai-card button.pxai-btn:focus{min-height:50px;height:auto;min-width:0;margin:0;padding:7px 14px;line-height:1.25;border:1px solid #D5B398;border-radius:20px;background:#fff;color:#1E1B17;font:700 15px/1.25 "Heebo",sans-serif;text-align:center;text-transform:none;cursor:pointer;box-shadow:none;transition:background .3s,color .3s,border-color .3s}
.pxai-card button.pxai-btn.pxai-main,.pxai-card button.pxai-btn.pxai-main:focus{background:#D5B398;color:#F7F7F7}
.pxai-card button.pxai-btn:hover,.pxai-card button.pxai-btn.pxai-main:hover{background:#111;border-color:#111;color:#fff}
.pxai-card button.pxai-x,.pxai-card button.pxai-x:focus{flex:none;width:32px;height:32px;min-height:0;margin:0;padding:6px;border:0;border-radius:20px;background:transparent;color:#7A7166;cursor:pointer;box-shadow:none}
.pxai-card button.pxai-x:hover{background:#F0E3D8;color:#191512}
.pxai-x svg{width:100%;height:100%;display:block}
.pxai-card button.pxai-send,.pxai-card button.pxai-send:focus{flex:none;width:50px;height:50px;min-height:0;margin:0;padding:13px;border:0;border-radius:20px;background:#D5B398;color:#F7F7F7;cursor:pointer;box-shadow:none;transition:background .3s}
.pxai-card button.pxai-send:hover{background:#111;color:#fff}
.pxai-card button.pxai-send:disabled{opacity:.5;cursor:default;background:#D5B398}
.pxai-send svg{width:100%;height:100%;display:block}
[dir=rtl] .pxai-send svg{transform:scaleX(-1)}

/* "message us on WhatsApp" — a quiet row under everything (green only on the icon) */
.pxai-card button.pxai-wa,.pxai-card button.pxai-wa:focus,.pxai-coach button.pxai-wa,.pxai-coach button.pxai-wa:focus{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;height:auto;margin:10px 0 0;padding:6px 12px;border:0;border-top:1px solid #E6DFD6;border-radius:0;background:transparent;color:#191512;font:600 14px/1.3 "Heebo",sans-serif;text-align:center;text-transform:none;cursor:pointer;box-shadow:none}
.pxai-card button.pxai-wa:hover,.pxai-coach button.pxai-wa:hover{background:transparent;color:#111;text-decoration:underline}
.pxai-wa svg{width:22px;height:22px;flex:none;color:#25D366}
/* 1.7.3 (Tomer: "it's not clear that WhatsApp is a button"): the card's WhatsApp = a UI-UX outline button, 50px, 20px corners, green logo */
.pxai-card button.pxai-wa.pxai-wa-btn,.pxai-card button.pxai-wa.pxai-wa-btn:focus{min-height:50px;margin:12px 0 0;padding:7px 14px;border:1px solid #D5B398;border-radius:20px;background:#fff;color:#191512;font:700 15px/1.25 "Heebo",sans-serif;text-decoration:none;transition:background .3s,color .3s,border-color .3s}
.pxai-card button.pxai-wa.pxai-wa-btn:hover{background:#111;border-color:#111;color:#fff;text-decoration:none}
.pxai-card button.pxai-wa.pxai-wa-btn:hover svg{color:#fff}

/* 1.7.3: the chat inside the card — the customer's questions and PAI's answers, kept for the page view */
.pxai-card{max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto}
.pxai-chat{display:flex;flex-direction:column;gap:8px;max-height:min(46vh,380px);overflow-y:auto;margin:4px 0 0;padding:2px}
.pxai-chat[hidden]{display:none}
.pxai-chatting>.pxai-text,.pxai-chatting>.pxai-acts{display:none}
.pxai-msg{max-width:88%;padding:9px 13px;border-radius:20px;font-size:14.5px;line-height:1.5;text-align:start}
.pxai-msg p{margin:0;white-space:pre-line}
.pxai-msg.pxai-user{align-self:flex-end;background:#F0E3D8;color:#191512}
.pxai-msg.pxai-pai{align-self:flex-start;background:#fff;border:1px solid #E6DFD6}
.pxai-msg.pxai-wait p{color:#7A7166;animation:pxai-ring 1.4s ease-in-out infinite}
/* a card copied from the page (e.g. "מידות" with its drawing) inside an answer */
.pxai-embed{margin:8px 0 2px;max-height:300px;overflow:hidden;border-radius:16px;border:1px solid #E6DFD6;background:#fff;pointer-events:none}
.pxai-embed>*{margin:0!important;max-width:100%!important;width:100%!important;box-shadow:none!important}
/* the page's card in the narrow chat: drawing beside the text (checked on P-Tap's "מידות" card, 21.10) */
.pxai-embed .pxmn-card,.pxai-embed [data-pxai-fact]{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;margin:0!important;padding:12px!important;border:0!important;text-align:start!important;background:#fff!important}
.pxai-embed svg{flex:none;max-height:110px!important;max-width:42%!important;width:auto!important;height:auto!important}
.pxai-embed img{max-width:100%;height:auto}
.pxai-embed .pxmn-card>div{font-size:14px!important;line-height:1.5!important;color:#191512}
.pxai-embed b,.pxai-embed small{display:block}
.pxai-embed small{margin-top:2px;font-size:12px;color:#7A7166}

/* ── pill: the one floating help button (replaces the WhatsApp bubble where PAI runs) ── */
button.pxai-pill,button.pxai-pill:focus{position:fixed;z-index:999997;inset-inline-start:20px;bottom:24px;display:inline-flex;align-items:center;gap:8px;height:52px;min-height:0;margin:0;padding-block:0;padding-inline:10px 18px;border:1px solid #E6DFD6;border-radius:20px;background:#fff;color:#191512;font:700 15px/1 "Heebo",sans-serif;text-transform:none;box-shadow:0 6px 18px rgba(25,21,18,.14);cursor:pointer;animation:pxai-in .28s ease-out}
button.pxai-pill:hover{background:#fff;color:#191512;border-color:#D5B398}
button.pxai-pill.pxai-nudge{border-color:#D5B398;animation:pxai-bounce 1.6s ease-in-out infinite}

/* ── coach: a helper line inside another screen (the link picker) ── */
.pxai-coach{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px;padding:12px 14px;border:1px solid #E6DFD6;border-radius:20px;background:linear-gradient(135deg,#fff,#FBF6F1);color:#191512;font:400 14.5px/1.5 "Heebo",sans-serif;text-align:start}
.pxai-coach p{flex:1;min-width:0;margin:0}
.pxai-coach .pxai-badge{align-self:flex-start}
.pxai-coach button.pxai-wa,.pxai-coach button.pxai-wa:focus{flex-basis:100%;margin:2px 0 0;min-height:36px;padding:4px 8px 0;font-size:13px}
.pxai-coach.pxai-coach-in{animation:pxai-in .28s ease-out}

/* the section PAI points at (a layer, not box-shadow / outline: the site strips those). Point at a block, not an <input> (no ::after there). JS makes it position:relative only when it was static. */
.pxai-pointed{animation:pxai-glow 1.4s ease-in-out 3}
.pxai-pointed::after{content:"";position:absolute;inset:-6px;border:2px solid #D5B398;border-radius:22px;pointer-events:none;animation:pxai-ring 1.4s ease-in-out infinite}

/* 1.7.4 spotlight: the page goes dark around the part PAI is talking about (a ring with a huge shadow = the dark layer) */
.pxai-spot{position:fixed;z-index:999990;border-radius:20px;border:2px solid #D5B398;box-shadow:0 0 0 200vmax rgba(25,21,18,.62);pointer-events:none;transition:top .25s ease,left .25s ease,width .25s ease,height .25s ease;animation:pxai-spot-in .35s ease-out}
.pxai-spot::after{content:"";position:absolute;inset:-2px;border-radius:20px;border:2px solid #D5B398;animation:pxai-ring 1.4s ease-in-out infinite}
.pxai-spot-label{position:absolute;bottom:100%;inset-inline-start:12px;margin-bottom:8px;padding:6px 12px;border-radius:20px;background:#191512;color:#fff;font:700 13px/1.2 "Heebo",sans-serif;white-space:nowrap}
.pxai-card button.pxai-btn.pxai-cta{display:block;width:100%;margin:10px 0 2px;min-height:44px}
@media (max-width:767px){html.pxai-spotting .pxai-card{max-height:40vh;max-height:40dvh}html.pxai-spotting .pxai-chat{max-height:20vh}html.pxai-spotting .pxai-card .pxai-wa-btn{display:none}}
@keyframes pxai-spot-in{from{opacity:0}to{opacity:1}}
@keyframes pxai-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes pxai-ring{0%,100%{opacity:.25}50%{opacity:1}}
@keyframes pxai-glow{0%,100%{filter:none}50%{filter:drop-shadow(0 0 8px rgba(213,179,152,.9))}}
@keyframes pxai-bounce{0%,100%{transform:none}20%{transform:translateY(-8px)}40%{transform:none}55%{transform:translateY(-3px)}70%{transform:none}}

/* phones: card full width at the bottom (the WhatsApp bubble is folded into PAI, nothing else sits there) */
@media (max-width:767px){
	.pxai-card{inset-inline:12px;width:auto;bottom:calc(14px + env(safe-area-inset-bottom,0px));padding:14px 14px 12px}
	/* 1.7.4 (Tomer 21.10: "on mobile, put PAI into the button downstairs, like the WhatsApp one before"): a 48px round button in
	   the old WhatsApp button's place — 18px from the corner, on the accessibility button's line, in the gap the pages' bottom
	   bars leave for it. The words show as a bubble above it only while it calls for attention. */
	button.pxai-pill,button.pxai-pill:focus{inset-inline-start:18px;bottom:18px;width:48px;height:48px;padding:0;justify-content:center;border:0;border-radius:999px;background:#191512;box-shadow:0 12px 32px -8px rgba(25,21,18,.32),0 2px 6px rgba(25,21,18,.08)}
	button.pxai-pill:hover{background:#191512;border-color:transparent}
	button.pxai-pill .pxai-badge{height:48px;padding:0;background:transparent;font-size:13px}
	button.pxai-pill .pxai-badge svg{height:15px}
	button.pxai-pill>span:last-child{position:absolute;bottom:60px;inset-inline-start:0;padding:12px 16px;border-radius:20px;background:#D5B398;color:#F7F7F7;font:500 14px/1 "Heebo",sans-serif;white-space:nowrap;box-shadow:0 12px 32px -8px rgba(25,21,18,.22);opacity:0;transform:translateY(6px);pointer-events:none;transition:opacity .3s,transform .3s}
	button.pxai-pill.pxai-nudge>span:last-child{opacity:1;transform:none}
	button.pxai-pill.pxai-nudge{border:0}
}
@media (prefers-reduced-motion:reduce){
	.pxai-card,button.pxai-pill,button.pxai-pill.pxai-nudge,.pxai-pointed,.pxai-pointed::after,.pxai-coach.pxai-coach-in,.pxai-spot,.pxai-spot::after{animation:none}
	.pxai-spot{transition:none}
}

/* 1.7.5 — "לא צריך עזרה, תודה": a quiet last line in a card that opened by itself (mutes PAI's own popups for 12 h) */
.pxai-card button.pxai-mute,.pxai-card button.pxai-mute:focus{display:block;width:100%;min-height:36px;margin:6px 0 0;padding:4px 8px;border:0;border-radius:20px;background:transparent;color:#7A7166;font:500 13px/1.3 "Heebo",sans-serif;text-align:center;text-transform:none;cursor:pointer;box-shadow:none}
.pxai-card button.pxai-mute:hover{background:transparent;color:#191512;text-decoration:underline}
