
.support-chat{--sc-navy:#133858;--sc-blue:#127ec7;font-family:Arial,sans-serif;font-size:13px;color:#193b54;text-align:left;position:relative;z-index:10000}.support-chat *{box-sizing:border-box}.support-chat [hidden],.support-nav-count[hidden]{display:none!important}.support-chat button,.support-chat input,.support-chat textarea{font:inherit}.support-chat button{cursor:pointer}.support-chat button:disabled{opacity:.55;cursor:wait}.support-chat button:focus-visible,.support-chat a:focus-visible{outline:3px solid #ffb867;outline-offset:3px}.support-launch{position:fixed;bottom:22px;left:22px;display:flex;align-items:center;gap:9px;padding:13px 18px;border:0;border-radius:30px;background:linear-gradient(120deg,#164767,#0d2f50);color:white;box-shadow:0 6px 22px #12385835;font-weight:700}.support-launch>span{font-size:21px}.support-unread,.support-nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;border-radius:20px;background:#ff7948;color:#fff;padding:0 5px;font-size:10px;font-weight:700}.support-panel{position:fixed;left:22px;bottom:87px;width:385px;height:min(650px,calc(100dvh - 110px));display:flex;flex-direction:column;overflow:hidden;background:white;border:1px solid #dae5ee;border-radius:20px;box-shadow:0 18px 65px #12385830}.support-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 18px;background:linear-gradient(110deg,#173d60,#102b49);color:#fff;flex-shrink:0}.support-header strong{display:block;font-size:15px}.support-header small{display:block;color:#c3d8e8;font-size:10px;margin-top:5px;line-height:1.5}.support-close{border:0;background:#ffffff14;border-radius:9px;color:#fff;font-size:26px!important;width:32px;height:32px;padding:0;flex-shrink:0}.support-intro{padding:20px;overflow:auto;display:grid;gap:12px}.support-intro h3{font-size:18px;line-height:1.45;margin:0;color:#173d60}.support-intro p{margin:0;color:#748799;font-size:12px;line-height:1.6}.support-intro label{display:grid;gap:5px;font-size:11px;font-weight:600}.support-intro input{width:100%;min-width:0;padding:10px 12px;border:1px solid #d6e3ed;border-radius:9px;background:#f9fcff;color:#193b54;min-height:40px}.support-intro small{font-size:10px;color:#7c8e9c;line-height:1.6}.support-primary{border:0;border-radius:10px;background:#ff8540;color:#fff;padding:12px 15px;font-weight:bold;margin:4px 0}.support-thread{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}.support-person{padding:10px 15px;border-bottom:1px solid #e7edf3;color:#5e788c;font-size:11px;overflow-wrap:anywhere;background:#f8fbfd;flex-shrink:0}.support-messages{overflow:auto;min-height:100px;flex:1;padding:16px;overscroll-behavior:contain;scrollbar-width:thin;background:linear-gradient(135deg,#f5f9fd,#fff)}.support-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 14px}.support-message.own{align-items:flex-end}.support-bubble{max-width:86%;border-radius:13px 13px 13px 3px;background:#eaf0f6;padding:10px 12px;color:#244058;box-shadow:0 2px 5px #12385804;overflow-wrap:anywhere}.support-message.own .support-bubble{background:#173e61;color:#fff;border-radius:13px 13px 3px 13px}.support-bubble p{white-space:pre-wrap;line-height:1.6;margin:0;font-size:12px}.support-bubble img{max-width:100%;max-height:220px;object-fit:contain;border-radius:7px;display:block;margin:2px 0}.support-message-meta{display:block;font-size:9px;color:#7e8fa0;margin-top:5px;line-height:1.5}.support-compose{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px 4px;border-top:1px solid #e3ebf3;background:#fff;flex-shrink:0}.support-compose textarea{flex:1;min-width:0;min-height:40px;max-height:110px;resize:vertical;border:1px solid #dde8ef;border-radius:12px;padding:10px;background:#f7fafc;font-size:12px;line-height:1.5}.support-attach,.support-send{display:grid;place-items:center;width:34px;height:36px;flex-shrink:0;border:0;border-radius:10px;background:#edf5fa;color:#17638e;cursor:pointer;font-size:24px!important}.support-send{font-size:18px!important;background:#ff8540;color:white}.support-file{display:flex;gap:8px;align-items:center;flex:0 0 100%;background:#eef5fa;padding:5px 10px;border-radius:7px;font-size:10px;min-width:0}.support-file span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.support-file button{border:0;background:none;color:#963b32;font-size:18px!important}.support-upload-note{display:block;padding:4px 16px 9px;color:#8999a6;font-size:9px;text-align:center}.support-feedback{padding:0 14px;margin:0;font-size:11px;line-height:1.5;flex-shrink:0;color:#526f84}.support-feedback:not(:empty){padding:8px 14px}.support-feedback.has-error{background:#fff0ed;color:#ab4231}.support-admin-tools{padding:9px 12px;display:flex;align-items:center;gap:10px;font-size:10px;border-bottom:1px solid #e3edf4;flex-shrink:0}.support-admin-tools a{color:#197bb6;text-decoration:none}.support-sound{margin-left:auto;background:#eaf4fa;color:#245474;border:0;border-radius:7px;padding:6px;font-size:10px!important}.support-inbox{overflow:auto;max-height:185px;min-height:60px;flex-shrink:0;border-bottom:1px solid #dfe9f1}.support-conversation{display:block;position:relative;width:100%;padding:12px 16px;text-align:left;border:0;border-bottom:1px solid #edf2f7;background:#fff;color:#26465e}.support-conversation:hover,.support-conversation.selected{background:#ecf6fd}.support-conversation.selected{box-shadow:inset 3px 0 #ff9147}.support-conversation>div{display:flex;justify-content:space-between;gap:12px}.support-conversation b{font-size:12px}.support-conversation small{font-size:9px;color:#8a99a5;display:block;margin:3px 0}.support-conversation>span{font-size:11px;color:#638094;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-right:24px}.support-row-count{position:absolute;right:12px;bottom:10px;padding:2px 6px;background:#ff8540;color:white;border-radius:15px;font-size:9px!important}.support-empty{padding:20px 14px;text-align:center;color:#7f92a2;font-size:12px;line-height:1.8}.support-older{border:0;border-bottom:1px solid #e2ebf3;background:#f5faff;color:#25749e;font-size:10px!important;padding:6px}.support-admin-page{padding-top:35px;padding-bottom:45px;max-width:1250px}.support-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.support-page-heading h1{font-size:28px;margin:8px 0}.support-page-heading p{color:#7f92a2;font-size:12px}.support-embedded{z-index:1;margin-top:20px}.support-embedded .support-panel{position:relative;inset:auto;width:100%;height:680px;max-height:calc(100dvh - 180px);min-height:430px;display:grid;grid-template-columns:310px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr)}.support-embedded .support-header{grid-column:1/-1}.support-embedded .support-admin-tools{grid-column:1/-1}.support-embedded .support-admin-tools>a{display:none}.support-embedded .support-inbox{grid-column:1;grid-row:3;max-height:none;min-height:0;border-right:1px solid #e1eaf2;border-bottom:0}.support-embedded .support-thread{grid-column:2;grid-row:3}.support-embedded .support-feedback:not(:empty){grid-column:1/-1}.support-embedded .support-thread[hidden]+.support-feedback:empty:before{content:'Chọn khách hàng ở bên trái để bắt đầu phản hồi.';display:block;color:#7c91a2;padding:20px}.support-chat .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:650px){.support-panel{left:10px;bottom:78px;width:calc(100vw - 20px);height:min(620px,calc(100dvh - 95px));border-radius:17px}.support-launch{left:12px;bottom:18px;padding:11px 14px;font-size:12px}.support-embedded .support-panel{grid-template-columns:1fr;grid-template-rows:auto auto minmax(100px,150px) minmax(260px,1fr);max-height:none;height:750px}.support-embedded .support-inbox{grid-column:1;grid-row:3;max-height:150px;border-right:0;border-bottom:1px solid #dfe9f1}.support-embedded .support-thread{grid-column:1;grid-row:4}.support-page-heading{align-items:flex-start;flex-direction:column}.support-admin-page{padding-inline:14px}.support-page-heading h1{font-size:24px}.support-header{padding:14px}}

.support-launch.support-docked{left:auto;right:22px;bottom:164px;width:283px;min-height:58px;justify-content:flex-start;padding:12px 24px;border-radius:999px;background:linear-gradient(110deg,#0689c5,#0874aa)}.contact-actions .support-chat{position:static}.support-launch.support-docked~.support-panel{left:auto;right:22px;bottom:232px}@media(max-width:560px){.support-launch.support-docked{right:14px;bottom:150px;width:263px}}

.support-launch.support-docked{left:auto!important;right:22px!important;bottom:164px!important;width:283px!important;min-height:54px!important;justify-content:flex-start!important;padding:10px 19px!important;border-radius:999px!important;background:linear-gradient(110deg,#0689c5,#0874aa)!important;font-size:12px!important}.contact-actions .support-chat{position:static!important}.contact-actions .support-launch.support-docked{position:relative!important;inset:auto!important;display:flex!important}.support-launch.support-docked~.support-panel{left:auto!important;right:22px!important;bottom:232px!important}@media(max-width:560px){.support-launch.support-docked{right:14px!important;bottom:142px!important;width:263px!important;min-height:48px!important;padding:9px 16px!important}}

/* Center the live chat as a modal so the title and close control stay visible. */
.support-chat.support-open:not(.support-embedded)::before{content:"";position:fixed;inset:0;z-index:0;background:rgba(8,28,47,.48);backdrop-filter:blur(2px)}
.support-chat:not(.support-embedded) .support-launch{z-index:1}
.support-chat:not(.support-embedded) .support-panel:not([hidden]){position:fixed!important;top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(460px,calc(100vw - 28px))!important;height:min(700px,calc(100dvh - 28px))!important;max-height:calc(100dvh - 28px)!important;z-index:2;border-radius:18px}
.support-chat:not(.support-embedded) .support-close{display:grid;place-items:center;border:1px solid #ffffff40;background:#ffffff20;color:#fff;font-size:25px!important;line-height:1}
@media(max-width:650px){.support-chat:not(.support-embedded) .support-panel:not([hidden]){width:calc(100vw - 24px)!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;border-radius:16px}}
.contact-actions .support-launch.support-docked{box-sizing:border-box!important;width:220px!important;min-height:46px!important;padding:9px 14px!important;background:linear-gradient(120deg,#0b86d2,#0870bd)!important;box-shadow:0 8px 20px #075b9828!important}
.contact-actions .support-launch.support-docked:hover{background:linear-gradient(120deg,#0878c3,#075da9)!important}
@media(max-width:560px){.contact-actions .support-launch.support-docked{width:210px!important;min-height:42px!important;padding:8px 12px!important}}
.support-admin-tools{flex-wrap:wrap}.support-admin-tools .support-search{display:flex;align-items:center;gap:8px;flex:1 1 280px;min-width:0;max-width:560px;margin:0;color:#658096;font-size:17px}.support-admin-tools .support-search-input{width:100%;min-width:0;min-height:37px;padding:7px 11px;border:1px solid #cbdbe7;border-radius:9px;background:#f8fbfe;color:#24465e;font-size:11px;outline:none}.support-admin-tools .support-search-input:focus{border-color:#4098cb;box-shadow:0 0 0 3px #1684bd1c}.support-conversation-details{display:block!important;margin:5px 0!important;color:#58748a!important;font-size:10px!important;line-height:1.6;white-space:normal;overflow-wrap:anywhere}.support-person{line-height:1.6}
.support-intro{flex:1;min-height:0;overscroll-behavior:contain}.support-chat:not(.support-embedded) .support-intro input{font-size:14px}
@media(max-width:650px){.support-chat:not(.support-embedded) .support-intro input{font-size:16px}}
