.hl-chat{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:70;font-size:14px;line-height:1.5;color:#f7f8fa}.hl-chat [hidden],.chat-admin [hidden],.chat-nav-count[hidden]{display:none!important}.chat-launcher{display:flex;align-items:center;gap:9px;min-height:48px;padding:12px 19px;border:1px solid #f14d69;border-radius:28px;background:#bc1735;color:#fff;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;box-shadow:0 7px 25px #0005;cursor:pointer}.chat-launcher:hover{background:#d0193b}.chat-launcher .icon{width:20px;height:20px}.chat-badge{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;background:#fff;color:#a30e2a;border-radius:20px;font-size:11px}.chat-panel{position:absolute;bottom:62px;right:0;display:flex;flex-direction:column;width:390px;height:min(660px,calc(100dvh - 118px));min-height:300px;overflow:hidden;border:1px solid #424854;border-radius:16px;background:#161b24;box-shadow:0 18px 70px #0007}.chat-header{display:flex;align-items:center;gap:12px;background:#11151c;padding:17px 18px;border-bottom:1px solid #343a46;flex-shrink:0}.chat-header h2{font-size:16px;line-height:1.4;margin:0;font-weight:650;letter-spacing:0}.chat-header p{font-size:11px;color:#b9c0cb;margin:3px 0 0}.chat-monogram{display:grid;place-content:center;grid-auto-flow:column;width:39px;height:39px;border:1px solid #853446;border-radius:11px;font-weight:750;font-size:17px}.chat-monogram>span{color:#f65270}.chat-close{display:grid;place-items:center;border:0;background:transparent;color:#d3d8e0;cursor:pointer;width:32px;height:32px;flex:none;padding:5px;margin-left:auto;border-radius:6px}.chat-close:hover{background:#ffffff15}.chat-close .icon{width:18px;height:18px}.chat-welcome{font-size:12px;line-height:1.6;color:#c2c9d4;margin:0;padding:13px 18px 5px}.chat-messages{overflow:auto;overscroll-behavior:contain;flex:1;min-height:90px;padding:14px 18px;scrollbar-width:thin;scrollbar-color:#596170 transparent;display:flex;flex-direction:column;gap:13px}.chat-message{max-width:92%;flex:none;min-width:90px;align-self:flex-start}.chat-mine{align-self:flex-end}.chat-message-body{white-space:pre-wrap;overflow-wrap:anywhere;padding:11px 13px;border:1px solid #3b4350;border-radius:12px 12px 12px 3px;background:#252d3a;color:#f4f6f9;font-size:14px;line-height:1.65}.chat-mine .chat-message-body{background:#371e29;border-color:#704151;border-radius:12px 12px 3px 12px}.chat-message-meta{display:flex;flex-wrap:wrap;gap:4px 9px;color:#b2bac7;font-size:10px;margin:4px 2px 0}.chat-mine .chat-message-meta{justify-content:flex-end}.chat-receipt{font-weight:650;color:#e0e4eb}.chat-compose{border-top:1px solid #383f4b;padding:13px 16px 15px;flex:none;background:#151a22}.chat-compose textarea{display:block;width:100%;resize:vertical;min-height:64px;max-height:150px;background:#0e131b;border:1px solid #505b6b;color:#f7f8fa;border-radius:9px;font-size:14px;padding:10px 12px;line-height:1.5}.chat-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}.chat-compose-footer small{font-size:10px;color:#b2bac7;max-width:215px;line-height:1.5}.chat-compose .btn{margin:0;white-space:nowrap;min-height:37px;background:#bc1735;border:1px solid #ea385a;color:#fff;font-size:12px;padding:8px 12px;gap:7px}.chat-compose .btn:disabled{opacity:.55}.chat-compose .btn .icon{width:15px;height:15px}.chat-identity{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;margin-bottom:11px}.chat-identity label{display:block;font-size:10px;color:#d1d7e0}.chat-identity input:not([type=checkbox]){width:100%;padding:7px 9px;min-height:34px;font-size:13px;background:#0e131b;border:1px solid #505b6b;border-radius:6px;color:#f7f8fa;margin-top:4px}.chat-identity p{grid-column:1/-1;font-size:10px;color:#b9c2ce;margin:0}.chat-compose .chat-privacy{margin:8px 0 0;font-size:11px;line-height:1.5;color:#b9c2ce;overflow-wrap:anywhere}.chat-privacy a{color:#f1b9c5;text-decoration:underline}.chat-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.chat-connection,.chat-error{font-size:11px;line-height:1.5;margin:0;padding:9px 14px;background:#392831;color:#ffd8e1}.chat-compose .chat-error{margin-top:9px;border-radius:6px}.chat-empty{font-size:12px;color:#aeb8c7;line-height:1.8;text-align:center;margin:auto;padding:20px 10px}.chat-invite{position:absolute;bottom:64px;right:0;width:290px;display:flex;border-radius:12px;padding:12px 14px;background:#f3f3f5;color:#141a23;box-shadow:0 10px 35px #0005;border-top:3px solid #d92146}.chat-invite .chat-close{position:absolute;right:3px;top:4px;color:#66707e;width:27px;height:27px}.chat-invite-text{display:block;width:100%;text-align:left;padding:3px 20px 3px 1px;border:0;background:transparent;cursor:pointer;font-family:inherit;color:inherit}.chat-invite-text strong{display:block;font-size:14px;font-weight:650}.chat-invite-text span{display:block;font-size:12px;color:#4b5666;line-height:1.6;margin-top:4px}.chat-older{display:block;flex:none;text-align:center;font:inherit;font-size:11px;color:#d9dee8;background:transparent;border:0;padding:7px;cursor:pointer;text-decoration:underline}.chat-admin{display:grid;grid-template-columns:minmax(235px,310px) minmax(0,1fr);height:clamp(460px,calc(100dvh - 310px),850px);border:1px solid #3c4350;border-radius:12px;overflow:hidden;background:#171d27}.chat-inbox{display:flex;flex-direction:column;min-height:0;border-right:1px solid #3c4350;background:#131923}.chat-inbox-tools{padding:16px;border-bottom:1px solid #353d49;display:grid;gap:9px}.chat-inbox-tools input,.chat-inbox-tools select{width:100%;min-width:0;font-size:12px}.chat-inbox-list{flex:1;min-height:0;overflow:auto}.chat-inbox-item{display:block;padding:17px 18px;border-bottom:1px solid #2b3340;color:#d6dce5;border-left:3px solid transparent}.chat-inbox-item>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-inbox-item strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}.chat-inbox-item p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.6;color:#afb8c7;margin:7px 0}.chat-inbox-item small{color:#919dac;font-size:10px}.chat-inbox-item.selected{background:#28212c;border-left-color:#ed375b}.chat-inbox-item:hover{background:#242b37}.chat-inbox-item.unread strong{color:white;font-weight:750}.chat-unread-dot{width:7px;height:7px;border-radius:50%;background:#ff5576;flex:none}.chat-pagination{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;border-top:1px solid #353d49;gap:8px;font-size:10px;color:#adb7c5}.chat-pagination button{border:1px solid #4a5464;background:transparent;color:#e1e6ee;border-radius:5px;min-width:29px;min-height:27px;cursor:pointer}.chat-pagination button:disabled{opacity:.3;cursor:default}.chat-admin-thread{min-width:0;min-height:0;display:flex;flex-direction:column}.chat-admin-heading{padding:19px 22px;display:flex;align-items:center;gap:14px;background:#151b24;border-bottom:1px solid #343d4a}.chat-admin-heading>div{flex:1;min-width:0}.chat-admin-heading h2{font-size:18px;margin:0;overflow-wrap:anywhere;line-height:1.5}.chat-admin-heading .btn{padding:7px 11px;min-height:34px;white-space:nowrap}.chat-presence{font-size:11px;color:#bac4d1;margin:3px 0 0}.chat-admin-info{padding:9px 22px;font-size:11px;color:#aeb9c9;display:grid;gap:5px;border-bottom:1px solid #303947;overflow-wrap:anywhere}.chat-admin-info:empty{display:none}.chat-admin-info a{color:#e9bec8}.chat-admin .chat-messages{padding:20px 24px}.chat-admin .chat-compose{padding:17px 22px}.chat-admin .chat-message{max-width:85%}.chat-delete{border:0;background:transparent;color:#c5a4af;width:31px;height:31px;padding:6px;cursor:pointer;flex:none}.chat-delete .icon{width:18px;height:18px}.chat-back{display:none}.chat-nav-count:not([hidden]){background:#c52043;color:#fff}.hl-chat :focus-visible,.chat-admin :focus-visible{outline:2px solid #ff718e;outline-offset:3px}.chat-launcher,.chat-inbox-item{transition:background .15s ease}
@media(max-width:760px){.hl-chat{right:14px;bottom:16px}.application .hl-chat{bottom:82px}.chat-launcher{padding:11px 15px;min-height:44px;font-size:12px}.chat-panel{width:min(390px,calc(100vw - 28px));bottom:57px;height:min(650px,calc(100dvh - 98px))}.application .chat-panel{height:min(650px,calc(100dvh - 164px))}.chat-header{padding:13px 15px}.chat-welcome{padding:10px 15px 3px;font-size:11px}.chat-messages{padding:11px 14px;min-height:65px}.chat-compose{padding:10px 13px}.chat-compose textarea{font-size:16px;min-height:58px}.chat-identity input:not([type=checkbox]){font-size:16px}.chat-message-body{font-size:13px}.chat-admin{grid-template-columns:1fr;height:calc(100dvh - 300px);min-height:400px;border-radius:9px}.chat-admin[data-thread=""] .chat-admin-thread{display:none}.chat-admin:not([data-thread=""]) .chat-inbox{display:none}.chat-inbox{border-right:0}.chat-admin-heading{padding:11px 13px;gap:9px;flex-wrap:wrap}.chat-admin-heading h2{font-size:16px}.chat-back{display:block;font-size:11px;width:100%;color:#c3ccd9}.chat-admin-info{padding:9px 13px;font-size:10px}.chat-admin .chat-messages{padding:14px}.chat-admin .chat-compose{padding:12px}.chat-admin .chat-compose textarea{font-size:16px}.chat-admin .chat-message{max-width:95%}.chat-inbox-tools{padding:12px;grid-template-columns:1fr 120px}.chat-inbox-tools input,.chat-inbox-tools select{font-size:13px}.chat-invite{width:min(290px,calc(100vw - 28px))}}
@media(prefers-reduced-motion:reduce){.chat-launcher,.chat-inbox-item{transition:none}}

@media(max-height:640px){.chat-panel{overflow-y:auto;overscroll-behavior:contain}.chat-panel .chat-welcome{display:none}.chat-panel .chat-messages{min-height:36px;flex:1 0 36px;padding-top:6px;padding-bottom:6px}.chat-panel .chat-empty{padding:3px 0;font-size:11px}.chat-panel .chat-header{padding:10px 13px}.chat-panel .chat-compose{padding:8px 13px}.chat-panel .chat-compose textarea{resize:none;min-height:52px;max-height:78px}}

@media(max-width:760px){.chat-admin-active .app-sidebar{position:static;display:block;height:auto;min-height:0;padding:7px 12px;border-bottom:1px solid #353d49}.chat-admin-active .sidebar-nav{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;gap:4px;overflow-x:auto;scrollbar-width:thin;padding:2px 0}.chat-admin-active .sidebar-nav>a{flex:0 0 91px;min-width:91px;max-width:105px;min-height:54px;padding:7px 5px;font-size:9px;gap:5px}.chat-admin-active .sidebar-label,.chat-admin-active .sidebar-bottom{display:none}.chat-admin-active .app-heading{margin-bottom:15px}.chat-admin-active .app-heading .eyebrow,.chat-admin-active .app-heading p{display:none}.chat-admin-active .app-heading h1{font-size:24px;margin:0}.chat-admin-active .app-main{padding-top:18px}.chat-admin-active .sidebar-nav .chat-nav-count:not([hidden]){display:inline-flex!important;position:absolute;top:1px;right:4px;font-size:9px;min-width:16px;padding:0 4px}.chat-admin-active .sidebar-nav>a{position:relative}.chat-admin-active .chat-admin{height:calc(100dvh - 280px);min-height:400px}}

/* Keep the listing action bar available beside the mobile conversation launcher. */
@media(max-width:760px){.page-listing .hl-chat{bottom:calc(90px + env(safe-area-inset-bottom))}.page-listing .chat-panel{height:min(650px,calc(100dvh - 174px - env(safe-area-inset-bottom)));min-height:min(300px,calc(100dvh - 174px - env(safe-area-inset-bottom)))}}
/* Leave the listing total readable on narrow screens. Keep the label accessible. */
@media(max-width:760px){.page-listing .chat-launcher{position:relative;width:46px;height:46px;min-height:46px;padding:12px;border-radius:50%;justify-content:center}.page-listing .chat-launcher>span:not(.chat-badge){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.page-listing .chat-launcher .chat-badge{position:absolute;right:-5px;top:-6px;min-width:18px;height:18px;padding:0 4px;font-size:10px}}

/* On phones, keep the public contact button in the header so prices and forms stay readable. */
@media (max-width: 760px) {
  .header-tools > .chat-launcher {
    position: relative;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 9px;
    border-radius: 50%;
    box-shadow: none;
  }
  .header-tools > .chat-launcher > span:not(.chat-badge) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .header-tools .chat-badge { position: absolute; top: -4px; right: -5px; }
  .header-tools .chat-launcher [hidden], .public-site > .chat-invite[hidden] { display: none !important; }
  .public-site > .chat-invite { position: relative; inset: auto; width: min(390px, calc(100% - 24px)); margin: 12px auto; }
  .public-site .hl-chat .chat-panel { bottom: 0; min-height: min(300px, calc(100dvh - 96px)); height: min(650px, calc(100dvh - 96px)); }
  .public-site.page-listing .hl-chat .chat-panel { bottom: 0; min-height: min(300px, calc(100dvh - 174px)); height: min(650px, calc(100dvh - 174px)); }
}
