/* ONYX request assistant. Uses theme tokens when present, with fallbacks. */
.onyx-chat { position: fixed; right: 16px; bottom: 16px; z-index: 60; font-family: var(--font, system-ui, sans-serif); }
.single-onyx_product .onyx-chat { bottom: 84px; }
.onyx-chat-launcher { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: 999px; background: var(--ink, #1f2723); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.onyx-chat-launcher:hover, .onyx-chat-launcher:focus-visible { color: #fff; background: #000; }
.onyx-chat-panel { position: fixed; right: 16px; bottom: 76px; width: min(380px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; color: var(--ink, #1f2723); border: 1px solid var(--line, #d6dbd3); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.single-onyx_product .onyx-chat-panel { bottom: 144px; }
.onyx-chat-panel[hidden] { display: none; }
.onyx-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line, #d6dbd3); }
.onyx-chat-head h2 { font-size: 1rem; margin: 0; }
.onyx-chat-close { min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; }
.onyx-chat-log { flex: 1 1 auto; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.onyx-chat-msg { margin: 0; padding: 8px 10px; border-radius: 10px; max-width: 92%; font-size: .95rem; line-height: 1.45; }
.onyx-chat-msg.is-bot { background: var(--paper, #f7f6f1); align-self: flex-start; }
.onyx-chat-msg.is-me { background: var(--ink, #1f2723); color: #fff; align-self: flex-end; }
.onyx-chat-controls { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 10px; }
.onyx-chat-controls .field { flex: 1 1 100%; }
.onyx-chat-controls .field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 2px; }
.onyx-chat-controls input, .onyx-chat-controls select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #8a948f; border-radius: 8px; font: 1rem var(--font, system-ui, sans-serif); background: #fff; color: inherit; }
.onyx-chat-controls [aria-invalid="true"] { border: 2px solid var(--danger, #a4262c); }
.onyx-chat-controls .check { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 100%; font-size: .9rem; }
.onyx-chat-controls .check input { width: 22px; min-height: 22px; height: 22px; flex: none; }
.onyx-chat-ask { border-top: 1px solid var(--line, #d6dbd3); padding: 8px 12px 12px; }
.onyx-chat-ask-label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted, #4f5b55); margin-bottom: 4px; }
.onyx-chat-ask-row { display: flex; gap: 6px; }
.onyx-chat-ask-row input { flex: 1; min-height: 44px; padding: 8px 10px; border: 1px solid #8a948f; border-radius: 8px; font: 1rem var(--font, system-ui, sans-serif); }
.onyx-chat .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 2px solid var(--ink, #1f2723); font-weight: 600; cursor: pointer; background: transparent; color: var(--ink, #1f2723); }
.onyx-chat .btn-primary { background: var(--accent, #f3a43b); border-color: var(--accent, #f3a43b); }
.onyx-chat .rfq-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 960px) { .single-onyx_product .onyx-chat { bottom: 16px; } .single-onyx_product .onyx-chat-panel { bottom: 76px; } }
@media (max-width: 420px) { .onyx-chat-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .onyx-chat-launcher { padding: 10px 14px; } }
/* Catalogue suggestion cards (deterministic assistant, not AI). */
.onyx-chat .onyx-chat-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.onyx-chat-suggestions { align-self: stretch; }
.onyx-chat-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.onyx-chat-card { border: 1px solid var(--line, #d6dbd3); border-radius: 10px; padding: 10px; background: #fff; min-width: 0; }
.onyx-chat-card-title { font-size: .98rem; line-height: 1.3; margin: 0 0 4px; overflow-wrap: anywhere; }
.onyx-chat-card-title a { color: inherit; text-decoration: underline; }
.onyx-chat-card p { margin: 4px 0; font-size: .86rem; line-height: 1.4; overflow-wrap: anywhere; }
.onyx-chat-card-match, .onyx-chat-card-meta, .onyx-chat-card-source { color: var(--muted, #4f5b55); }
.onyx-chat-card-source a { color: var(--ink, #1f2723); }
.onyx-chat-card-facts { margin: 4px 0; display: grid; gap: 2px; font-size: .86rem; }
.onyx-chat-card-facts div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.onyx-chat-card-facts dt { font-weight: 600; }
.onyx-chat-card-facts dd { margin: 0; overflow-wrap: anywhere; }
.onyx-chat-card .onyx-chat-card-warn { background: var(--warn-bg, #fff4e0); border-left: 3px solid var(--warn-line, #e8b366); padding: 4px 6px; color: var(--ink, #1f2723); }
.onyx-chat-card-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.onyx-chat-card-form label { flex: 1 1 100%; font-weight: 600; font-size: .86rem; }
.onyx-chat-card-form input { width: 7.5em; min-height: 44px; padding: 8px 10px; border: 1px solid #8a948f; border-radius: 8px; font: 1rem var(--font, system-ui, sans-serif); }
.onyx-chat-card-form input[aria-invalid="true"] { border: 2px solid var(--danger, #a4262c); }
.onyx-chat-card-form .btn { flex: 1 1 auto; }
.onyx-chat .btn:disabled { opacity: .6; cursor: progress; }
