/* Isolated from the catalogue layout; the modal belongs to the browser top layer. */
.osn-consultation { --osn-chat-orange: var(--osn-orange, #ff5908); --osn-chat-orange-hover: var(--osn-orange-hover, #e84b00); position: fixed; z-index: 1030; right: max(24px, env(safe-area-inset-right)); bottom: var(--osn-consultation-offset, calc(24px + env(safe-area-inset-bottom))); font-family: inherit; font-size: 14px; line-height: 1.5; color: #182635; }
.osn-consultation [hidden] { display: none !important; }
.osn-consultation button, .osn-consultation textarea { font: inherit; }
.osn-consultation button { cursor: pointer; }
.osn-consultation button:disabled { cursor: default; }
.osn-consultation-launcher { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 20px; border: 1px solid var(--osn-chat-orange); border-radius: 28px; background: var(--osn-chat-orange); color: #fff; box-shadow: 0 8px 24px #ff590825; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.osn-consultation-launcher:hover, .osn-consultation-launcher:focus-visible { background: var(--osn-chat-orange-hover); color: #fff; text-decoration: none; }
.osn-consultation-launcher svg { width: 23px; height: 23px; flex: none; }
.osn-consultation :is(a, button, input, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #182635; outline-offset: 3px; }
.osn-consultation-badge { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 4px; background: #fff; color: var(--osn-chat-orange); border-radius: 12px; font-size: 11px; }
.osn-consultation .osn-consultation-panel { box-sizing: border-box; position: fixed; inset: auto max(24px, env(safe-area-inset-right)) 24px auto; margin: 0; padding: 0; width: min(440px, calc(100vw - 32px)); height: min(730px, calc(var(--osn-chat-viewport-height, 100dvh) - 48px)); max-width: none; max-height: none; overflow: hidden; border: 1px solid #e2e7ed; border-radius: 22px; background: #fff; box-shadow: 0 18px 60px #17263626; color: #182635; font: inherit; }
.osn-consultation .osn-consultation-panel[open] { display: flex; flex-direction: column; }
.osn-consultation .osn-consultation-panel::backdrop { background: #18263540; }
.osn-consultation-heading { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 12px; padding: 20px 22px 14px; }
.osn-consultation-brand { font-size: 10px; line-height: 1.3; font-weight: 700; letter-spacing: .09em; color: var(--osn-chat-orange); }
.osn-consultation .osn-consultation-panel h2 { margin: 5px 0 0; font-family: inherit; font-size: 22px; font-weight: 650; line-height: 1.25; letter-spacing: -.4px; color: #182635; }
.osn-consultation-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 50%; background: #f4f6f8; color: #516273; }
.osn-consultation-close:hover { background: #e8edf2; }
.osn-consultation-close svg { width: 20px; height: 20px; }
.osn-consultation-modes { display: grid; grid-template-columns: 1fr 1.55fr; gap: 5px; flex: none; margin: 0 22px; padding: 4px; border: 1px solid #e6eaf0; border-radius: 13px; background: #f5f7fa; }
.osn-consultation-mode { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; min-height: 42px; padding: 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #526477; font-size: 13px !important; }
.osn-consultation-mode[aria-pressed="true"] { border-color: var(--osn-chat-orange); background: #fff; color: var(--osn-chat-orange); box-shadow: 0 2px 6px #18263508; font-weight: 600; }
.osn-consultation-mode span { padding: 2px 4px; border-radius: 4px; background: #ffeddf; color: var(--osn-chat-orange); font-size: 9px; font-weight: 500; }
.osn-consultation-mode:disabled { opacity: .6; }
.osn-consultation-intro { flex: none; padding: 12px 22px; color: #526477; font-size: 12px; line-height: 1.5; }
.osn-consultation-consent { flex: none; margin: 0 16px 10px; padding: 14px; max-height: 42%; overflow-y: auto; border: 1px solid #f3d8c7; border-radius: 12px; background: #fff7f1; }
.osn-consultation-consent strong { font-size: 14px; }
.osn-consultation-consent p { margin: 8px 0; font-size: 12px; line-height: 1.5; color: #526477; }
.osn-consultation .osn-consultation-consent-check { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; color: #182635; font-size: 12px; line-height: 1.5; cursor: pointer; }
.osn-consultation-consent-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--osn-chat-orange); }
.osn-consultation-consent-details { margin: 10px 0 12px; font-size: 12px; }
.osn-consultation-consent-details summary { min-height: 28px; color: var(--osn-chat-orange); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.osn-consultation-consent-document { max-height: 180px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; overflow-wrap: anywhere; }
.osn-consultation-consent-document h3 { margin: 6px 0; font: inherit; font-weight: 600; }
.osn-consultation-consent-details a { color: var(--osn-chat-orange); text-decoration: underline; text-underline-offset: 3px; }
.osn-consultation-consent-actions { display: flex; align-items: center; gap: 12px; }
.osn-consultation-consent-actions .osn-consultation-action { min-height: 40px; padding: 9px 12px; font-size: 12px; }
.osn-consultation-messages { display: flex; flex: 1 1 auto; flex-direction: column; gap: 15px; min-height: 70px; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 12px; background: #f5f7fa; border-block: 1px solid #e6eaf0; scroll-behavior: auto; }
.osn-consultation-empty { margin: auto; padding: 30px 10px; text-align: center; color: #68798a; font-size: 13px; }
.osn-consultation-message { flex: none; max-width: 90%; align-self: flex-start; }
.osn-consultation-message[data-author="customer"] { align-self: flex-end; }
.osn-consultation-message-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 0 2px 4px; color: #637486; font-size: 10px; }
.osn-consultation-message-meta strong { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; color: #43576b; font-size: 11px; font-weight: 600; }
.osn-consultation-author-icon { flex: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 14px; line-height: 1; }
.osn-consultation-author-label { min-width: 0; overflow-wrap: anywhere; }
.osn-consultation-message-text { margin: 0; padding: 11px 13px; border: 1px solid #e0e6ed; border-radius: 12px 12px 12px 3px; background: #fff; color: #182635; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }
.osn-consultation-message[data-author="customer"] .osn-consultation-message-text { background: #fff0e5; border-color: #f2d8c6; border-radius: 12px 12px 3px 12px; }
.osn-consultation-message[data-author="ai"] .osn-consultation-message-meta strong { color: var(--osn-chat-orange); }
.osn-consultation-message[data-author="system"] { align-self: center; max-width: 100%; }
.osn-consultation-message[data-author="system"] .osn-consultation-message-text { padding: 3px 8px; border: 0; background: transparent; text-align: center; color: #637486; font-size: 11px; }
.osn-consultation-status { flex: none; min-height: 0; padding: 0 22px; color: #637486; font-size: 11px; line-height: 1.5; }
.osn-consultation-status:not(:empty) { padding-top: 9px; }
.osn-consultation-error { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px 0; color: #a33c18; font-size: 12px; line-height: 1.5; }
.osn-consultation-text-button { flex: none; border: 0; padding: 7px 0; background: transparent; color: var(--osn-chat-orange); text-decoration: underline; text-underline-offset: 3px; font-size: 12px !important; }
.osn-consultation-form { flex: none; margin: 0; padding: 12px 20px 10px; }
.osn-consultation-form textarea { box-sizing: border-box; display: block; width: 100%; min-height: 62px; max-height: 100px; resize: vertical; margin: 0; padding: 10px 12px; border: 1px solid #d7dfe8; border-radius: 11px; background: #fff; color: #182635; font-size: 14px; line-height: 1.5; }
.osn-consultation-form textarea::placeholder { color: #718295; opacity: 1; }
.osn-consultation-form textarea:disabled { background: #f5f7fa; }
.osn-consultation-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.osn-consultation-compose-actions > span { color: #718295; font-size: 10px; }
.osn-consultation-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 9px 14px; border: 1px solid var(--osn-chat-orange); border-radius: 10px; background: var(--osn-chat-orange); color: #fff; font-weight: 600; text-decoration: none; }
.osn-consultation-action:not(:disabled):hover { background: var(--osn-chat-orange-hover); color: #fff; }
.osn-consultation .osn-consultation-action:disabled { opacity: 1; color: rgb(255 255 255 / 72%); cursor: not-allowed; }
.osn-consultation a.osn-consultation-launcher { color: #fff; }
.osn-consultation-action svg { width: 17px; height: 17px; flex: none; }
.osn-consultation-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; flex: none; gap: 5px 12px; padding: 0 22px 16px; color: #718295; font-size: 10px; }
.osn-consultation-footer a { color: var(--osn-orange, #ff5908); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.osn-consultation-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Reserve the fixed navigation and cookie banner even before enhancement. */
body:has(#cookie) .osn-consultation { bottom: var(--osn-consultation-offset, calc(170px + env(safe-area-inset-bottom))); }
@media (max-width: 700px) {
  .osn-consultation { right: max(14px, env(safe-area-inset-right)); bottom: var(--osn-consultation-offset, calc(76px + env(safe-area-inset-bottom))); }
  .osn-consultation-launcher { min-height: 46px; padding: 10px 15px; gap: 8px; font-size: 12px; }
  .osn-consultation-launcher svg { width: 21px; height: 21px; }
  .osn-consultation .osn-consultation-panel { inset: var(--osn-chat-viewport-top, 0px) 0 auto; width: 100%; height: var(--osn-chat-viewport-height, 100dvh); border: 0; border-radius: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .osn-consultation-heading { padding: 15px 18px 12px; }
  .osn-consultation .osn-consultation-panel h2 { font-size: 21px; }
  .osn-consultation-modes { margin-inline: 18px; }
  .osn-consultation-intro { padding-inline: 18px; }
  .osn-consultation-form { padding-inline: 16px; }
  .osn-consultation-form textarea { font-size: 16px; }
  .osn-consultation-messages { padding-inline: 16px; }
  .osn-consultation-footer { padding-inline: 18px; padding-bottom: 12px; }
}
@media (max-height: 500px) {
  .osn-consultation-heading { padding-block: 8px; }
  .osn-consultation-brand, .osn-consultation-intro, .osn-consultation-footer > span { display: none; }
  .osn-consultation-modes { margin-bottom: 8px; }
  .osn-consultation-form textarea { min-height: 42px; height: 42px; }
  .osn-consultation-form { padding-block: 8px; }
  .osn-consultation-footer { padding-bottom: 8px; }
}

/* The on-screen keyboard may leave layout media queries unchanged. */
.osn-consultation[data-chat-compact="true"] .osn-consultation-panel { overflow-y: auto; overscroll-behavior: contain; }
.osn-consultation[data-chat-compact="true"] .osn-consultation-heading { padding-block: 8px; }
.osn-consultation[data-chat-compact="true"] .osn-consultation-brand,
.osn-consultation[data-chat-compact="true"] .osn-consultation-intro,
.osn-consultation[data-chat-compact="true"] .osn-consultation-footer > span { display: none; }
.osn-consultation[data-chat-compact="true"] .osn-consultation-modes { margin-bottom: 8px; }
.osn-consultation[data-chat-compact="true"] .osn-consultation-messages { min-height: 40px; }
.osn-consultation[data-chat-compact="true"] .osn-consultation-form textarea { min-height: 42px; height: 42px; max-height: 64px; resize: none; }
.osn-consultation[data-chat-compact="true"] .osn-consultation-form { padding-block: 8px; }
.osn-consultation[data-chat-compact="true"] .osn-consultation-footer { padding-bottom: 8px; }
/* Real catalogue cards live inside the message; they never submit the order form. */
.osn-consultation-message[data-has-products="true"] { width: 100%; max-width: 100%; min-width: 0; }
.osn-consultation .osn-chat-selection { margin-top: 10px; padding: 14px; border: 1px solid #e0e6ed; border-radius: 12px; background: #fff; overflow-wrap: anywhere; }
.osn-consultation .osn-chat-selection h3 { margin: 0 0 12px; color: #182635; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; }
.osn-chat-products { display: grid; gap: 14px; }
.osn-chat-product + .osn-chat-product { padding-top: 14px; border-top: 1px solid #e6eaf0; }
.osn-consultation .osn-chat-product-choice { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 0 0 7px; color: #536577; font-size: 12px; cursor: pointer; }
.osn-consultation .osn-chat-product-choice input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--osn-chat-orange); }
.osn-chat-product-heading { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.osn-chat-product-image { flex: none; width: 56px; height: 56px; object-fit: contain; border-radius: 7px; background: #fff; }
.osn-consultation a.osn-chat-product-title { color: #24384c; font-size: 13px; font-weight: 600; line-height: 1.45; text-decoration: underline; text-decoration-color: #d4dde6; text-underline-offset: 3px; }
.osn-chat-product-price { margin-top: 9px; color: #182635; font-size: 14px; font-weight: 600; }
.osn-chat-product-stock { display: grid; gap: 3px; margin-top: 5px; color: #536577; font-size: 11px; }
.osn-consultation .osn-chat-product-quantity { display: grid; gap: 5px; margin: 10px 0 0; color: #536577; font-size: 11px; }
.osn-consultation .osn-chat-product-quantity input { box-sizing: border-box; width: 100%; height: 42px; min-width: 0; padding: 9px 11px; border: 1px solid #ccd7e2; border-radius: 8px; background: #fff; color: #182635; font-family: inherit; font-size: 16px; line-height: 1.4; }
.osn-consultation .osn-chat-product-quantity input:disabled { background: #f5f7fa; color: #637486; }
.osn-consultation .osn-chat-selection input:focus-visible { outline: 3px solid #182635; outline-offset: 2px; }
.osn-chat-product-existing { margin-top: 5px; color: var(--osn-chat-orange); font-size: 11px; }
.osn-chat-product-existing:empty, .osn-chat-selection-total:empty { display: none; }
.osn-consultation .osn-chat-selection-total { margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.osn-consultation .osn-chat-selection-status { margin: 12px 0 10px; color: #536577; font-size: 11px; line-height: 1.5; }
.osn-chat-selection-actions { display: grid; justify-items: stretch; gap: 4px; }
.osn-chat-selection-actions .osn-consultation-action { width: 100%; min-height: 44px; white-space: normal; color: #fff; font-size: 12px; }
.osn-chat-selection-actions .osn-consultation-text-button { min-height: 36px; }
.osn-consultation a.osn-chat-cart-link { display: block; padding: 7px; color: var(--osn-chat-orange); font-size: 13px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.osn-consultation .osn-chat-selection-note { margin: 10px 0 0; color: #637486; font-size: 10px; line-height: 1.5; }

.osn-chat-product-hint { color: #637486; font-size: 10px; line-height: 1.5; }
.osn-consultation .osn-chat-product-quantity input[aria-invalid="true"] { border-color: #b34920; }

/* Compact chat: conversation first, product selection is a separate in-panel view. */
.osn-consultation[data-chat-layout="compact"] .osn-consultation-panel { width: min(460px, calc(100vw - 32px)); height: min(720px, calc(var(--osn-chat-viewport-height, 100dvh) - 32px)); bottom: 16px; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-panel::backdrop { background: #18263520; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-heading { padding: 10px 14px 6px; gap: 8px; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-brand { display: block; margin-bottom: 4px; color: #182635; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.25px; }
.osn-consultation-window-actions { display: flex; gap: 2px; flex: none; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-close { width: 36px; height: 40px; padding: 8px; background: transparent; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-modes { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 14px 0; padding: 0; border: 0; background: transparent; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-mode { min-height: 36px; padding: 6px 10px; border: 1px solid #dce3ec; background: #fff; font-size: 12px !important; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-mode[aria-pressed="true"] { order: -1; padding-left: 0; border-color: transparent; color: #526477; box-shadow: none; font-weight: 400; opacity: 1; }
.osn-consultation-mode[aria-pressed="true"]::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #31b84e; }
.osn-consultation[data-chat-layout="compact"] [data-chat-ai] { min-height: 44px; padding: 8px 14px; border-color: #c74700; background: #c74700; color: #fff; font-size: 13px !important; font-weight: 700; box-shadow: 0 2px 6px #c7470020; }
.osn-consultation[data-chat-layout="compact"] [data-chat-ai]:not(:disabled):hover { border-color: #aa3c00; background: #aa3c00; }
.osn-consultation[data-chat-layout="compact"] [data-chat-ai][aria-pressed="true"] { padding: 8px 14px; border-color: #c74700; background: #fff0e5; color: #993500; font-weight: 700; box-shadow: none; opacity: 1; }
.osn-consultation[data-chat-layout="compact"] [data-chat-ai][aria-pressed="true"]::before { background: #c74700; }
.osn-consultation[data-chat-layout="compact"] [data-chat-ai]:disabled[aria-pressed="false"] { border-color: #dce3ec; background: #f3f5f8; color: #65758a; box-shadow: none; opacity: 1; }
.osn-consultation[data-chat-layout="compact"] [data-chat-ai]:focus-visible { outline: 3px solid #182635; outline-offset: 2px; }
.osn-consultation-info { flex: none; margin: 6px 14px; color: #637486; font-size: 11px; line-height: 1.5; }
.osn-consultation-info > summary { display: flex; align-items: center; gap: 6px; min-height: 26px; cursor: pointer; list-style: none; }
.osn-consultation-info > summary::-webkit-details-marker { display: none; }
.osn-consultation-info > summary::after { content: '⌄'; margin-left: auto; }
.osn-consultation-info[open] > summary::after { content: '⌃'; }
.osn-consultation-info > summary svg { flex: none; width: 15px; height: 15px; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-info .osn-consultation-intro { display: block; padding: 6px 0; max-height: 100px; overflow-y: auto; font-size: 12px; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-messages { gap: 10px; padding: 12px 14px 10px; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-message-text { padding: 8px 10px; line-height: 1.5; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-empty { padding: 18px 10px; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-status { padding-inline: 14px; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-error { padding-inline: 14px; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-form { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 2px 8px; align-items: end; padding: 10px 14px 3px; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-form textarea { grid-column: 1; grid-row: 1; min-height: 44px; height: 44px; max-height: 96px; padding: 10px; resize: vertical; font-size: 14px; line-height: 1.5; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-compose-actions { display: contents; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-compose-actions > span { grid-column: 1; grid-row: 2; font-size: 9px; text-align: right; }
.osn-consultation[data-chat-layout="compact"] [data-chat-send] { grid-column: 2; grid-row: 1; width: 44px; height: 44px; min-height: 44px; padding: 0; }
.osn-consultation[data-chat-layout="compact"] [data-chat-send] svg { width: 20px; height: 20px; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-footer { order: 20; gap: 4px 10px; padding: 2px 14px 8px; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-footer > span { display: none; }
.osn-consultation[data-chat-layout="compact"] .osn-consultation-footer a { display: inline-flex; align-items: center; min-height: 26px; font-size: 11px; }
.osn-chat-view { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; }
.osn-chat-tabs { display: grid; grid-template-columns: 1fr 1fr; flex: none; margin: 8px 14px 0; padding: 0 5px; border: 1px solid #e4eaf1; border-radius: 10px; }
.osn-consultation .osn-chat-tabs > button { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px; border: 0; background: transparent; color: #738195; font-weight: 600; font-size: 14px; }
.osn-chat-tabs > button[aria-selected="true"]::after { content: ''; position: absolute; right: 4px; bottom: 0; left: 4px; height: 2px; background: var(--osn-chat-orange); border-radius: 2px; }
.osn-consultation .osn-chat-tabs > button[aria-selected="true"] { color: var(--osn-chat-orange); }
.osn-chat-tabs [data-chat-tab-unread] { min-width: 18px; padding: 1px 4px; border-radius: 12px; background: var(--osn-chat-orange); color: #fff; font-size: 10px; }
.osn-chat-products-empty { margin: auto; padding: 28px; text-align: center; color: #637486; }
.osn-chat-products-empty strong { color: #182635; font-size: 15px; }
.osn-chat-products-empty p { margin: 12px 0 20px; font-size: 13px; }
.osn-chat-selection-picker { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; flex: none; gap: 8px; margin: 10px 14px 0; font-size: 11px; color: #637486; }
.osn-consultation .osn-chat-selection-picker select { width: 100%; min-width: 0; min-height: 36px; padding: 6px; border: 1px solid #dce3ec; border-radius: 7px; background: #fff; color: #34445c; font: inherit; font-size: 12px; }
.osn-consultation .osn-chat-selection-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: 8px; padding: 9px; }
.osn-consultation .osn-chat-selection-summary .osn-chat-selection-caption { margin: 0; font-size: 12px; line-height: 1.4; }
.osn-chat-selection-thumbnails { display: flex; max-width: 76px; overflow: hidden; }
.osn-chat-selection-thumbnails img { flex: none; width: 34px; height: 40px; object-fit: contain; background: #fff; }
.osn-consultation .osn-chat-selection-open { min-height: 44px; padding: 5px; border: 0; background: transparent; color: var(--osn-chat-orange); font-size: 12px; font-weight: 600; }
.osn-chat-selection-open::after { content: ' ›'; }
.osn-chat-selection-sheet { order: 10; display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; border-top: 1px solid #e6eaf0; background: #fff; }
.osn-chat-selection-heading { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #e6eaf0; }
.osn-consultation .osn-chat-selection-heading h3 { margin: 0; font-family: inherit; font-size: 15px; font-weight: 600; }
.osn-chat-selection-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px; }
.osn-chat-selection-body .osn-chat-products { gap: 10px; }
.osn-chat-selection-body .osn-chat-product { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: start; gap: 5px 10px; padding: 10px; border: 1px solid #e0e6ed; border-radius: 10px; }
.osn-consultation .osn-chat-selection-body .osn-chat-product-choice { position: absolute; top: 10px; left: 7px; display: flex; width: 24px; min-height: 40px; margin: 0; }
.osn-chat-selection-body .osn-chat-product-choice span { display: none; }
.osn-chat-selection-body .osn-chat-product-heading { grid-column: 1 / -1; align-items: center; gap: 8px; padding-left: 22px; }
.osn-chat-selection-body .osn-chat-product-image { width: 48px; height: 48px; }
.osn-consultation .osn-chat-selection-body .osn-chat-product-title { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.osn-chat-selection-body .osn-chat-product > .osn-chat-product-title { grid-column: 1 / -1; }
.osn-chat-selection-body .osn-chat-product-price { grid-column: 1; grid-row: 2; margin: 3px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.osn-chat-selection-body .osn-chat-product-stock { grid-column: 1; grid-row: 3; margin: 0; font-size: 10px; overflow-wrap: anywhere; }
.osn-consultation .osn-chat-selection-body .osn-chat-product-quantity { grid-column: 2; grid-row: 2 / span 3; gap: 3px; margin: 0; min-width: 0; font-size: 10px; }
.osn-chat-product-quantity-label { margin: 0; }
.osn-chat-product-stepper { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; min-width: 0; border: 1px solid #ccd7e2; border-radius: 8px; overflow: hidden; }
.osn-consultation .osn-chat-product-stepper button { min-width: 0; height: 44px; padding: 0; border: 0; background: #f5f7fa; color: #24384c; font-size: 18px; }
.osn-consultation .osn-chat-product-stepper input { height: 44px; padding: 5px 2px; border: 0; border-inline: 1px solid #e0e6ed; border-radius: 0; text-align: center; font-size: 16px; }
.osn-consultation .osn-chat-product-stepper button:disabled { opacity: .5; cursor: default; }
.osn-chat-selection-body .osn-chat-product-hint { font-size: 10px; line-height: 1.4; }
.osn-chat-selection-body .osn-chat-product-existing { grid-column: 1; grid-row: 4; margin: 0; font-size: 10px; }
.osn-consultation .osn-chat-selection-body .osn-chat-selection-total { margin-top: 12px; font-size: 14px; }
.osn-consultation .osn-chat-selection-body .osn-chat-selection-status { margin: 10px 0; }
.osn-chat-selection-body .osn-chat-selection-actions { gap: 4px; }
.osn-consultation .osn-chat-selection-body .osn-chat-selection-note { margin-bottom: 0; }
@media (max-width: 700px) {
  .osn-consultation[data-chat-layout="compact"] .osn-consultation-panel { inset: var(--osn-chat-viewport-top, 0px) 0 auto; width: 100%; height: var(--osn-chat-viewport-height, 100dvh); }
  .osn-consultation[data-chat-layout="compact"] .osn-consultation-form textarea { font-size: 16px; }
}
@media (max-height: 500px) {
  .osn-consultation[data-chat-layout="compact"] .osn-consultation-heading { padding-block: 4px; }
  .osn-consultation[data-chat-layout="compact"] .osn-consultation-info { margin-block: 2px; }
  .osn-consultation[data-chat-layout="compact"] .osn-consultation-form { padding-top: 5px; }
}

.osn-chat-selection-sheet > .osn-chat-selection-actions { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 8px 14px 4px; border-top: 1px solid #e6eaf0; background: #fff; }
.osn-chat-selection-sheet > .osn-chat-selection-actions > .osn-consultation-action { grid-column: 1 / -1; }
.osn-chat-selection-count { grid-column: 1 / -1; margin: 0 0 3px; color: #182635; font-size: 12px; font-weight: 600; }
.osn-consultation .osn-chat-continue { min-height: 40px; padding: 7px; border: 1px solid var(--osn-chat-orange); border-radius: 8px; background: #fff; color: var(--osn-chat-orange); font-size: 12px; }
.osn-chat-selection-sheet > .osn-chat-selection-actions > .osn-consultation-text-button { grid-column: 1 / -1; }
.osn-consultation .osn-chat-selection-sheet > .osn-chat-selection-actions > :is(.osn-consultation-text-button, .osn-chat-cart-link) { min-height: 30px; margin: 0; padding: 4px; font-size: 11px; text-align: center; }

/* A raised mobile keyboard uses one outer scroll instead of overlapping fixed rows. */
.osn-consultation[data-chat-compact="true"][data-selection-open="true"] .osn-chat-selection-sheet { flex: none; min-height: 0; }
.osn-consultation[data-chat-compact="true"][data-selection-open="true"] .osn-chat-selection-body { flex: none; overflow: visible; }
.osn-consultation[data-chat-compact="true"][data-selection-open="true"] .osn-chat-selection-actions { position: sticky; bottom: 0; z-index: 1; }

/* Each proposal row can be added independently of the bulk selection. */
.osn-consultation .osn-chat-selection-body .osn-chat-product-add { grid-column: 2; grid-row: 5; width: 100%; min-height: 40px; margin-top: 3px; padding: 7px 8px; border: 1px solid var(--osn-chat-orange); border-radius: 8px; background: #fff; color: var(--osn-chat-orange); font-size: 12px; font-weight: 600; }
.osn-consultation .osn-chat-product-add:not(:disabled):hover { background: #fff2e8; }
.osn-consultation .osn-chat-selection-body .osn-chat-product-add:disabled { border-color: #d7dfe8; background: #f5f7fa; color: #637486; cursor: default; }
.osn-chat-product-add-status { grid-column: 1 / -1; grid-row: 6; margin-top: 2px; color: #536577; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.osn-chat-product-add-status:empty { display: none; }

/* Exact native basket quantities stay readable beside the amount controls. */
.osn-chat-selection-body .osn-chat-product-existing { font-size: 11px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }

.osn-chat-task-links { display: grid; gap: 7px; margin-top: 10px; padding: 10px; border: 1px solid #e1e8f0; border-radius: 12px; background: #f2f6fa; }
.osn-consultation .osn-chat-task-links h3 { margin: 0 0 2px; font-family: inherit; font-size: 13px; line-height: 1.4; }
.osn-consultation .osn-chat-task-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 9px 10px; border: 1px solid #e1e8f0; border-radius: 9px; background: #fff; color: #253b53; font-size: 13px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.osn-chat-task-link span { flex: none; color: var(--osn-chat-orange); }
.osn-consultation .osn-chat-task-link:hover { border-color: var(--osn-chat-orange); color: var(--osn-chat-orange); }
.osn-consultation[data-chat-compact="true"] .osn-chat-view { flex: none; overflow: visible; }
.osn-consultation[data-chat-layout="compact"][data-chat-compact="true"] .osn-consultation-brand { display: none; }
