/* Shared transcript styles for the sales inbox. */
.smile-messages { overflow-y: auto; flex: 1; min-height: 100px; padding: 8px; background: #fff; }
.smile-entry { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; border-radius: 8px; background: #f5f3f2; color: #000; }
.smile-entry.smile-role-user { background: #3788d1; color: #fff; }
.smile-error { color: #a02222; }
#smile-sales-inbox [hidden], #smile-chat-widget [hidden] { display: none; }
#smile-sales-inbox button:disabled { opacity: .55; cursor: default; }
.smile-inbox-grid { display: grid; grid-template-columns: minmax(200px, 30%) 1fr; gap: 20px; margin-top: 20px; }
#smile-sales-inbox nav { max-height: 70vh; overflow-y: auto; }
#smile-sales-inbox button { padding: 10px 14px; margin: 4px; cursor: pointer; }
#smile-sales-inbox nav button { display: block; width: calc(100% - 8px); text-align: left; }
#smile-sales-inbox nav button[aria-pressed="true"] { border: 2px solid #3788d1; }
#smile-sales-inbox .smile-messages { height: 45vh; }
#smile-sales-inbox form { margin: 12px 0; }
#smile-sales-inbox textarea { box-sizing: border-box; width: 100%; resize: vertical; border: 1px solid #c7ccd1; border-radius: 6px; font: inherit; padding: 8px; }

#smile-chat-widget { --smile-ink: #252c35; --smile-line: #e6e8eb; position: fixed; right: 24px; bottom: 24px; z-index: 99999; font-family: inherit; color: var(--smile-ink); display: flex; flex-direction: column; align-items: flex-end; line-height: 1.5; }
#smile-chat-widget * { box-sizing: border-box; }
#smile-chat-widget button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; background: transparent; color: var(--smile-ink); border: 0; border-radius: 50%; padding: 0; font: inherit; box-shadow: none; text-transform: none; }
#smile-chat-widget button:disabled { opacity: .4; cursor: default; }
#smile-chat-widget button svg { display: block; flex-shrink: 0; }
#smile-chat-widget .smile-launch { order: 2; min-height: 48px; padding: 12px 22px; border-radius: 28px; background: #252c35; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 22px #252c3526; }
#smile-chat-widget section { width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 112px)); margin-bottom: 14px; background: #fff; border: 1px solid var(--smile-line); border-radius: 24px; box-shadow: 0 18px 64px #18223024, 0 2px 8px #1822300a; overflow: hidden; display: flex; flex-direction: column; overscroll-behavior: contain; }
#smile-chat-widget section[hidden] { display: none; }
#smile-chat-widget section > :not(.smile-messages) { flex-shrink: 0; }
#smile-chat-widget header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: linear-gradient(120deg, #fff, #f8f9fb); border-bottom: 1px solid var(--smile-line); color: var(--smile-ink); }
#smile-chat-widget .smile-brand-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
#smile-chat-widget .smile-brand-title strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.35; }
#smile-chat-widget .smile-header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 4px; }
#smile-chat-widget .smile-header-actions button { width: 36px; height: 36px; color: #69727c; }
#smile-chat-widget .smile-header-actions button:not(:disabled):hover { background: #eef0f3; }
#smile-chat-widget .smile-avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; background: #fff; color: var(--smile-ink); overflow: hidden; font-weight: 600; }
#smile-chat-widget header .smile-avatar { flex-basis: 38px; width: 38px; height: 38px; }
#smile-chat-widget .smile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#smile-chat-widget .smile-messages { background: #fff; flex: 1 1 0; min-height: 0; padding: 6px 18px 12px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: auto; scrollbar-width: thin; scrollbar-color: #cbd0d6 transparent; }
#smile-chat-widget .smile-entry { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; padding: 0; border: 0; border-radius: 0; background: transparent; white-space: normal; }
#smile-chat-widget .smile-role-user { margin-left: 40px; justify-content: flex-end; }
#smile-chat-widget .smile-entry > .smile-avatar { margin-top: 22px; }
#smile-chat-widget .smile-entry-content { min-width: 0; max-width: 100%; }
#smile-chat-widget .smile-author { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 600; line-height: 1.4; color: #000; }
#smile-chat-widget .smile-bubble { padding: 12px 14px; border-radius: 4px 16px 16px; background: #f5f3f2; color: #000000; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
#smile-chat-widget .smile-bubble p, #smile-chat-widget .smile-bubble ul, #smile-chat-widget .smile-bubble ol, #smile-chat-widget .smile-bubble blockquote, #smile-chat-widget .smile-bubble pre { margin: 0 0 10px; font-size: inherit; line-height: inherit; }
#smile-chat-widget .smile-bubble > :last-child { margin-bottom: 0; }
#smile-chat-widget .smile-bubble ul, #smile-chat-widget .smile-bubble ol { padding-left: 20px; }
#smile-chat-widget .smile-bubble ul { list-style: disc; }
#smile-chat-widget .smile-bubble ol { list-style: decimal; }
#smile-chat-widget .smile-bubble li { margin: 0; padding: 0; }
#smile-chat-widget .smile-bubble pre { overflow-x: auto; padding: 8px; border-radius: 6px; background: #e9ebee; }
#smile-chat-widget .smile-bubble code { font-family: monospace; font-size: .93em; }
#smile-chat-widget .smile-bubble blockquote { padding-left: 10px; border-left: 3px solid #aeb8c2; }
#smile-chat-widget .smile-bubble h1, #smile-chat-widget .smile-bubble h2, #smile-chat-widget .smile-bubble h3, #smile-chat-widget .smile-bubble h4 { margin: 0 0 8px; font-size: 1em; font-weight: 700; line-height: inherit; }
#smile-chat-widget .smile-bubble a { color: #1769b2; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
#smile-chat-widget .smile-bubble strong { font-weight: 700; }
#smile-chat-widget .smile-role-user .smile-author { text-align: right; }
#smile-chat-widget .smile-role-user .smile-bubble { background: #3788d1; color: #ffffff; border-radius: 16px 4px 16px 16px; }
#smile-chat-widget .smile-role-user .smile-bubble a { color: #e1f4ff; }
#smile-chat-widget form { margin: 0; padding: 12px 16px 18px; background: linear-gradient(0deg, #fafbfc, #fff); }
#smile-chat-widget .smile-composer { display: flex; align-items: flex-end; gap: 6px; padding: 6px 7px 6px 15px; border: 1px solid #c7ccd2; border-radius: 26px; background: #fff; box-shadow: 0 2px 6px #18223005; }
#smile-chat-widget .smile-composer:focus-within { border-color: #7d9bb7; box-shadow: 0 0 0 3px #3788d112; }
#smile-chat-widget textarea { display: block; flex: 1; min-width: 0; width: 100%; min-height: 34px; max-height: 112px; margin: 0; border: 0; border-radius: 0; resize: none; background: transparent; color: var(--smile-ink); font: inherit; font-size: 16px; line-height: 22px; padding: 6px 0; outline: none; box-shadow: none; overflow-y: auto; overscroll-behavior: contain; }
#smile-chat-widget textarea::placeholder { color: #858d96; font-size: 14px; }
#smile-chat-widget .smile-composer button { flex: 0 0 34px; height: 34px; color: #657585; }
#smile-chat-widget .smile-composer button:not(:disabled):hover { background: #eef5fb; color: #3788d1; }
#smile-chat-widget button:focus-visible, #smile-sales-inbox :focus-visible { outline: 2px solid #3788d1; outline-offset: 3px; }
#smile-chat-widget .smile-error { margin: 0 18px; font-size: 13px; }
#smile-chat-widget .smile-error:empty { display: none; }
#smile-chat-widget .smile-delivery { display: block; margin-top: 6px; font-size: 12px; }
#smile-chat-widget .smile-typing:not([hidden]) { display: flex; align-items: center; gap: 10px; margin: 4px 20px; color: #69727c; font-size: 12px; }
.smile-dots { display: inline-flex; gap: 4px; }
.smile-dots i { width: 5px; height: 5px; border-radius: 50%; background: #69727c; animation: smile-thinking 1.2s ease-in-out infinite; }
.smile-dots i:nth-child(2) { animation-delay: .15s; }
.smile-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes smile-thinking { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .smile-dots i { animation: none; } }
@media (max-width: 600px) { #smile-chat-widget { right: 16px; bottom: 16px; } .smile-inbox-grid { grid-template-columns: 1fr; } #smile-sales-inbox nav { max-height: 180px; } }

#smile-chat-widget section { position: relative; }
#smile-chat-widget .smile-quick { position: relative; flex: 0 0 34px; }
#smile-chat-widget .smile-quick-toggle { width: 34px; }
#smile-chat-widget .smile-quick-toggle[aria-expanded="true"] { background: #eef5fb; color: #3788d1; }
#smile-chat-widget .smile-quick-popover { position: absolute; right: -34px; bottom: 100%; width: 230px; padding-bottom: 12px; z-index: 4; }
#smile-chat-widget .smile-quick-popover [role="menu"] { display: grid; gap: 3px; padding: 6px; border: 1px solid #e6e8eb; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px #18223026; }
#smile-chat-widget .smile-quick-popover [role="menuitem"] { display: flex; align-items: center; text-decoration: none; color: #657585; font: inherit; width: 100%; height: auto; padding: 11px 12px; justify-content: flex-start; border-radius: 9px; font-size: 13px; white-space: normal; text-align: left; }
#smile-chat-widget .smile-quick-popover [role="menuitem"]:not(:disabled):hover { background: #eef5fb; color: #252c35; }

#smile-chat-widget .smile-quick-popover a:focus-visible { outline: 2px solid #3788d1; outline-offset: -2px; }
