/* Chat styles stay in HTML, outside the checkout icon's SVG. */
.text-prize { font: italic bold 5px sans-serif; }
.mb-chat-wrap, #mbDialog { font-family: 'Nunito', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; text-align: left; color: #243b3b; }
.mb-chat-wrap *, #mbDialog * { box-sizing: border-box; }
.mb-chat-wrap { max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
.mb-chat-launcher { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 12px 16px; border: 1px solid #cbe2e2; border-radius: 14px; background: #f5fbfa; color: #185f5e; font: inherit; text-align: left; cursor: pointer; }
.mb-chat-launcher:hover { background: #edf7f6; border-color: #1f8a89; }
.mb-launcher-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 12px; background: #fff; font-size: 24px; }
.mb-launcher-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.mb-launcher-copy strong { font-size: 15px; line-height: 1.4; }
.mb-launcher-copy > span { color: #52706f; font-size: 13px; line-height: 1.4; }
.mb-launcher-arrow { margin-left: auto; font-size: 23px; }
#mbChatBackdrop { position: fixed; inset: 0; z-index: 100000; background: #122d2d65; }
#mbChatBackdrop[hidden] { display: none; }
#mbDialog { display: none; position: fixed; z-index: 100001; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid #cbe2e2; border-radius: 18px; background: #fff; box-shadow: 0 20px 64px #102e2e40; }
#mbDialog.show { display: flex; }
.mb-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 14px 18px; background: #fff; border-bottom: 1px solid #e0ebea; }
.mb-dialog-header > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#mbChatTitle { font-size: 16px; line-height: 1.4; }
#mbChatStatus { color: #587170; font-size: 12px; line-height: 1.4; }
#mbChatStatus[data-state='error'] { color: #a53225; }
.mb-close-btn { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #e0ebea; border-radius: 12px; background: #f6faf9; color: #385b59; font: 28px/1 sans-serif; cursor: pointer; }
.mb-close-btn:hover { background: #eaf4f2; }
#mbMessages { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 18px; display: flex; flex-direction: column; gap: 16px; background: #f6f9f8; }
.mb-welcome { padding: 12px 0 8px; font-size: 15px; line-height: 1.6; }
.mb-welcome strong { display: block; margin-bottom: 6px; font-size: 18px; }
.mb-welcome p { margin: 0; max-width: 44ch; color: #52706f; }
.mb-msg { display: flex; flex: 0 0 auto; min-width: 0; gap: 8px; }
.mb-msg.mb-user { justify-content: flex-end; }
.mb-msg.mb-system { justify-content: center; }
.mb-bubble { min-width: 0; max-width: 100%; padding: 12px 14px; border-radius: 14px; color: #243b3b; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; text-align: left; }
.mb-msg.mb-ai .mb-bubble { width: 100%; border: 1px solid #dde9e6; background: #fff; border-bottom-left-radius: 4px; }
.mb-msg.mb-user .mb-bubble { max-width: 85%; border-bottom-right-radius: 4px; background: #1b7775; color: #fff; white-space: pre-wrap; }
.mb-msg.mb-system .mb-bubble { padding: 4px 0; color: #587170; font-size: 13px; }
.mb-answer > :first-child { margin-top: 0; }
.mb-answer > :last-child { margin-bottom: 0; }
.mb-answer p { margin: 0 0 10px; }
.mb-answer ul, .mb-answer ol { margin: 8px 0 12px; padding-left: 22px; }
.mb-answer li { margin: 4px 0; }
.mb-answer h3 { margin: 12px 0 6px; font-size: 16px; }
.mb-answer code { padding: 2px 4px; border-radius: 4px; background: #eef3f0; font-size: 0.9em; }
.mb-products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.mb-product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #dce8e5; border-radius: 12px; background: #fff; color: #243b3b; text-decoration: none; }
.mb-product-card:hover { border-color: #1f8a89; }
.mb-product-img { display: grid; place-items: center; width: 100%; height: 148px; padding: 12px; background: #fff; color: #587170; font-size: 32px; overflow: hidden; }
.mb-product-img img { width: 100%; height: 100%; object-fit: contain; }
.mb-product-info { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 12px; border-top: 1px solid #edf3f0; text-align: left; }
.mb-product-name { font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.mb-product-price { margin-top: auto; font-size: 16px; color: #176b68; font-weight: 700; }
.mb-product-link { display: flex; align-items: center; min-height: 36px; color: #176b68; font-size: 13px; font-weight: 700; }
#mbDialog .mb-catalog-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#mbDialog .mb-catalog-btn { display: flex; align-items: center; min-height: 44px; padding: 9px 12px; border: 1px solid #bddcd6; border-radius: 10px; background: #f0f8f5; color: #176b68; font-size: 13px; text-decoration: none; }
.mb-composer { flex-shrink: 0; padding: 12px 16px 8px; background: #fff; border-top: 1px solid #e0ebea; }
.mb-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mb-suggestions[hidden] { display: none; }
.mb-chip { min-height: 36px; padding: 7px 10px; border: 1px solid #cfe3dc; border-radius: 9px; background: #f5faf7; color: #285d54; font: 12px/1.4 'Nunito',sans-serif; text-align: left; cursor: pointer; }
.mb-chip:hover { background: #e7f3ee; }
.mb-chip:disabled { opacity: .55; cursor: wait; }
.mb-input-area { display: flex; align-items: flex-end; gap: 10px; padding: 8px 10px; border: 1px solid #b7d0c9; border-radius: 12px; background: #fff; }
.mb-input-area:focus-within { border-color: #1f8a89; box-shadow: 0 0 0 2px #1f8a891c; }
#mbInput { display: block; flex: 1 1 0; min-width: 0; width: 100%; min-height: 44px; max-height: 104px; padding: 10px 0; margin: 0; border: 0; outline: 0; resize: none; background: transparent; color: #243b3b; font: 16px/1.5 'Nunito',sans-serif; }
#mbInput::placeholder { color: #738b87; }
#mbDialog .mbSendBtn { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: #1f8a89; color: #fff; cursor: pointer; }
#mbDialog .mbSendBtn:hover:not(:disabled) { background: #176b68; }
#mbDialog .mbSendBtn:disabled { background: #dce8e3; color: #839a92; cursor: default; }
#mbDialog .mbSendBtn svg { width: 22px; height: 22px; }
.mb-input-hint { display: block; padding: 6px 2px 0; color: #738b87; font-size: 11px; line-height: 1.4; }
.mb-privacy-note { flex-shrink: 0; padding: 7px 16px 10px; background: #fff; color: #738b87; font-size: 11px; line-height: 1.4; }
.mb-privacy-note a { color: #176b68; text-decoration: underline; }
.mb-pending { color: #587170; font-size: 13px; }
.mb-typing-dots { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 8px; }
.mb-typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: #587170; animation: mbBounce .9s infinite; }
.mb-typing-dots span:nth-child(2) { animation-delay: .15s; }
.mb-typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes mbBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.mb-chat-launcher:focus-visible, #mbDialog button:focus-visible, #mbDialog a:focus-visible { outline: 3px solid #c17d4a; outline-offset: 3px; }
@media (max-width: 600px) {
 .mb-chat-wrap { padding: 10px 16px; }
 .mb-chat-launcher { padding: 10px 12px; }
 .mb-launcher-copy strong { font-size: 14px; }
 .mb-launcher-copy > span { font-size: 12px; }
 #mbDialog { border-radius: 14px; }
 .mb-dialog-header { padding: 10px 12px; }
 #mbChatTitle { font-size: 15px; }
 #mbMessages { padding: 12px; gap: 12px; }
 .mb-bubble { padding: 10px 12px; font-size: 14px; }
 .mb-composer { padding: 10px 12px 6px; }
 .mb-suggestions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .mb-chip { min-height: 40px; font-size: 11px; }
 .mb-product-img { height: 116px; padding: 8px; }
 .mb-products-grid { gap: 8px; }
 .mb-product-info { padding: 9px; gap: 6px; }
 .mb-product-name { font-size: 13px; }
 .mb-input-hint { display: none; }
 .mb-privacy-note { padding: 6px 12px 8px; font-size: 10px; }
}
@media (max-width: 350px) { .mb-products-grid { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .mb-typing-dots span { animation: none; } }

/* Filled vectors render without icon fonts or external assets. */
#mbDialog .mb-ui-icon, .mb-chat-wrap .mb-ui-icon { display: inline-block; flex-shrink: 0; width: 20px; height: 20px; vertical-align: middle; }
.mb-launcher-icon .mb-ui-icon { width: 28px; height: 28px; }
#mbChatTitle { display: flex; align-items: center; gap: 8px; }
#mbChatTitle .mb-bear-icon { width: 26px; height: 26px; }
#mbDialog .mb-product-img .mb-ui-icon { width: 54px; height: 54px; }
#mbDialog .mb-product-link { justify-content: space-between; gap: 6px; }
#mbDialog .mb-product-link .mb-ui-icon { width: 16px; height: 16px; }
#mbDialog .mb-catalog-btn { gap: 7px; }
#mbDialog .mb-emoji { display: inline-flex; width: 1.2em; height: 1.2em; vertical-align: -0.2em; }
#mbDialog .mb-emoji .mb-ui-icon { width: 100%; height: 100%; }

#mbDialog .mb-emoji-native { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-variant-emoji: emoji; }
