/* Scoped customer chat, matching the supplied light consultation screen. */
.lc-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 360px; overflow: hidden; background: #f6f8fa; color: #24272b; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.5; }
.lc-page *, .lc-page *::before, .lc-page *::after { box-sizing: border-box; }
.lc-page h1, .lc-page h2, .lc-page h3, .lc-page p { margin: 0; }
.lc-page button { margin: 0; font: inherit; line-height: 1.5; cursor: pointer; appearance: none; }
.lc-page button::after { border: 0; }
.lc-page button:disabled { opacity: .48; cursor: default; }
.lc-page button:focus-visible, .lc-page textarea:focus-visible, .lc-inbox-entry:focus-visible { outline: 2px solid #3698f4; outline-offset: 3px; }
.lc-header { display: grid; grid-template-columns: 84px minmax(0, 1fr) 84px; align-items: center; flex: 0 0 auto; min-height: 60px; padding: env(safe-area-inset-top, 0px) 15px 0; background: #f6f8fa; }
.lc-header h1 { color: #141619; text-align: center; font-size: 18px; font-weight: 650; }
.lc-page .lc-back { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #171a1e; text-align: left; }
.lc-back span { display: block; font-family: Arial, sans-serif; font-size: 37px; font-weight: 300; line-height: 38px; }
.lc-page .lc-header-action { padding: 7px 0; border: 0; border-radius: 0; background: transparent; color: #24272b; text-align: right; white-space: nowrap; font-size: 15px; }
.lc-chat-scroll { flex: 1 1 auto; min-height: 0; width: 100%; max-width: 720px; margin: 0 auto; padding: 40px 16px 20px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.lc-categories { margin: 0 14px 24px; padding: 13px 16px 21px; border-radius: 13px; background: #fff; box-shadow: 0 4px 15px rgba(25, 43, 60, .035); }
.lc-categories h2 { margin-bottom: 10px; color: #282b2f; font-size: 15px; font-weight: 650; }
.lc-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lc-page .lc-category { min-width: 0; min-height: 43px; padding: 9px 4px; border: 1px solid #e9ebee; border-radius: 3px; background: #fff; color: #484c51; font-size: 14px; text-align: center; }
.lc-page .lc-category.selected { border-color: #78b9fa; background: #eef7ff; color: #197ad7; }
.lc-message { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; }
.lc-message-mine { justify-content: flex-end; padding-left: 34px; }
.lc-avatar { display: block; flex: 0 0 40px; width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.lc-avatar-fallback { display: flex; align-items: center; justify-content: center; border: 1px solid #acd0ff; background: radial-gradient(circle at 40% 28%, #f8ffff 5%, #d8eaff 45%, #87affb 80%, #6d9bec); color: #3e70cc; box-shadow: inset 0 -3px 6px rgba(73, 107, 237, .13); font-size: 18px; font-weight: 600; }
.lc-avatar-self { background: #e0ecfc; }
.lc-message-main { min-width: 0; max-width: 82%; }
.lc-message-mine .lc-message-main { display: flex; flex-direction: column; align-items: flex-end; max-width: 100%; }
.lc-sender { display: block; margin: 0 0 4px 2px; color: #999fa7; font-size: 11px; }
.lc-bubble { max-width: 100%; padding: 11px 13px; border-radius: 10px; background: #fff; color: #34383d; overflow-wrap: anywhere; }
.lc-welcome .lc-bubble { max-width: 79%; border-top-left-radius: 3px; font-size: 15px; line-height: 1.6; }
.lc-message-mine .lc-bubble { border-top-right-radius: 3px; background: #dcedff; color: #243548; }
.lc-message-text { white-space: pre-wrap; word-break: break-word; }
.lc-message-time { display: block; margin-top: 5px; color: #a0a6ad; font-size: 10px; }
.lc-page .lc-image-open { display: block; max-width: 100%; padding: 0; border: 0; border-radius: 6px; background: transparent; }
.lc-message-text + .lc-image-open { margin-top: 8px; }
.lc-message-image { display: block; width: auto; max-width: 220px; max-height: 250px; border-radius: 5px; object-fit: contain; }
.lc-image-loading { display: block; padding: 10px 0; color: #8b939d; font-size: 12px; }
.lc-page .lc-image-retry { border: 0; background: transparent; color: #397fb7; font-size: 12px; }
.lc-send-state { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; color: #a26b63; font-size: 11px; }
.lc-page .lc-retry-send { padding: 2px 6px; border: 1px solid #e6cac4; border-radius: 3px; background: #fff; color: #a65d52; font-size: 11px; }
.lc-page .lc-older { display: block; margin: 3px auto 16px; padding: 5px 10px; border: 0; background: transparent; color: #8c969f; font-size: 12px; }
.lc-merchant-note { margin-bottom: 20px !important; color: #939ca4; text-align: center; font-size: 12px; }
.lc-composer { flex: 0 0 auto; width: 100%; max-width: 720px; margin: 0 auto; padding: 0 0 env(safe-area-inset-bottom, 0px); background: #fff; }
.lc-composer-note { margin: 0 !important; padding: 8px 15px; background: #f6f8fa; color: #9ba1a7; text-align: center; font-size: 11px; }
.lc-composer-row { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-top: 1px solid #eef0f3; }
.lc-composer textarea { display: block; flex: 1 1 auto; width: 0; min-width: 0; min-height: 38px; max-height: 95px; margin: 0; padding: 9px 12px; border: 0; border-radius: 20px; outline: 0; background: #f3f5f7; color: #34383e; font: inherit; font-size: 14px; line-height: 20px; resize: none; }
.lc-composer textarea::placeholder { color: #b4bac1; }
.lc-composer textarea:disabled { color: #adb2b9; }
.lc-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lc-page .lc-upload-button { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; min-height: 36px; padding: 3px; border: 0; background: transparent; color: #8d98a5; }
.lc-upload-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.lc-page .lc-send-button { flex: 0 0 auto; min-width: 46px; min-height: 38px; padding: 5px 2px; border: 0; border-radius: 0; background: transparent; color: #3295f2; font-size: 18px; font-weight: 550; }
.lc-page .lc-send-button:disabled { opacity: .5; }
.lc-selected-category { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 15px; border-top: 1px solid #edf1f5; color: #5686b0; font-size: 12px; }
.lc-selected-category button { width: 28px; height: 24px; padding: 0; border: 0; background: transparent; color: #9babb9; font-size: 19px; }
.lc-attachment { display: flex; align-items: center; gap: 9px; padding: 9px 15px; border-top: 1px solid #edf1f5; color: #8c98a4; font-size: 12px; }
.lc-attachment > img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.lc-attachment > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lc-page .lc-attachment-remove { width: 28px; height: 28px; border: 0; background: transparent; color: #929ca7; font-size: 21px; }
.lc-draft-error { padding: 5px 15px; color: #ad655b; font-size: 12px; }
.lc-loading { padding: 20px 12px; color: #9ba5af; text-align: center; font-size: 13px; }
.lc-initial { padding-top: 80px; }
.lc-error { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 15px 0; padding: 10px 12px; border-radius: 7px; background: #fff1ed; color: #a96c5f; font-size: 12px; overflow-wrap: anywhere; }
.lc-page .lc-text-button { padding: 4px 7px; border: 0; background: transparent; color: #348aca; font-size: 12px; }
.lc-unavailable { margin: 20px 6px; padding: 18px; border: 1px solid #e6ebf0; border-radius: 10px; background: #fff; text-align: center; }
.lc-unavailable strong { font-size: 14px; font-weight: 600; }
.lc-unavailable p { margin-top: 7px; color: #939ca5; font-size: 13px; }
.lc-history { flex: 1 1 auto; width: 100%; max-width: 720px; min-height: 0; margin: 0 auto; padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.lc-history-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.lc-history-heading h2 { font-size: 16px; font-weight: 600; }
.lc-page .lc-conversation { display: flex; align-items: center; gap: 11px; width: 100%; margin-bottom: 10px; padding: 15px 13px; border: 1px solid #eef0f3; border-radius: 11px; background: #fff; text-align: left; }
.lc-conversation-body { display: block; flex: 1 1 auto; min-width: 0; }
.lc-conversation-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 5px; }
.lc-conversation-top strong { color: #343a41; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.lc-conversation-top time { color: #a4abb3; font-size: 10px; }
.lc-conversation-preview { display: block; overflow: hidden; color: #9ba2aa; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.lc-unread { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 12px; background: #ef6872; color: white; font-size: 10px; line-height: 18px; }
.lc-conversation-arrow { color: #bec6ce; font-size: 22px; }
.lc-empty { padding: 55px 16px; color: #a0a8b1; text-align: center; }
.lc-empty-icon { display: block; width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; background: #eaf0f7; color: #a7b9ce; font-size: 34px; line-height: 62px; }
.lc-empty h3 { margin-bottom: 7px; color: #7a8795; font-size: 16px; font-weight: 500; }
.lc-empty p { font-size: 13px; }
.lc-page .lc-primary { margin-top: 20px; padding: 9px 25px; border: 0; border-radius: 7px; background: #3c98ef; color: white; font-size: 14px; }
.lc-page .lc-load-more { display: block; width: 100%; padding: 10px; border: 1px solid #e4eaf0; border-radius: 8px; background: white; color: #8097ac; font-size: 13px; }
.lc-lightbox { position: fixed; inset: 0; z-index: 100100; display: flex; align-items: center; justify-content: center; padding: 56px 12px 20px; background: rgba(16, 21, 27, .92); }
.lc-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lc-page .lc-lightbox-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 18px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; background: transparent; color: white; }
.ls-messages-with-tab .lc-inbox-entry { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 17px 16px 0; padding: 16px; border: 1px solid #dfeaf6; border-radius: 12px; background: #f5faff; color: #557b9e; text-align: left; font: inherit; cursor: pointer; }
.lc-inbox-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 11px; background: #e2efff; color: #488aca; font-size: 18px; }
.lc-inbox-copy { flex: 1; min-width: 0; }
.lc-inbox-copy strong, .lc-inbox-copy small { display: block; }
.lc-inbox-copy strong { color: #486d90; font-size: 15px; font-weight: 600; }
.lc-inbox-copy small { margin-top: 3px; color: #96a7b8; font-size: 12px; }
.lc-inbox-arrow { color: #8fa8c0; font-size: 24px; }
@media (max-width: 350px) { .lc-chat-scroll { padding-left: 12px; padding-right: 12px; } .lc-categories { margin-left: 4px; margin-right: 4px; padding-left: 12px; padding-right: 12px; } .lc-category-grid { gap: 7px; } .lc-page .lc-category { font-size: 12px; } .lc-message-image { max-width: 190px; } .lc-welcome .lc-bubble { font-size: 14px; } .lc-header { padding-left: 13px; padding-right: 13px; } }
