/* V5 merchant notifications, reply policy and popup announcements. */
.pending-reply-banner,.activation-banner{padding:12px 16px;background:#eff5ff;border:1px solid #dce8ff;border-radius:12px;color:#4c668d;font-size:13px;line-height:1.7;margin-bottom:10px}.pending-reply-banner.at-limit{background:#fff5e9;border-color:#ffe3bf;color:#96612a}.activation-banner{padding:18px 22px;margin-bottom:22px}.v5-settings{margin-top:24px}.v5-checkbox{display:flex;align-items:center;gap:9px;font-size:14px;color:#526076;line-height:1.6;margin:16px 0}.v5-checkbox input{width:17px;height:17px;accent-color:#4d8df7;flex-shrink:0}.notification-settings{margin-top:24px}.smtp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}.smtp-wide{grid-column:1/-1}.v5-notification-toggles{display:flex;gap:28px;flex-wrap:wrap}.notification-actions{display:flex;gap:12px;margin-top:14px;flex-wrap:wrap}.notification-jobs{border-top:1px solid #edf0f5;margin-top:25px;padding-top:20px}.notification-jobs h4{margin:0 0 15px;font-size:14px}.notification-jobs .data-table td:last-child{max-width:260px;overflow-wrap:anywhere}.merchant-notice-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;color:#4d5b70;max-height:55vh;overflow-y:auto;font-size:15px}.sound-toggle{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid #dce7f7;border-radius:99px;color:#5c7fad;padding:9px 13px;font-size:12px;box-shadow:0 3px 16px #345b8e14;cursor:pointer}.sound-toggle svg{width:16px;height:16px}.sound-toggle.muted{color:#98a2b3;background:#f7f9fc}.guest-body .sound-toggle{padding:7px 9px;font-size:11px}.guest-body .pending-reply-banner{padding:8px 10px;font-size:12px;line-height:1.6;margin-bottom:8px}.guest-body .composer-wrap{position:relative}.smtp-grid .text-input{width:100%}
@media(max-width:700px){.smtp-grid{grid-template-columns:1fr;gap:0}.smtp-wide{grid-column:auto}.v5-notification-toggles{display:block}.notification-settings .settings-header-row{gap:10px;align-items:flex-start}.notification-settings .settings-header-row h3{font-size:16px}.merchant-notice-body{font-size:14px}}
/* Reference-style chat: a quiet rail, compact conversation list and a pink/blue canvas. */
.avatar{padding:0!important;overflow:visible;background:transparent!important}.default-avatar{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.headphone-brand>img{width:100%;height:100%;object-fit:cover;border-radius:50%}.guest-body{background:#eef0fa}.guest-body .guest-app{width:100%;max-width:1600px;border-color:#e5e6ef;box-shadow:none}.guest-main .chat-panel,.chat-layout .chat-panel{background:linear-gradient(115deg,#fff5fc 0%,#efedff 48%,#d8eaff 100%)}.guest-main .message-viewport,.chat-layout .message-viewport{background:transparent}.guest-main .chat-header{background:#ffffff45;border-bottom:1px solid #dde1f05e}.guest-main .message-bubble,.chat-layout .message-bubble{border:0;border-radius:5px;background:#fff;box-shadow:none;color:#434955}.guest-main .message-row.own .message-bubble,.chat-layout .message-row.own .message-bubble{background:#d0e7ff;color:#35516e}.guest-main .message-meta .sender-name,.chat-layout .message-meta .sender-name{color:#7e8492;font-weight:400}.guest-main .message-meta .agent-label,.chat-layout .message-meta .agent-label{color:#d79b29;background:#fff5dc}.guest-main .composer-wrap,.chat-layout .composer-wrap{background:transparent;border-top:1px solid #d6dded75;padding-top:12px}.guest-main .composer,.chat-layout .composer{background:transparent;border:0;border-radius:0}.guest-main .composer:focus-within,.chat-layout .composer:focus-within{box-shadow:none}.guest-main .composer textarea,.chat-layout .composer textarea{background:transparent;color:#455065}.guest-main .composer-toolbar,.chat-layout .composer-toolbar{border:0}.guest-main .tool-button,.chat-layout .tool-button{color:#59647b}.guest-main .tool-button:hover,.chat-layout .tool-button:hover{background:#ffffff70}.guest-main .send-button,.chat-layout .send-button{border-radius:4px;background:#159af4;box-shadow:none}.guest-main .send-button:disabled,.chat-layout .send-button:disabled{background:#a7c7e3}.guest-main .chat-day,.chat-layout .chat-day{color:#9399a8}.guest-main .message-system span{background:#ffffff75;color:#9097a6}.guest-main .message-row>.avatar,.chat-layout .message-row>.avatar{width:36px;height:36px;min-width:36px;border-radius:5px}.guest-main .message-content{max-width:83%}.guest-main .message-bubble{font-size:14px;line-height:1.7;padding:9px 12px}.guest-main .message-meta{font-size:11px}.guest-main .message-meta .sender-name{font-size:12px}.guest-main .composer-caption{display:none}.guest-main .composer-hint{color:#969eaf}.guest-main .chat-title h2{color:#424957;font-size:15px}.guest-main .chat-title p{color:#8e96a7}.guest-main .conversation-tabs button.active{color:#6c88ef}.guest-main .guest-list-end{color:#aeb2bc}.guest-main .pending-reply-banner{background:#ffffff95;border-color:#e5e6f1;color:#737e91}.guest-main .pending-reply-banner.at-limit{background:#fff5e9;color:#96612a}.guest-main .service-banner{background:#fff9}.guest-body .guest-collapsed .headphone-brand{background:#fff}
@media(min-width:780px){.guest-body .guest-app{display:grid;grid-template-columns:66px minmax(0,1fr);grid-template-rows:100dvh;min-height:0}.guest-topbar{position:absolute;z-index:5;left:0;top:0;width:66px;min-height:80px;height:80px;padding:15px 10px;display:flex;align-items:flex-start;justify-content:center;background:transparent;border:0;gap:0}.guest-topbar .headphone-brand{width:42px;height:42px;min-width:42px;box-shadow:none;background:transparent;border:2px solid #fff}.guest-workspace-title,.guest-topbar .guest-close{display:none}.guest-main{grid-column:2;grid-row:1;height:100dvh!important;margin:0;min-height:0;border:0;border-radius:0;display:flex;background:#f8f6ff}.guest-main .conversation-panel{display:flex!important;flex:0 0 300px;width:300px;border-right:1px solid #e4e3f1;background:linear-gradient(140deg,#fdf6ff,#f3f0ff);overflow:auto}.guest-filters{height:60px;min-height:60px;background:transparent;border:0}.guest-main .conversation-tabs{background:transparent;width:280px;height:43px;gap:4px}.guest-main .conversation-tabs button{color:#7f8594;font-size:13px}.guest-main .conversation-list{padding:0;flex:1;overflow-y:auto}.guest-main .conversation-item{box-shadow:none!important;background:transparent!important;border:0;border-radius:0;min-height:76px;margin:0;gap:12px;padding:10px 13px;position:relative}.guest-main .conversation-item.active{background:#e4f2ff!important}.guest-main .conversation-item.active:before{display:block;content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#209cff}.guest-main .conversation-item .avatar{width:44px;height:44px;min-width:44px;border:0;border-radius:6px;box-shadow:none}.guest-main .conversation-name{font-size:14px;font-weight:400;max-width:160px;color:#505767}.guest-main .conversation-time{font-size:11px}.guest-main .conversation-preview,.guest-main .conversation-item.active .conversation-preview{font-size:12px;color:#a0a5b1;margin-top:5px;line-height:1.6}.guest-main .chat-panel{display:flex!important;flex:1;min-width:0}.guest-main .chat-header{height:60px;min-height:60px;padding:0 22px}.guest-main .chat-header>.avatar{display:none}.guest-main .chat-title p{display:none}.guest-main .chat-title h2 .title-tag{display:inline;font-size:12px;border:0;color:#9296a2;background:none;font-weight:400}.guest-main .message-viewport{padding:23px 26px}.guest-main .composer-wrap{min-height:165px;padding:10px 24px 18px}.guest-main .composer textarea{height:55px;min-height:55px}.guest-main .message-bubble{font-size:14px}.guest-main .composer-toolbar{height:35px;padding:0}.guest-main .composer-bottom{padding:0}.guest-main .guest-list-end{display:none}.guest-bottom-tabs{position:absolute!important;left:0;top:90px;bottom:auto;width:66px!important;height:auto!important;min-height:0;display:flex;flex-direction:column;gap:12px;padding:5px 9px;background:none;border:0;box-shadow:none}.guest-bottom-tabs button{width:46px;height:46px;flex:none;border-radius:9px;color:#81858f;background:transparent;padding:10px}.guest-bottom-tabs button>span:last-child{display:none}.guest-bottom-tabs button svg{width:24px;height:24px}.guest-bottom-tabs button.active{background:#fff;color:#43be91}.guest-content-view{position:absolute;inset:0 0 0 300px;background:#f9f9ff;z-index:8;padding:30px}.guest-main.content-open .conversation-panel{display:flex!important}.guest-main.content-open .chat-panel{display:none!important}.guest-main .mobile-back{display:none}.guest-body .guest-collapsed{grid-column:1/-1}.guest-main .emoji-picker{left:20px;right:auto;bottom:152px}}
@media(max-width:779px){.guest-body .guest-app{width:100%;max-width:100%;height:100dvh}.guest-main{height:auto!important;margin:0;border-radius:0;min-height:0}.guest-main .conversation-panel{width:100%}.guest-main .chat-panel{display:none}.guest-main.mobile-chat-open .chat-panel{display:flex}.guest-main.mobile-chat-open .conversation-panel{display:none}.guest-main .chat-header{min-height:65px;height:65px}.guest-main .message-row>.avatar{height:31px;width:31px;min-width:31px}.guest-main .message-content{max-width:80%}.guest-main .message-bubble{font-size:14px;line-height:1.7}.guest-main .message-meta time{font-size:10px}.guest-main .composer-hint{font-size:9px}.guest-main .composer-wrap{padding:9px 10px 13px}.guest-main .composer textarea{font-size:14px;min-height:45px;height:45px}.guest-main .send-button{font-size:12px;height:31px}.guest-main .composer-bottom{padding-bottom:0;height:35px}.guest-main .conversation-item .avatar{border:0;box-shadow:none}.guest-main .conversation-item{box-shadow:none}.guest-main .message-content .media-caption{font-size:10px}.guest-main .chat-title h2{font-size:14px}.guest-body .guest-topbar{background:#fff}.guest-body .guest-bottom-tabs{position:relative}.guest-body .sound-toggle{max-width:130px}.guest-body .sound-toggle span{max-width:98px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.message-status.message-read{color:#4e9d85}.merchant-menu-button,.merchant-nav-overlay{display:none}
@media(max-width:779px){body[data-mode=agent]{overflow:hidden}.app-shell,.workspace,.main-content,.chat-layout,.aux-page{min-width:0;max-width:100%}.app-shell{width:100%;height:100dvh}.merchant-menu-button{display:flex!important;flex-shrink:0;width:34px;height:34px;color:#5c7ca9;margin-right:9px}.merchant-menu-button svg{width:23px;height:23px}.workspace-header{height:67px;min-height:67px;padding:0 14px;gap:0}.workspace-heading{flex:1;min-width:0}.workspace-heading h1{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}.workspace-heading p{font-size:9px;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-actions{gap:7px;flex-shrink:0}.workspace-actions .online-pill,.workspace-actions #header-client-link{display:none}.workspace-header .header-avatar{width:30px;height:30px}.nav-rail#merchant-sidebar{position:fixed;left:0;top:0;bottom:0;height:100dvh;width:240px;flex-basis:auto;z-index:90;padding:25px 17px 20px;transform:translateX(-100%);transition:transform .2s ease;overflow-y:auto;box-shadow:10px 0 40px #2b46651a;visibility:hidden}.merchant-nav-open .nav-rail#merchant-sidebar{transform:translateX(0);visibility:visible}.merchant-nav-overlay{position:fixed;inset:0;z-index:89;width:100%;height:100%;border:0;background:#1c2a484d;backdrop-filter:blur(2px);cursor:pointer}.merchant-nav-open .merchant-nav-overlay{display:block}.nav-rail .brand-mark{width:auto;height:41px;justify-content:flex-start;padding:0 6px;background:none}.nav-rail .brand-mark>svg{width:36px;height:36px}.nav-rail .brand-mark>span{display:block;font-size:23px}.nav-rail .sidebar-caption,.nav-rail .sidebar-group-label,.nav-rail .sidebar-plan{display:flex}.nav-rail .sidebar-caption{padding:20px 8px 0;font-size:10px}.nav-rail .sidebar-group-label{padding:20px 15px 8px}.nav-rail .rail-links{margin-top:20px;gap:5px}.nav-rail .rail-link{width:100%;height:43px;flex-direction:row;justify-content:flex-start;font-size:13px;gap:12px;padding:0 15px}.nav-rail .rail-link>span{display:block}.nav-rail .rail-link svg{width:19px;height:19px}.nav-rail .rail-bottom{align-items:stretch;gap:18px;margin-top:25px}.nav-rail .sidebar-plan{flex-direction:column;padding:15px;gap:8px}.nav-rail .rail-profile{width:33px;height:33px;display:flex;margin-left:8px;flex-shrink:0}.chat-layout .conversation-panel{width:100%;flex:0 0 100%;border:0}.chat-layout .chat-panel{display:none}.chat-layout.mobile-chat-open .conversation-panel{display:none}.chat-layout.mobile-chat-open .chat-panel{display:flex}.chat-layout .chat-header{height:67px;min-height:67px;padding:0 12px}.chat-layout .mobile-back{display:flex}.chat-layout .chat-title h2{font-size:14px;max-width:190px}.chat-layout .chat-title p{font-size:9px}.chat-layout .message-content{max-width:80%}.chat-layout .message-bubble{font-size:14px;line-height:1.7}.chat-layout .message-viewport{padding:18px 12px}.chat-layout .composer-wrap{padding:9px 10px 12px}.chat-layout .composer textarea{font-size:14px;min-height:45px;height:45px}.chat-layout .composer-caption{display:none}.chat-layout .composer-hint{font-size:9px}.chat-layout .send-button{font-size:12px}.chat-layout .chat-header>.avatar{width:31px;height:31px;min-width:31px;border-radius:6px}.chat-layout .detail-panel{position:fixed;top:67px;bottom:0;right:0;max-width:calc(100vw - 28px);width:300px;z-index:70;overflow-y:auto}.detail-panel.mobile-open{display:block}.aux-page{padding:22px 15px;overflow-x:hidden}.aux-toolbar{flex-direction:column;align-items:flex-start;gap:14px}.aux-toolbar h2{font-size:21px;line-height:1.5}.dashboard-welcome{padding:21px 18px}.dashboard-welcome .welcome-symbol{display:none}.dashboard-columns,.setting-grid,.plan-grid{grid-template-columns:minmax(0,1fr)}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-card{padding:17px 14px}.stat-card strong{font-size:26px}.stat-card small{font-size:9px}.surface-panel,.settings-card,.redemption-panel,.quota-card,.plan-card{min-width:0;max-width:100%}.settings-card{padding:20px 17px}.settings-card h3{font-size:16px}.settings-card>p,.selection-help{font-size:12px;line-height:1.8}.settings-card .form-label{font-size:12px}.settings-card .text-input,.settings-card .form-textarea{font-size:14px;max-width:100%}.settings-card+.settings-card{margin-top:20px}.text-input,.embed-code{min-width:0}.quota-grid{grid-template-columns:1fr}.data-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.data-table{min-width:500px}.redemption-table{min-width:440px}.notification-jobs .data-table{min-width:470px}.data-table th,.data-table td{font-size:12px;padding:13px}.data-table .optional-column,.data-table .mobile-hide{display:none}.copy-link-field{min-width:0}.copy-link-field input{min-width:0;width:0;flex:1;font-size:11px}.copy-link-field button{flex-shrink:0}.embed-code{font-size:12px;line-height:1.8;min-height:130px;overflow-wrap:anywhere;word-break:break-all}.content-item{padding:18px 15px;flex-wrap:wrap}.content-item-main{min-width:0;flex-basis:calc(100% - 54px)}.content-item p{font-size:12px}.content-item h3{font-size:14px}.content-item-actions{margin-left:40px}.file-list-row{padding:15px 12px;gap:10px}.file-list-row .file-date{display:none}.file-list-row h3{font-size:13px}.file-list-row p{font-size:11px;line-height:1.7}.files-grid{overflow:hidden}.modal-backdrop{padding:14px}.modal{width:100%;max-width:550px;max-height:calc(100dvh - 28px)}.modal-header{padding:20px 18px 15px}.modal-body{padding:0 18px 21px}.modal-footer{padding:14px 18px;flex-wrap:wrap;gap:10px}.modal .text-input,.modal .form-textarea{font-size:14px}.modal-title h2{font-size:18px}.modal-title p{font-size:12px}.primary-button,.secondary-button{font-size:12px;min-height:37px}.v5-settings{margin-top:20px}.redemption-heading{align-items:flex-start;flex-direction:column}.redemption-heading .primary-button{margin-top:8px}.redemption-rules p{font-size:12px}.smtp-grid{grid-template-columns:1fr}.smtp-wide{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.nav-rail#merchant-sidebar{transition:none}}

/* Sound controls belong to the header flow and never overlap chat actions. */
.sound-control{position:static;inset:auto;z-index:auto;flex:0 0 auto;display:flex;align-items:center}.sound-toggle{width:34px;height:34px;min-width:34px;padding:8px;justify-content:center;box-shadow:none;border-radius:9px;border:1px solid #e1e8f3;background:#f7faff;color:#6187bc}.sound-toggle>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.sound-toggle svg{width:18px;height:18px;flex-shrink:0}.guest-topbar .sound-control{margin-left:auto}.guest-body .sound-toggle{width:32px;height:32px;min-width:32px;padding:7px}.workspace-actions>.sound-control{margin-right:1px}
@media(min-width:780px){.guest-topbar{height:120px;min-height:120px;flex-direction:column;justify-content:flex-start;align-items:center;gap:12px;padding:15px 10px}.guest-topbar .sound-control{margin:0}.guest-bottom-tabs{top:130px}}
@media(max-width:779px){.guest-topbar{gap:12px;padding-left:20px;padding-right:16px}.guest-topbar .headphone-brand{width:44px;height:44px;min-width:44px}.guest-workspace-title h1{font-size:16px;letter-spacing:0}.guest-workspace-title p{font-size:11px}.guest-topbar .sound-control{margin:0}.workspace-actions{gap:6px}.workspace-heading h1,.workspace-heading p{max-width:100%}.workspace-heading{overflow:hidden}.guest-body .sound-toggle{max-width:none}.guest-body .sound-toggle span{max-width:none}}

/* Keep the picker inside the visible screen, including the mobile keyboard viewport. */
#emoji-picker{position:fixed;inset:auto;bottom:auto;right:auto;width:min(360px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:min(340px,calc(100dvh - 16px));display:flex;flex-direction:column;overflow:hidden;padding:10px;gap:8px;z-index:80;box-sizing:border-box;background:#fff;border:1px solid #e3e7f1;border-radius:14px;box-shadow:0 10px 36px #33486d26}
#emoji-picker[hidden]{display:none!important}
#emoji-picker .emoji-picker-head{flex-shrink:0;min-width:0;max-width:100%;box-sizing:border-box;min-height:25px;margin:0;font-size:12px;color:#738198;padding-left:3px}#emoji-picker .emoji-picker-head>span{min-width:0;overflow-wrap:anywhere}#emoji-picker .emoji-picker-head .icon-button{width:26px;height:26px}
.emoji-categories{display:flex;gap:4px;flex-shrink:0;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:0 0 5px;scrollbar-width:thin;scrollbar-color:#dbe3ef transparent;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.emoji-categories button{display:flex;align-items:center;gap:4px;flex:0 0 auto;border-radius:7px;padding:7px 9px;color:#8590a3;font-size:12px;line-height:18px;white-space:nowrap}.emoji-categories button>span{font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:17px;line-height:18px}.emoji-categories button.active{color:#4b80cb;background:#edf4ff}.emoji-categories button:hover{background:#f1f5fa}
#emoji-picker .emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;overflow-x:hidden;overflow-y:auto;min-width:0;min-height:0;max-height:236px;align-content:start;padding:2px 1px 4px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dbe3ef transparent;-webkit-overflow-scrolling:touch}
#emoji-picker .emoji-grid button{display:flex;align-items:center;justify-content:center;width:100%;height:36px;min-width:0;padding:2px;border-radius:7px;overflow:hidden;font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-size:23px;line-height:1;letter-spacing:0}#emoji-picker .emoji-grid button:hover{background:#edf4ff}#emoji-picker .emoji-grid button:focus-visible{outline-offset:-3px}
.message-content{min-width:0}.message-bubble{max-width:100%;overflow-wrap:anywhere;word-break:break-word}.composer textarea{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:360px){#emoji-picker .emoji-grid{grid-template-columns:repeat(7,minmax(0,1fr))}#emoji-picker .emoji-grid button{height:34px;font-size:22px}}
#emoji-picker .emoji-grid.sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;max-height:236px}#emoji-picker .sticker-grid button{height:auto;aspect-ratio:1;padding:4px}#emoji-picker .sticker-grid img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.sticker-loading{grid-column:1/-1;margin:18px 0;text-align:center;color:#8793a4;font-size:12px;line-height:1.7}#emoji-picker .sticker-grid .sticker-retry{display:inline-block;aspect-ratio:auto;font:inherit;width:auto;height:auto;color:#4b80cb;padding:4px 10px}.message-sticker{display:block;width:150px;max-width:100%;height:auto;object-fit:contain;cursor:zoom-in}.message-bubble.message-sticker-bubble,.guest-main .message-bubble.message-sticker-bubble,.chat-layout .message-bubble.message-sticker-bubble{padding:0;border:0;background:transparent;box-shadow:none}
q-sticker.message-sticker{position:relative;aspect-ratio:1;overflow:hidden;isolation:isolate;line-height:0}q-sticker>img{display:block;width:100%;height:100%;object-fit:contain}q-sticker>.sticker-animation{position:absolute;inset:0;display:block;pointer-events:none;overflow:hidden}q-sticker>.sticker-animation svg{display:block;width:100%!important;height:100%!important;max-width:100%;max-height:100%}q-sticker.sticker-animated>img{opacity:0}@media(prefers-reduced-motion:reduce){q-sticker.sticker-animated>img{opacity:1}q-sticker>.sticker-animation{display:none}}
