/* The shop's one help button (batch 2 #17), where the three floating buttons used to be: it rides the same --vn-fab-bottom variable, so the product page's sticky buy bar lifts it too. */
.shop-chat { position: fixed; inset-inline-start: var(--vn-fab-inset, 16px); bottom: var(--fl-bottom, calc(22px + env(safe-area-inset-bottom, 0px))); z-index: var(--fl-z-fab, 30); transition: opacity .2s ease, transform .2s ease, bottom .35s cubic-bezier(.34,1.3,.64,1); display: grid; justify-items: start; gap: 10px; font-family: inherit; }
.shop-chat__bubble { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--color-accent, #1e1b3a); color: var(--color-on-accent, #fff); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.shop-chat__bubble:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--color-accent, #1e1b3a); }
.shop-chat__panel { width: min(360px, calc(100vw - 32px)); max-height: min(520px, calc(100dvh - var(--vn-fab-bottom, 22px) - 96px)); display: flex; flex-direction: column; background: #fff; color: #1d1d1f; border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22); overflow: hidden; }
.shop-chat__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #ececec; }
.shop-chat__head button { width: 44px; height: 44px; border: 0; background: none; font-size: 24px; cursor: pointer; color: inherit; }
.shop-chat__lines { overflow-y: auto; overscroll-behavior: contain; padding: 12px; display: grid; gap: 8px; align-content: start; flex: 1 1 auto; min-height: 0; }
.shop-chat__line { margin: 0; padding: 9px 12px; border-radius: 12px; max-width: 85%; line-height: 1.5; font-size: 16px; white-space: pre-line; }
.shop-chat__line.is-shop { background: #f2f3f5; justify-self: start; }
.shop-chat__line.is-me { background: var(--color-accent, #1e1b3a); color: var(--color-on-accent, #fff); justify-self: end; }
.shop-chat__line.is-typing { color: #6b6b6b; }
.shop-chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #ececec; }
.shop-chat__form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #d8d8d8; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: #1d1d1f; }
.shop-chat__form button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--color-accent, #1e1b3a); color: var(--color-on-accent, #fff); font: inherit; font-weight: 700; cursor: pointer; }
.shop-chat__form button:disabled { opacity: 0.5; cursor: default; }
@media (prefers-reduced-motion: no-preference) { .shop-chat__panel { animation: shop-chat-in 0.18s ease-out; } }
@keyframes shop-chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.shop-chat .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop-chat__panel[hidden] { display: none; }
/* Pulse runs the chat (docs/פולס-מול-לקוחות.md): a face and name in the head, product cards, a person's answers. */
.shop-chat__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shop-chat__face { width: 32px; height: 32px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 12%, transparent 13%), linear-gradient(135deg, var(--color-accent, #1e1b3a), #7c5cff); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18); }
.shop-chat__names { display: grid; line-height: 1.2; min-width: 0; }
.shop-chat__names b { display: flex; align-items: center; min-width: 0; }
.shop-chat__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.shop-chat__names small { color: #6b6b6b; font-size: 12px; }
.shop-chat__line.is-staff { background: #eef6ee; border: 1px solid #cfe5cf; }
.shop-chat__by { display: block; font-size: 12px; font-weight: 700; color: #2f6b2f; margin-bottom: 2px; }
.shop-chat__cards { display: grid; gap: 8px; justify-self: stretch; }
.shop-chat__card { display: grid; gap: 8px; padding: 8px; border: 1px solid #ececec; border-radius: 12px; background: #fff; }
.shop-chat__card-link { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.shop-chat__card-link img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: #f2f3f5; }
.shop-chat__card-text { display: grid; gap: 2px; min-width: 0; font-size: 15px; line-height: 1.35; }
.shop-chat__card-text b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shop-chat__card-price s { color: #8a8a8a; font-size: 13px; }
.shop-chat__card-buy { display: flex; gap: 8px; align-items: center; }
.shop-chat__card-buy select { flex: 1; min-width: 0; min-height: 40px; border: 1px solid #d8d8d8; border-radius: 10px; padding: 0 8px; font: inherit; font-size: 15px; background: #fff; color: #1d1d1f; }
.shop-chat__card-buy button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--color-accent, #1e1b3a); color: var(--color-on-accent, #fff); font: inherit; font-weight: 700; cursor: pointer; margin-inline-start: auto; }
.shop-chat__card-buy button:disabled { opacity: 0.7; cursor: default; }
.shop-chat__card-out { color: #8a8a8a; font-size: 14px; }
.shop-chat__bubble.has-news { position: relative; }
.shop-chat__bubble.has-news::after { content: ''; position: absolute; top: 4px; inset-inline-end: 4px; width: 12px; height: 12px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px #fff; }
/* After a hand-over (approved 24.10.2026): when the team answers, where it writes back, and the footer that says it is AI. */
.shop-chat__line.is-note { background: none; color: #55526e; font-size: 14px; padding: 2px 4px; max-width: 100%; }
.shop-chat__line.is-note button { min-height: 32px; padding: 0 4px; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.shop-chat__line.is-done { background: #ecfdf5; color: #065f46; }
.shop-chat__mail { display: grid; gap: 6px; padding: 10px; border: 1px solid #c7d2fe; background: #eef2ff; border-radius: 12px; justify-self: stretch; }
.shop-chat__mail label { font-weight: 700; font-size: 14px; }
.shop-chat__mail input { min-height: 44px; padding: 0 12px; border: 1px solid #c7d2fe; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: #1d1d1f; }
.shop-chat__mail button { min-height: 44px; border: 0; border-radius: 10px; background: var(--color-accent, #1e1b3a); color: var(--color-on-accent, #fff); font: inherit; font-weight: 700; cursor: pointer; }
.shop-chat__mail button:disabled { opacity: 0.6; cursor: default; }
.shop-chat__mail-err { color: #b42318; font-size: 13px; }
.shop-chat__mail-err:empty { display: none; }
.shop-chat__foot { margin: 0; padding: 0 12px 10px; font-size: 12px; line-height: 1.5; color: #6b6b6b; text-align: center; }
.shop-chat__disc { margin: 0; padding: 8px 14px; font-size: 13px; line-height: 1.5; color: #1d1d1f; border-bottom: 1px solid #ececec; flex: none; }
.shop-chat__disc b { font-weight: 700; }
.shop-chat__disc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.shop-chat__foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* One floating button (batch 2 #17): once the help button runs, the old WhatsApp and accessibility buttons are hidden.
   The accessibility panel stays in the page: the Accessibility shortcut opens it. */
body.shop-help-on .vn-fab { display: none; }
.shop-chat__ai { display: inline-block; flex: none; margin-inline-start: 6px; padding: 0 6px; border-radius: 6px; background: #ede9fe; color: #4c1d95; font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: middle; }
.shop-chat__help-title { font-size: 17px; }
.shop-chat__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 10px; }
.shop-chat__quick a, .shop-chat__quick button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #d0d0d6; border-radius: 999px; background: #fff; color: #1d1d1f; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.shop-chat__ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shop-chat__ways a, .shop-chat__ways button { display: grid; align-content: center; gap: 2px; width: 100%; box-sizing: border-box; min-height: 52px; padding: 10px 14px; border: 1px solid #e3e3e8; border-radius: 12px; background: #fff; color: #1d1d1f; font: inherit; font-size: 16px; font-weight: 600; text-align: start; text-decoration: none; cursor: pointer; }
.shop-chat__ways small { color: #5f6368; font-weight: 400; font-size: 13px; }
.shop-chat__bubble.is-compact { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 20px; opacity: 0.92; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
/* compact or not, it rides the floating layer manager (critical.css): above the sticky buy bar when it is up */
.shop-chat.is-compact { bottom: var(--fl-bottom, calc(16px + env(safe-area-inset-bottom, 0px))); }
@media (max-width: 34rem) { .shop-chat__bubble:not(.is-compact) { min-height: 44px; padding: 0 16px; } }
body.vn-keyboard-open .shop-chat__bubble { opacity: 0; pointer-events: none; }
/* #203: over a link or button at rest the launcher is a tab at the edge, never invisible. */
body.fl-yield .shop-chat:not(.is-open):not(:focus-within) { opacity: 1; pointer-events: auto; transform: none; inset-inline-start: 0; }
body.fl-yield .shop-chat:not(.is-open) .shop-chat__bubble { width: 28px; min-height: 48px; padding: 0; font-size: 0; border-radius: 0; border-start-end-radius: 14px; border-end-end-radius: 14px; }
body.fl-yield .shop-chat:not(.is-open) .shop-chat__bubble::before { content: '?'; font-size: 18px; }

/* Room under the last line of the page for the help button, whether or not the old buttons' landmark is on the page.
   Measured from --fl-rest, never --vn-fab-bottom: that one grows with the buy bar, and room in the page that follows the
   bar made the page shrink at its foot (where the bar steps aside) and the scroll recoil (critical.css). */
body.shop-help-on .site-footer { padding-block-end: calc(2.25rem + var(--fl-rest, var(--vn-fab-bottom, 22px)) + 58px + 1rem); }
body.shop-help-on .co { padding-block-end: calc(var(--fl-rest, var(--vn-fab-bottom, 22px)) + 58px + 1rem); }
/* Action cards from the shop's code (11.11.2026): a return, a cancellation, a new address, an alert, a code, an order. */
.shop-chat__act { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid #d0d0d6; border-radius: 12px; background: #fff; max-width: 92%; justify-self: start; font-size: 15px; line-height: 1.45; }
.shop-chat__act p { margin: 0; }
.shop-chat__act.is-gone { opacity: 0.6; }
.shop-chat__act.is-working { border-color: var(--color-accent, #1e1b3a); }
.shop-chat__act-form { display: grid; gap: 6px; }
.shop-chat__act-form label { font-size: 14px; color: #3c3c43; }
.shop-chat__act-form input:not([type=checkbox]), .shop-chat__act-form select { min-height: 44px; padding: 0 10px; border: 1px solid #d8d8d8; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: #1d1d1f; }
.shop-chat__act-item { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.shop-chat__act-item input[type=checkbox] { width: 20px; height: 20px; }
.shop-chat__act-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-chat__act-go, .shop-chat__act-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--color-accent, #1e1b3a); color: var(--color-on-accent, #fff); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; justify-self: start; }
.shop-chat__act-no { min-height: 44px; padding: 0 12px; border: 1px solid #d0d0d6; border-radius: 10px; background: #fff; color: #1d1d1f; font: inherit; cursor: pointer; }
.shop-chat__act button:disabled { opacity: 0.55; cursor: default; }
.shop-chat__act-out:empty { display: none; }
.shop-chat__act-out { margin: 0; font-size: 14px; color: #3c3c43; }
.shop-chat__act-out.is-done { color: #065f46; font-weight: 600; }
.shop-chat__nudge { display: flex; align-items: center; gap: 4px; max-width: min(300px, calc(100vw - 32px)); padding: 4px 4px 4px 12px; border-radius: 14px; background: #fff; color: #1d1d1f; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); }
.shop-chat__nudge button { min-height: 44px; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; text-align: start; cursor: pointer; }
.shop-chat__nudge-x { width: 44px; font-size: 20px !important; }
@media (prefers-reduced-motion: no-preference) { .shop-chat__nudge, .shop-chat__act { animation: shop-chat-in 0.18s ease-out; } }

/* #200 (WAISE_SHOPPER_SALES): the notice's controls inside the AI line: small text buttons, a 44px tap height on touch. */
.shop-chat__notice-acts { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-inline-start: 6px; }
.shop-chat__notice-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.shop-chat__notice-btn:disabled { opacity: .5; cursor: default; }
@media (pointer: coarse) { .shop-chat__notice-btn { min-height: 44px; } }
