/* JH Defensa Ciudadana — chat humano independiente, fase 1 */
#jhdc-chat-widget,#jhdc-chat-inbox{--jhdc-blue:#2462df;--jhdc-deep:#12264c;--jhdc-border:#e1e8f2;--jhdc-muted:#72829a;--jhdc-text:#263854;font-family:inherit;color:var(--jhdc-text);box-sizing:border-box}
#jhdc-chat-widget *,#jhdc-chat-inbox *,#jhdc-chat-widget *::before,#jhdc-chat-inbox *::before{box-sizing:border-box}
#jhdc-chat-widget{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:2147481000;max-width:calc(100vw - 16px)}
#jhdc-chat-widget.jhdc-chat-operator{bottom:calc(25px + env(safe-area-inset-bottom,0px))}
#jhdc-chat-widget button,#jhdc-chat-inbox button{font-family:inherit;cursor:pointer}
#jhdc-chat-widget button:focus-visible,#jhdc-chat-widget a:focus-visible,#jhdc-chat-widget input:focus-visible,#jhdc-chat-widget textarea:focus-visible,#jhdc-chat-inbox button:focus-visible,#jhdc-chat-inbox a:focus-visible,#jhdc-chat-inbox input:focus-visible,#jhdc-chat-inbox textarea:focus-visible{outline:2px solid #6190f3;outline-offset:2px;box-shadow:none}
#jhdc-chat-widget svg,#jhdc-chat-inbox svg{width:20px;height:20px;display:block;flex:none}
.jhdc-chat-launch{display:flex;align-items:center;gap:11px;min-height:58px;padding:11px 19px 11px 16px;border:0;border-radius:40px;background:linear-gradient(115deg,#1746a5,#2675f5);color:#fff;font-weight:750;font-size:13px;box-shadow:0 13px 32px rgba(20,56,128,.27),0 5px 14px rgba(20,56,128,.14);transition:transform .2s ease,box-shadow .2s ease;letter-spacing:.01em}
.jhdc-chat-launch:hover{transform:translateY(-2px);box-shadow:0 17px 33px rgba(24,70,156,.29)}
.jhdc-chat-launch>svg{width:25px!important;height:25px!important}
.jhdc-chat-launch-count{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:#f65b66;color:#fff;font-size:11px;line-height:1}
.jhdc-chat-launch-count[hidden]{display:none}
.jhdc-chat-widget.is-open>.jhdc-chat-launch{display:none}
.jhdc-chat-panel{background:#fff;border:1px solid rgba(199,213,231,.86);box-shadow:0 25px 80px rgba(12,32,67,.23),0 6px 22px rgba(31,64,106,.09);overflow:hidden;display:flex;position:relative}
.jhdc-chat-panel[hidden]{display:none!important}
.jhdc-chat-guest-panel{width:min(390px,calc(100vw - 16px));height:min(630px,calc(100dvh - 28px));min-height:350px;border-radius:22px;flex-direction:column}
.jhdc-chat-head{min-height:78px;padding:16px 17px;display:flex;align-items:center;gap:12px;background:linear-gradient(112deg,#142b55 3%,#2859b7 95%);color:#fff}
.jhdc-chat-brand-icon{width:42px;height:42px;border-radius:15px;background:rgba(255,255,255,.15);display:grid;place-items:center;flex:none}
.jhdc-chat-brand-icon svg{width:24px!important;height:24px!important}
.jhdc-chat-head-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.jhdc-chat-head-info strong{font-size:15px;line-height:1.2;color:white}
.jhdc-chat-head-info small{font-size:11px;display:flex;align-items:center;gap:6px;color:#dce9ff}
.jhdc-chat-head-info i{width:7px;height:7px;display:inline-block;border-radius:50%;background:#55e6ae;box-shadow:0 0 0 3px rgba(85,230,174,.12)}
.jhdc-chat-icon-btn{padding:7px!important;display:grid;place-items:center;flex:none;background:transparent!important;border:0!important;color:inherit!important;box-shadow:none!important;border-radius:9px}
.jhdc-chat-icon-btn:hover{background:rgba(255,255,255,.11)!important}
.jhdc-chat-intro{padding:11px 17px 12px;background:#f4f8ff;border-bottom:1px solid #e2eaf8;display:grid;gap:2px}
.jhdc-chat-intro strong{font-size:12px;color:#274779;letter-spacing:.01em}
.jhdc-chat-intro span{font-size:11px;color:#7487a2}
.jhdc-chat-thread{min-height:0;flex:1;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overscroll-behavior:contain;padding:18px 16px 22px;background:linear-gradient(160deg,#f8faff,#f0f5fd);scroll-behavior:smooth}
.jhdc-chat-msg{display:flex;flex-direction:column;gap:3px;align-items:flex-start;max-width:88%;min-width:0;overflow-wrap:anywhere}
.jhdc-chat-msg-content{background:white;border:1px solid #e4eaf4;color:#33435f;padding:10px 13px;border-radius:16px 16px 16px 5px;font-size:12.5px;line-height:1.55;box-shadow:0 3px 10px rgba(28,62,112,.025);white-space:normal}
.jhdc-chat-msg.is-visitor{align-self:flex-end;align-items:flex-end}
.jhdc-chat-msg.is-visitor .jhdc-chat-msg-content{background:linear-gradient(145deg,#2e70ea,#2059cf);color:#fff;border:0;border-radius:16px 16px 5px 16px}
.jhdc-chat-msg.is-system{align-self:center;max-width:96%;margin-bottom:8px;align-items:center;text-align:center}
.jhdc-chat-msg.is-system .jhdc-chat-msg-content{border:1px solid #d5e3f9;background:rgba(234,242,255,.91);color:#58749e;box-shadow:none;font-size:11.5px;border-radius:13px}
.jhdc-chat-msg time{font-size:9px;color:#90a0b7;padding:0 5px;font-weight:550}
.jhdc-chat-msg-content a{color:inherit;text-decoration:underline;overflow-wrap:anywhere;font-weight:750}
.jhdc-chat-guest-bottom{background:#fff;border-top:1px solid var(--jhdc-border);flex:none}
.jhdc-chat-consent{display:grid;gap:8px;padding:11px 14px 0}
.jhdc-chat-consent[hidden]{display:none}
.jhdc-chat-name{width:100%;min-height:36px;border:1px solid #e0e9f5!important;border-radius:10px!important;background:#f8faff!important;padding:7px 10px!important;color:#2b4161!important;font-size:12px!important;box-shadow:none!important}
.jhdc-chat-consent label{font-size:10.3px;color:#6a7e99;line-height:1.4;display:flex;gap:7px;align-items:flex-start;cursor:pointer}
.jhdc-chat-consent input[type=checkbox]{appearance:auto;flex:none;width:14px!important;height:14px!important;min-width:14px!important;margin:0!important;accent-color:#2464d7;box-shadow:none!important}
.jhdc-chat-consent a{color:#2963cb!important;font-weight:700}
.jhdc-chat-compose{padding:11px 13px 5px;display:flex;gap:9px;align-items:flex-end;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.jhdc-chat-compose textarea{width:100%;flex:1;min-width:0;min-height:42px!important;max-height:110px;resize:none;overflow-y:auto;border:1px solid #e0e7f3!important;border-radius:15px!important;background:#f6f8fc!important;padding:11px 13px!important;color:#2b3852!important;font-size:12.5px!important;line-height:1.5!important;box-shadow:none!important;margin:0!important;font-family:inherit!important}
.jhdc-chat-compose textarea:focus{border-color:#9fbef6!important;background:white!important;box-shadow:none!important;outline:0!important}
.jhdc-chat-compose textarea::placeholder{color:#9ba8bb}
.jhdc-chat-send{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:14px!important;border:0!important;background:linear-gradient(135deg,#2a6fe7,#2057c9)!important;color:#fff!important;padding:0!important;box-shadow:0 7px 16px rgba(39,102,220,.2)!important}
.jhdc-chat-send:disabled{opacity:.48;cursor:default}
.jhdc-chat-send svg{width:18px!important;height:18px!important}
.jhdc-chat-footer-note{text-align:center;font-size:9px;color:#8c9bb2;padding:2px 4px 9px;line-height:1.4}
.jhdc-chat-wait{font-size:12px;color:#8392a9;text-align:center;margin:auto}
.jhdc-chat-notice{position:absolute;left:12px;right:12px;bottom:65px;background:#263d61;color:#fff;font-size:11.5px;padding:10px 13px;border-radius:12px;box-shadow:0 9px 19px rgba(11,28,52,.22);z-index:3}
.jhdc-chat-notice[hidden]{display:none}

/* Super Admin · inbox y bandeja flotante */
#jhdc-chat-inbox{width:100%;max-width:100%;min-height:570px;background:transparent;padding:0!important;margin:0!important;}
.jhdc-chat-team-panel{height:min(680px,calc(100dvh - 36px));width:min(940px,calc(100vw - 24px));border-radius:20px;flex-direction:row}
.jhdc-chat-team-panel.is-page{position:relative;width:100%;min-height:590px;height:min(745px,calc(100dvh - 105px));border-radius:19px;box-shadow:0 10px 28px rgba(31,64,106,.08)}
.jhdc-chat-sidebar{width:335px;max-width:43%;flex:none;display:flex;flex-direction:column;min-height:0;background:#fff;border-right:1px solid var(--jhdc-border)}
.jhdc-chat-sidebar-head{padding:19px 18px 13px;display:flex;justify-content:space-between;gap:12px;align-items:start;background:linear-gradient(180deg,#f8fbff,#fff)}
.jhdc-chat-kicker{color:#5074b4;text-transform:uppercase;font-weight:800;letter-spacing:.1em;font-size:9px}
.jhdc-chat-sidebar-head h2{display:flex;align-items:center;gap:9px;margin:4px 0!important;font-size:21px!important;line-height:1.3!important;letter-spacing:-.04em;color:#203a68!important;font-weight:800!important}
.jhdc-chat-sidebar-head h2 small{font-size:10px;background:#e8f0fc;color:#4271b5;border-radius:99px;padding:3px 7px;font-weight:800;letter-spacing:0}
.jhdc-chat-sidebar-head p{font-size:10.5px;color:#8698b1;margin:0!important}
.jhdc-chat-sidebar-head .jhdc-chat-icon-btn{color:#5c6b86!important}
.jhdc-chat-searchbox{margin:5px 14px 12px;display:flex;gap:8px;align-items:center;background:#f3f6fb;border:1px solid transparent;border-radius:11px;padding:8px 11px;min-height:36px}
.jhdc-chat-searchbox svg{width:15px!important;height:15px!important;color:#8b9aaf}
.jhdc-chat-searchbox input{background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;width:100%;min-width:0;font-size:11.5px!important;color:#344662!important;padding:0!important;margin:0!important;min-height:unset!important}
.jhdc-chat-searchbox input:focus{border:0!important;box-shadow:none!important}
.jhdc-chat-tabs{padding:0 13px 11px;display:flex;gap:4px;border-bottom:1px solid #ebf0f7}
.jhdc-chat-tabs button{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:9px!important;padding:7px 10px!important;color:#8493a8!important;font-size:10.5px!important;font-weight:720!important}
.jhdc-chat-tabs button.is-active{background:#e9f0fd!important;color:#2b67d3!important}
.jhdc-chat-people{overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}
.jhdc-chat-person{width:100%;text-align:left;display:flex;align-items:center;gap:10px;min-height:76px;padding:12px 13px!important;border:0!important;border-bottom:1px solid #f2f5fa!important;background:#fff!important;color:inherit!important;box-shadow:none!important;border-radius:0!important}
.jhdc-chat-person:hover{background:#f6f9ff!important}
.jhdc-chat-person.is-selected{background:#eef5ff!important;box-shadow:inset 3px 0 #2f76ee!important}
.jhdc-chat-avatar{display:grid;place-items:center;flex:none;width:41px;height:41px;border-radius:16px;background:linear-gradient(140deg,#e1eaff,#cedefb);color:#3b62ab;font-size:14px;font-weight:800}
.jhdc-chat-avatar.is-small{width:38px;height:38px;border-radius:13px}
.jhdc-chat-person-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px;text-align:left}
.jhdc-chat-person-main strong{font-size:11.5px;color:#2b3f60;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:780}
.jhdc-chat-person-main small{font-size:10px;color:#90a0b3;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:480}
.jhdc-chat-person-side{display:flex;flex:none;flex-direction:column;align-items:end;gap:6px;min-height:38px}
.jhdc-chat-person-side time{font-size:9px;color:#9ba8b9}
.jhdc-chat-person-side b{min-width:19px;height:19px;display:grid;place-items:center;background:#2c70e8;color:#fff;font-size:9px;border-radius:999px}
.jhdc-chat-noresults{padding:32px 20px;text-align:center;color:#9ba6b6;font-size:11.5px;line-height:1.6}
.jhdc-chat-sidebar-foot{padding:10px 14px;display:flex;gap:7px;align-items:center;font-size:9.5px;color:#98a5b6;border-top:1px solid #edf1f6}
.jhdc-chat-sidebar-foot svg{color:#4d9e85;width:13px!important;height:13px!important}
.jhdc-chat-detail{flex:1;min-width:0;display:flex;flex-direction:column;background:#f7faff}
.jhdc-chat-empty{margin:auto;max-width:290px;text-align:center;padding:27px;color:#6b7d9b}
.jhdc-chat-empty span{width:69px;height:69px;margin:0 auto 16px;border-radius:24px;display:grid;place-items:center;background:#e8f0ff;color:#376ed0}
.jhdc-chat-empty span svg{width:31px!important;height:31px!important}
.jhdc-chat-empty h3{font-size:18px!important;color:#2e4670!important;line-height:1.35!important;margin:0 0 8px!important;font-weight:800!important}
.jhdc-chat-empty p{font-size:11.5px;line-height:1.7;color:#8b9db4;margin:0!important}
.jhdc-chat-conversation-head{height:70px;padding:12px 17px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #e1e9f4;background:#fff;flex:none}
.jhdc-chat-conversation-head>div{display:grid;gap:4px;flex:1;min-width:0}
.jhdc-chat-conversation-head strong{font-size:12px;font-weight:800;color:#28446d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jhdc-chat-conversation-head small{color:#83a0ba;font-size:10px}
.jhdc-chat-close-convo{border:1px solid #d9e5f4!important;border-radius:9px!important;padding:7px 10px!important;font-size:10px!important;color:#5272a4!important;background:#f6faff!important;box-shadow:none!important;white-space:nowrap}
.jhdc-chat-operator-thread{padding:18px 21px;gap:11px}
.jhdc-chat-team-compose{border-top:1px solid #e5ebf5!important;padding:9px 15px 14px;flex-direction:column;align-items:stretch;gap:8px;background:#fff!important}
.jhdc-chat-quick{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
.jhdc-chat-quick button{display:flex;align-items:center;gap:5px;border:0!important;background:#eef5ff!important;color:#3168ca!important;padding:6px 10px!important;border-radius:9px!important;font-size:10px!important;font-weight:750!important;box-shadow:none!important}
.jhdc-chat-quick button svg{width:13px!important;height:13px!important}
.jhdc-chat-quick span{font-size:9.5px;color:#a0abc0;white-space:nowrap}
.jhdc-chat-compose-row{display:flex;align-items:flex-end;gap:9px;width:100%}
.jhdc-chat-back{display:none!important}
.jhdc-chat-restricted{max-width:450px;padding:26px}
@media(max-width:760px){
 #jhdc-chat-widget{right:9px;bottom:calc(88px + env(safe-area-inset-bottom,0px))}
 #jhdc-chat-widget.jhdc-chat-visitor{bottom:calc(23px + env(safe-area-inset-bottom,0px))}
 .jhdc-chat-launch{width:58px;height:58px;min-height:unset;border-radius:19px!important;justify-content:center;padding:0}
 .jhdc-chat-launch>span{display:none}
 .jhdc-chat-launch-count{position:absolute;top:-7px;right:-5px}
 .jhdc-chat-widget.is-open .jhdc-chat-panel{position:fixed;left:7px;right:7px;bottom:calc(7px + env(safe-area-inset-bottom,0px));width:auto;max-width:none;height:min(740px,calc(100dvh - 15px - env(safe-area-inset-bottom,0px)));border-radius:21px}
 .jhdc-chat-guest-panel .jhdc-chat-thread{padding-bottom:12px}
 #jhdc-chat-inbox{min-height:500px}
 .jhdc-chat-team-panel{width:calc(100vw - 14px)}
 .jhdc-chat-team-panel.is-page{height:calc(100dvh - 135px);min-height:460px}
 .jhdc-chat-sidebar{width:100%;max-width:none}
 .jhdc-chat-detail{display:none}
 .jhdc-chat-team-panel.is-detail .jhdc-chat-sidebar{display:none}
 .jhdc-chat-team-panel.is-detail .jhdc-chat-detail{display:flex;width:100%}
 .jhdc-chat-back{display:grid!important;color:#46628e!important;margin-left:-7px}
 .jhdc-chat-conversation-head{padding:10px 12px;height:66px}
 .jhdc-chat-operator-thread{padding:17px 14px}
 .jhdc-chat-quick span{display:none}
}
@media(max-width:390px){.jhdc-chat-team-panel.is-page{height:calc(100dvh - 105px)}.jhdc-chat-intro{padding:8px 14px}.jhdc-chat-consent{padding-top:8px}.jhdc-chat-head{min-height:70px}}
@media(prefers-reduced-motion:reduce){.jhdc-chat-launch,.jhdc-chat-thread{transition:none!important;scroll-behavior:auto}}
.jhdc-chat-retention{padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #edf2f8;background:#fcfdff}
.jhdc-chat-retention label{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:9px;color:#8a9ab2;line-height:1.35}
.jhdc-chat-retention select{font-family:inherit;font-size:9px;background:transparent;border:0;color:#476aa8;font-weight:800;padding:0 2px;max-width:72px}
.jhdc-chat-retention button{padding:4px 7px!important;background:#eaf1fd!important;border:0!important;border-radius:7px!important;box-shadow:none!important;font-size:9px!important;color:#2d62ba!important;font-weight:750!important}

/* v1.0.1 · Acceso visible y separado del Agente 89 (burbuja derecha inferior). */
#jhdc-chat-widget{z-index:2147481500!important}
#jhdc-chat-widget.jhdc-chat-operator{right:20px;bottom:calc(112px + env(safe-area-inset-bottom,0px))!important}
#jhdc-chat-widget.jhdc-chat-visitor{right:20px;bottom:calc(112px + env(safe-area-inset-bottom,0px))!important}
#jhdc-chat-widget .jhdc-chat-team-panel:not(.is-page){height:min(680px,calc(100dvh - 136px))}
#jhdc-chat-widget>.jhdc-chat-launch{position:relative!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
#jhdc-chat-widget.is-open>.jhdc-chat-launch{display:none!important}
#jhdc-chat-widget .jhdc-chat-fallback{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 16px;border-radius:28px;background:#1c60d5;color:#fff;font-weight:700;text-decoration:none;box-shadow:0 12px 30px rgba(16,53,128,.26)}
@media(max-width:760px){
  #jhdc-chat-widget.jhdc-chat-operator,
  #jhdc-chat-widget.jhdc-chat-visitor{right:10px;bottom:calc(154px + env(safe-area-inset-bottom,0px))!important}
  #jhdc-chat-widget .jhdc-chat-team-panel:not(.is-page){height:min(680px,calc(100dvh - 20px))}
}


/* v1.0.2 — Burbuja de la bandeja Super Admin compacta por defecto.
   El texto aparece al pasar el cursor o enfocar mediante teclado.
   El visitante mantiene su burbuja original. */
#jhdc-chat-widget.jhdc-chat-operator > .jhdc-chat-launch {
  width: 56px!important; height: 56px!important; min-width: 56px!important; min-height: 56px!important;
  max-width: calc(100vw - 24px); padding: 0 15px!important; gap: 0!important;
  border-radius: 999px!important; white-space: nowrap; justify-content: flex-start;
  overflow: visible; position: relative;
  transition: width .26s ease, transform .2s ease, box-shadow .2s ease!important;
}
#jhdc-chat-widget.jhdc-chat-operator > .jhdc-chat-launch > svg {
  flex: 0 0 25px!important; width:25px!important;height:25px!important;
}
#jhdc-chat-widget.jhdc-chat-operator > .jhdc-chat-launch > span {
  display:block!important; max-width:0; width:0; opacity:0; overflow:hidden;
  pointer-events:none; font-size:13px; color:#fff; font-weight:750;
  transition:max-width .25s ease,opacity .16s ease,margin .25s ease;
}
#jhdc-chat-widget.jhdc-chat-operator > .jhdc-chat-launch > .jhdc-chat-launch-count {
  position:absolute;top:-6px;right:-5px;z-index:1;
}
@media (hover:hover) and (pointer:fine) {
  #jhdc-chat-widget.jhdc-chat-operator > .jhdc-chat-launch:hover {width:175px!important;}
  #jhdc-chat-widget.jhdc-chat-operator > .jhdc-chat-launch:hover > span {
    max-width:110px; width:110px; opacity:1; margin-left:9px;
  }
}
#jhdc-chat-widget.jhdc-chat-operator > .jhdc-chat-launch:focus-visible {width:175px!important;}
#jhdc-chat-widget.jhdc-chat-operator > .jhdc-chat-launch:focus-visible > span {
  max-width:110px; width:110px; opacity:1; margin-left:9px;
}
/* Cierre auxiliar visible del recorrido de Agente 89.
   No modifica los estilos originales ni interfiere cuando está cerrado. */
.dc-aiah-onboarding-widget > .jhdc-agent89-dismiss {display:none!important;}
.dc-aiah-onboarding-widget.is-open > .jhdc-agent89-dismiss {
  display:inline-flex!important;align-items:center;justify-content:center;gap:6px;
  position:fixed!important; top:max(12px,env(safe-area-inset-top,12px));right:14px;z-index:10000;
  min-height:36px!important;padding:7px 13px!important;border-radius:999px!important;
  border:1px solid #dae5f4!important;background:#fff!important;color:#284b84!important;
  font-family:inherit!important;font-weight:700!important;font-size:12px!important;line-height:1.3!important;box-shadow:0 7px 22px rgba(17,43,85,.18)!important;cursor:pointer;
}
.dc-aiah-onboarding-widget.is-open > .jhdc-agent89-dismiss:hover {background:#f0f5ff!important;}
.dc-aiah-onboarding-widget.is-open > .jhdc-agent89-dismiss:focus-visible {outline:2px solid #2462df;outline-offset:3px;}
@media (prefers-reduced-motion:reduce) {
  #jhdc-chat-widget.jhdc-chat-operator > .jhdc-chat-launch,
  #jhdc-chat-widget.jhdc-chat-operator > .jhdc-chat-launch > span {transition:none!important;}
}


/* v1.0.3 — La asesoría pública funciona como ventana prioritaria;
   se libera del stacking context del shell y mantiene el contenido
   dentro del viewport visible (escritorio y PWA móvil). */
#jhdc-chat-widget.jhdc-chat-visitor{
  right:clamp(12px,2vw,28px)!important;
  bottom:calc(20px + env(safe-area-inset-bottom,0px))!important;
  z-index:2147483646!important;
}
html.jhdc-chat-modal-open{overflow:hidden!important;}
#jhdc-chat-widget.jhdc-chat-visitor.is-open{
  position:fixed!important;inset:0!important;right:0!important;bottom:0!important;
  max-width:none!important;width:100vw!important;height:100dvh!important;
  padding:max(12px,env(safe-area-inset-top,0px)) 12px max(12px,env(safe-area-inset-bottom,0px))!important;
  background:rgba(11,25,49,.52)!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  overflow:hidden;isolation:isolate;
}
#jhdc-chat-widget.jhdc-chat-visitor.is-open > .jhdc-chat-guest-panel{
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  display:flex!important;transform:none!important;
  width:min(470px,100%)!important;max-width:100%!important;
  height:min(720px,calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)))!important;
  max-height:100%!important;min-height:0!important;
  margin:0 auto!important;border-radius:21px!important;
  z-index:2!important;
  box-shadow:0 32px 95px rgba(7,24,56,.39)!important;
}
#jhdc-chat-widget.jhdc-chat-visitor .jhdc-chat-guest-bottom{position:relative;}
#jhdc-chat-widget.jhdc-chat-visitor .jhdc-chat-consent-popover{
  position:absolute;left:12px;right:12px;bottom:calc(100% - 3px);
  z-index:12;border:1px solid #cedcf2;border-radius:15px;
  background:#fff;box-shadow:0 16px 50px rgba(19,44,92,.24);
  padding:15px;display:grid;gap:9px;color:#304668;
  max-height:min(330px,calc(100dvh - 155px));overflow-y:auto;
}
#jhdc-chat-widget.jhdc-chat-visitor .jhdc-chat-consent-popover[hidden]{display:none!important;}
.jhdc-chat-consent-popover strong{font-size:14px;color:#213d69;font-weight:800;line-height:1.3;}
.jhdc-chat-consent-popover p{font-size:12px;color:#637996;line-height:1.45;margin:0;}
.jhdc-chat-consent-popover label{display:flex;align-items:flex-start;gap:9px;font-size:11.5px;line-height:1.4;cursor:pointer;}
.jhdc-chat-consent-popover input[type=checkbox]{appearance:auto;accent-color:#2462df;flex:none;width:17px!important;height:17px!important;margin:0!important;}
.jhdc-chat-consent-popover a{color:#245ece!important;font-weight:700;}
.jhdc-chat-consent-actions{display:flex;gap:9px;justify-content:flex-end;align-items:center;margin-top:3px;}
.jhdc-chat-consent-actions button{border:1px solid #dbe4f1!important;border-radius:10px!important;padding:9px 12px!important;font-size:11px!important;font-weight:750!important;box-shadow:none!important;}
.jhdc-chat-cancel-consent{background:#f7f9fd!important;color:#627897!important;}
.jhdc-chat-accept-send{background:#2462df!important;color:#fff!important;border-color:#2462df!important;}
.jhdc-chat-accept-send:disabled{opacity:.45;cursor:default;}
#jhdc-chat-widget .jhdc-chat-send.needs-consent{opacity:.55;cursor:pointer;}
#jhdc-chat-widget .jhdc-chat-send:disabled{opacity:.42;cursor:default;}
@media (max-width:760px){
 #jhdc-chat-widget.jhdc-chat-visitor{right:12px!important;bottom:calc(20px + env(safe-area-inset-bottom,0px))!important;}
 #jhdc-chat-widget.jhdc-chat-visitor.is-open > .jhdc-chat-guest-panel{
   width:100%!important;height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;
   max-width:510px!important;max-height:100%!important;border-radius:18px!important;
 }
 #jhdc-chat-widget.jhdc-chat-visitor .jhdc-chat-consent-popover{padding:12px;gap:8px;}
}
@media (max-height:620px){
 #jhdc-chat-widget.jhdc-chat-visitor.is-open > .jhdc-chat-guest-panel{height:calc(100dvh - 20px)!important;}
 #jhdc-chat-widget.jhdc-chat-visitor .jhdc-chat-head{min-height:60px;padding:9px 13px;}
 #jhdc-chat-widget.jhdc-chat-visitor .jhdc-chat-intro{padding:7px 12px;}
 #jhdc-chat-widget.jhdc-chat-visitor .jhdc-chat-consent{padding:7px 12px 0;gap:5px;}
}


/* v1.0.4 · Preferencias discretas de conservación y eliminación manual confirmada */
.jhdc-chat-retention{padding:12px 14px!important;display:grid!important;gap:10px!important;border-top:1px solid #eaf0f8!important;background:linear-gradient(180deg,#f9fbff 0%,#fff 100%)!important}
.jhdc-chat-retention-title{display:flex;align-items:center;gap:9px;min-width:0}
.jhdc-chat-retention-icon{width:31px;height:31px;border-radius:10px;background:#eaf2ff;color:#386dcc;display:grid;place-items:center;flex:none}
.jhdc-chat-retention-icon svg{width:16px!important;height:16px!important}
.jhdc-chat-retention-title>div{display:grid;gap:2px;min-width:0}
.jhdc-chat-retention-title strong{font-size:11.5px!important;font-weight:790!important;color:#294569!important;line-height:1.3}
.jhdc-chat-retention-title small{font-size:9.5px!important;color:#8999ad!important;line-height:1.35}
.jhdc-chat-retention-controls{display:flex;align-items:center;gap:8px;min-width:0}
.jhdc-chat-retention-controls label{font-size:10px!important;color:#7588a3!important;flex:1;min-width:0;white-space:nowrap;font-weight:500}
.jhdc-chat-retention-controls select{appearance:auto!important;flex:none;font-size:10px!important;color:#2c5187!important;background:#fff!important;border:1px solid #dbe5f3!important;min-width:77px!important;max-width:85px!important;height:33px!important;padding:4px 6px!important;border-radius:10px!important;line-height:1.2!important;box-shadow:none!important}
.jhdc-chat-retention-controls button{flex:none;border:1px solid #cfdff7!important;border-radius:9px!important;background:#eaf2ff!important;color:#2c65c6!important;font-size:10px!important;font-weight:760!important;padding:8px 10px!important;min-height:33px!important;box-shadow:none!important;white-space:nowrap}
.jhdc-chat-retention-controls button:hover{background:#dceaff!important}
.jhdc-chat-delete-btn{width:34px!important;height:34px!important;min-width:34px!important;padding:8px!important;display:grid!important;place-items:center;border-radius:10px!important;border:1px solid #f0d6d7!important;color:#b35461!important;background:#fff6f6!important;box-shadow:none!important;flex:none}
.jhdc-chat-delete-btn svg{width:16px!important;height:16px!important}
.jhdc-chat-delete-btn:hover{background:#fee9e9!important;color:#9b3547!important}
.jhdc-chat-confirm[hidden]{display:none!important}
.jhdc-chat-confirm{position:absolute;inset:0;z-index:18;background:rgba(22,39,70,.39);display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(3px)}
.jhdc-chat-confirm-card{width:min(355px,100%);background:#fff;border:1px solid #e1e9f5;border-radius:19px;padding:22px;box-shadow:0 26px 74px rgba(14,38,76,.26);display:grid;gap:11px;color:#334965}
.jhdc-chat-confirm-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#fff0f0;color:#bd4c5b}
.jhdc-chat-confirm-icon svg{width:21px!important;height:21px!important}
.jhdc-chat-confirm-card h3{font-size:18px!important;line-height:1.25!important;margin:0!important;color:#263d60!important;font-weight:790!important}
.jhdc-chat-confirm-card p{font-size:11.5px!important;color:#77879e!important;line-height:1.6!important;margin:0!important}
.jhdc-chat-confirm-card p strong{color:#2b466f!important;font-weight:780!important;overflow-wrap:anywhere}
.jhdc-chat-confirm-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:9px}
.jhdc-chat-confirm-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px!important;padding:8px 12px!important;border-radius:10px!important;border:1px solid #dae3f0!important;font-size:11px!important;font-weight:760!important;box-shadow:none!important;white-space:nowrap}
.jhdc-chat-confirm-actions [data-cancel-delete]{background:#f7f9fd!important;color:#5b6e8d!important}
.jhdc-chat-confirm-actions [data-confirm-delete]{background:#bb4350!important;color:#fff!important;border-color:#bb4350!important}
.jhdc-chat-confirm-actions [data-confirm-delete]:disabled{opacity:.5}
.jhdc-chat-confirm-actions [data-confirm-delete] svg{width:15px!important;height:15px!important}
@media(max-width:760px){.jhdc-chat-conversation-head{gap:6px}.jhdc-chat-close-convo{padding:7px 8px!important}.jhdc-chat-delete-btn{width:32px!important;min-width:32px!important;height:32px!important;padding:7px!important}.jhdc-chat-confirm-card{padding:18px}.jhdc-chat-retention{padding:12px!important}}


/* v1.0.5 · Presencia transitoria, indicador de escritura y selección clara */
.jhdc-chat-substatus.is-online{color:#20876a!important;font-weight:650}
.jhdc-chat-substatus.is-online::first-letter{color:#2ba978}
.jhdc-chat-person-main small.is-typing-preview{color:#16816a!important;font-weight:760}
.jhdc-chat-presence-row{padding:2px 0 0;font-size:10px;line-height:1.3;color:#16866d;font-weight:750}
.jhdc-chat-presence-row[hidden],.jhdc-chat-typing[hidden]{display:none!important}
.jhdc-chat-typing{display:flex;align-items:center;gap:4px;flex:none;width:max-content;max-width:calc(100% - 32px);color:#5c789f;font-size:10px;font-weight:700;line-height:1.3;border-radius:14px 14px 14px 4px;background:#fff;border:1px solid #dae4f3;padding:7px 12px;margin:0 16px 8px;box-shadow:0 4px 12px rgba(31,62,112,.06)}
.jhdc-chat-typing i{width:5px;height:5px;display:block;border-radius:50%;background:#477ad5;animation:jhdc-chat-dot 1.15s infinite ease-in-out;opacity:.35}
.jhdc-chat-typing i:nth-of-type(2){animation-delay:.15s}
.jhdc-chat-typing i:nth-of-type(3){animation-delay:.30s}
@keyframes jhdc-chat-dot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.jhdc-chat-person-side .jhdc-chat-unread{box-shadow:0 0 0 3px #e4efff}
.jhdc-chat-sidebar{cursor:default}
@media(prefers-reduced-motion:reduce){.jhdc-chat-typing i{animation:none}}

/* v1.0.6 · Estados de presencia honestos, edición y eliminación individual. */
.jhdc-chat-head-info .jhdc-chat-public-presence[hidden]{display:none!important}
.jhdc-chat-head-info .jhdc-chat-public-presence{color:#d1ffeb;font-size:11px;font-weight:680}
.jhdc-chat-msg-meta{display:flex;gap:5px;align-items:center;min-height:19px}
.jhdc-chat-msg-meta small{font-size:9px;color:#8d9ab1}
.jhdc-chat-msg-more{background:transparent!important;color:#8294b3!important;border:0!important;box-shadow:none!important;display:grid;place-items:center;padding:2px 4px!important;border-radius:6px!important;width:24px;height:22px;opacity:.5}
.jhdc-chat-msg:hover .jhdc-chat-msg-more,.jhdc-chat-msg-more:focus-visible{opacity:1}
.jhdc-chat-msg-more svg{width:17px!important;height:17px!important}
.jhdc-chat-msg-actions{display:flex;flex-wrap:wrap;gap:4px;background:#fff;border:1px solid #dfe7f5;box-shadow:0 5px 14px #1a457016;padding:5px;border-radius:10px;max-width:240px}
.jhdc-chat-msg-actions[hidden]{display:none!important}
.jhdc-chat-msg-actions button{border:0!important;border-radius:7px!important;padding:6px 8px!important;background:#f4f7fd!important;color:#31517f!important;font-size:10px!important;box-shadow:none!important;white-space:nowrap}
.jhdc-chat-msg-actions button:hover{background:#e4efff!important}
.jhdc-chat-msg.is-removed .jhdc-chat-msg-content{background:#f4f6f9!important;color:#91a0b2!important;border:1px dashed #d1dbe9!important;box-shadow:none;font-style:italic}
.jhdc-chat-msg-editor{display:block;min-width:min(260px,64vw);min-height:70px;width:100%;font-family:inherit!important;font-size:12px!important;padding:7px!important;background:#fff!important;color:#293d5f!important;border:1px solid #c9d8ed!important;border-radius:8px!important;resize:vertical}
.jhdc-chat-msg-edit-actions{display:flex;gap:7px;justify-content:end;margin-top:7px}
.jhdc-chat-msg-edit-actions button,.jhdc-chat-msg-confirm button{border-radius:7px!important;padding:5px 8px!important;font-size:10px!important;border:1px solid #d1ddec!important;background:#f5f8fe!important;color:#255ac1!important;box-shadow:none!important}
.jhdc-chat-msg-edit-actions [data-msg-save],.jhdc-chat-msg-confirm [data-msg-confirm-yes]{background:#2369db!important;color:white!important;border-color:#2369db!important}
.jhdc-chat-msg-confirm{display:flex;align-items:center;gap:5px;padding:6px;border-radius:8px;border:1px solid #f1d4d4;background:#fff8f8;color:#8d3f48;font-size:10px;flex-wrap:wrap}
.jhdc-chat-pdf-menu{position:relative;flex:none}
.jhdc-chat-pdf-btn{display:grid;place-items:center;width:33px;height:33px;padding:6px!important;border:1px solid #d9e5f4!important;background:#f7faff!important;border-radius:10px!important;color:#3666ad!important;box-shadow:none!important}
.jhdc-chat-pdf-btn svg{width:17px!important;height:17px!important}
.jhdc-chat-pdf-options{position:absolute;right:0;top:38px;z-index:4;display:grid;gap:4px;padding:6px;min-width:198px;background:white;border-radius:12px;border:1px solid #dde8f5;box-shadow:0 12px 33px #233c5f36}
.jhdc-chat-pdf-options[hidden]{display:none!important}
.jhdc-chat-pdf-options button{display:block;text-align:left;white-space:nowrap;border:0!important;background:#f5f8fe!important;color:#315583!important;border-radius:8px!important;padding:9px!important;font-size:10.5px!important;box-shadow:none!important}
.jhdc-chat-pdf-options button:hover{background:#e5efff!important}
@media(max-width:760px){
 .jhdc-chat-conversation-head{gap:6px}
 .jhdc-chat-conversation-head .jhdc-chat-avatar{display:none}
 .jhdc-chat-conversation-head>div:not(.jhdc-chat-pdf-menu){min-width:62px}
 .jhdc-chat-close-convo{max-width:112px;overflow:hidden;text-overflow:ellipsis;padding:6px!important;font-size:9px!important}
 .jhdc-chat-delete-btn{width:31px!important;height:31px!important}
 .jhdc-chat-msg-editor{min-width:min(240px,65vw)}
}

/* v1.0.7 · Estado individual de cada visitante y acuses de recibo verificables */
.jhdc-chat-person-identity{display:flex;align-items:center;gap:7px;min-width:0;max-width:100%;flex-wrap:wrap}
.jhdc-chat-person-identity strong{min-width:0;flex:none;max-width:58%;font-size:11.5px!important}
.jhdc-chat-person-presence{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:100%;font-size:9px!important;line-height:1.4;font-weight:570;color:#8a98a9;white-space:nowrap;overflow:hidden}
.jhdc-chat-person-presence>span{overflow:hidden;text-overflow:ellipsis}
.jhdc-chat-person-presence i{width:6px;height:6px;flex:none;border-radius:50%;background:#e3a15a;box-shadow:0 0 0 2px #fff1e4}
.jhdc-chat-person-presence.is-online{color:#138760;font-weight:730}
.jhdc-chat-person-presence.is-online i{background:#25b97c;box-shadow:0 0 0 2px #e0f8ec}
.jhdc-chat-person-main{gap:4px}
.jhdc-chat-substatus.is-away{color:#9a7548!important;font-size:9px!important;font-weight:540!important}
.jhdc-chat-substatus.is-away::before,.jhdc-chat-substatus.is-online::before{content:"";display:inline-block;vertical-align:middle;width:6px;height:6px;border-radius:50%;background:#e6a057;margin-right:5px;margin-top:-1px}
.jhdc-chat-substatus.is-online::before{background:#21b97b}
.jhdc-chat-receipt{display:inline-flex;align-items:center;vertical-align:middle;line-height:0;margin-left:1px;color:#9cabbd;flex:none}
.jhdc-chat-receipt svg{height:12px!important;width:16px!important}
.jhdc-chat-receipt.is-delivered svg,.jhdc-chat-receipt.is-read svg{width:19px!important}
.jhdc-chat-receipt.is-read{color:#2d9cfa}
.jhdc-chat-msg-meta time{white-space:nowrap}
@media(max-width:760px){.jhdc-chat-person-identity{gap:5px}.jhdc-chat-person-presence{font-size:8.5px!important}.jhdc-chat-receipt svg{height:11px!important}}

/* v1.0.8 · Conversaciones estables y vistas según el remitente */
/* El visitante conserva sus mensajes azules a la derecha. En el panel privado
   se invierte la orientación: las respuestas del equipo quedan a la derecha. */
.jhdc-chat-operator-thread .jhdc-chat-msg.is-visitor{align-self:flex-start;align-items:flex-start}
.jhdc-chat-operator-thread .jhdc-chat-msg.is-visitor .jhdc-chat-msg-content{color:#33435f!important;background:#fff!important;border:1px solid #e4eaf4!important;border-radius:16px 16px 16px 5px!important}
.jhdc-chat-operator-thread .jhdc-chat-msg.is-team{align-self:flex-end;align-items:flex-end}
.jhdc-chat-operator-thread .jhdc-chat-msg.is-team .jhdc-chat-msg-content{background:linear-gradient(145deg,#2e70ea,#2059cf)!important;color:white!important;border:0!important;border-radius:16px 16px 5px 16px!important}
.jhdc-chat-operator-thread .jhdc-chat-msg.is-removed .jhdc-chat-msg-content{background:#f4f6f9!important;color:#91a0b2!important;border:1px dashed #d1dbe9!important}
.jhdc-chat-msg-quoted{display:flex;flex-direction:column;gap:2px;max-width:100%;padding:7px 9px;margin-bottom:8px;border-left:3px solid #6c9cf7;border-radius:7px;background:rgba(68,107,175,.08);text-align:left;overflow:hidden}
.jhdc-chat-msg-quoted strong{font-size:10px!important;line-height:1.25!important;color:inherit;opacity:.9}
.jhdc-chat-msg-quoted span{font-size:10.5px;line-height:1.3;max-height:3.9em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;opacity:.86;overflow-wrap:anywhere}
.jhdc-chat-msg.is-visitor .jhdc-chat-msg-quoted,.jhdc-chat-operator-thread .jhdc-chat-msg.is-team .jhdc-chat-msg-quoted{background:rgba(255,255,255,.16);border-left-color:#d6e5ff}
.jhdc-chat-operator-thread .jhdc-chat-msg.is-visitor .jhdc-chat-msg-quoted{background:#edf3fc;border-left-color:#86aceb}
.jhdc-chat-msg-text{overflow-wrap:anywhere}
.jhdc-chat-msg-actions [data-msg-reply]{display:inline-flex;align-items:center;gap:4px;font-weight:750!important}
.jhdc-chat-msg-actions [data-msg-reply] svg{width:14px!important;height:14px!important}
.jhdc-chat-reply-composer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 13px 0;padding:7px 9px;border-left:3px solid #3e79de;border-radius:8px;background:#f0f5fd;min-height:44px}
.jhdc-chat-reply-composer[hidden]{display:none!important}
.jhdc-chat-reply-composer>div{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.jhdc-chat-reply-composer strong{font-size:10px!important;font-weight:800;color:#235aa9;line-height:1.25}
.jhdc-chat-reply-composer span{font-size:10.5px;color:#667b99;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jhdc-chat-reply-composer button{height:27px;width:27px;border:0!important;background:transparent!important;color:#647995!important;display:grid;place-items:center;padding:5px!important;box-shadow:none!important;border-radius:8px!important}
.jhdc-chat-reply-composer svg{width:14px!important;height:14px!important}
.jhdc-chat-team-compose .jhdc-chat-reply-composer{width:100%;margin:0}
.jhdc-chat-name-line{display:flex;align-items:center;gap:5px;min-width:0}
.jhdc-chat-name-line strong{max-width:calc(100% - 28px)}
.jhdc-chat-rename-btn{display:grid;place-items:center;width:24px;height:24px;padding:4px!important;background:transparent!important;border:0!important;color:#7691b4!important;box-shadow:none!important;border-radius:7px!important;flex:none}
.jhdc-chat-rename-btn:hover{color:#2268df!important;background:#eaf2ff!important}
.jhdc-chat-rename-btn svg{width:13px!important;height:13px!important}
.jhdc-chat-contact{position:relative;min-width:0;flex:1}
.jhdc-chat-conversation-head .jhdc-chat-contact{display:flex;flex-direction:column;gap:2px}
.jhdc-chat-rename-editor{position:absolute;z-index:10;left:0;top:calc(100% + 10px);display:flex!important;gap:4px;align-items:center;padding:7px;background:white;border:1px solid #dce7f8;border-radius:12px;box-shadow:0 9px 26px #1b3d632b;min-width:min(270px,calc(100vw - 115px));max-width:320px}
.jhdc-chat-rename-editor[hidden]{display:none!important}
.jhdc-chat-rename-editor input{flex:1;min-width:0;padding:7px!important;min-height:31px!important;margin:0!important;font-size:11px!important;border:1px solid #cddcf1!important;border-radius:8px!important;background:#f9fbff!important;box-shadow:none!important;color:#2d4565!important}
.jhdc-chat-rename-editor button{border:0!important;padding:7px!important;font-size:10px!important;border-radius:7px!important;background:#e7f0ff!important;color:#285ac0!important;font-weight:750!important;box-shadow:none!important}
@media(max-width:650px){.jhdc-chat-rename-editor{min-width:min(220px,calc(100vw - 85px))}.jhdc-chat-rename-editor button{padding:6px!important}.jhdc-chat-msg-quoted span{font-size:10px}}

/* 1.0.9 · deslizamiento horizontal para citar sin bloquear el scroll vertical */
.jhdc-chat-msg:not(.is-system){touch-action:pan-y;transition:transform .16s ease-out;will-change:transform}
.jhdc-chat-msg.is-swiping{transition:none}
@media (prefers-reduced-motion:reduce){.jhdc-chat-msg{transition:none!important}}


/* v1.0.10 · Barra de respuesta compacta (escritorio y móvil) */
#jhdc-chat-widget .jhdc-chat-team-compose .jhdc-chat-compose-row textarea,
#jhdc-chat-inbox .jhdc-chat-team-compose .jhdc-chat-compose-row textarea {
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  flex:1 1 auto!important;
  min-width:0!important;
  height:44px!important;
  min-height:44px!important;
  max-height:124px!important;
  margin:0!important;
  padding:11px 13px!important;
  line-height:20px!important;
  font-size:12.5px!important;
  border-radius:15px!important;
  resize:none!important;
  overflow-x:hidden!important;
  overflow-y:hidden;
  scrollbar-width:thin;
  vertical-align:top;
}
#jhdc-chat-widget .jhdc-chat-team-compose .jhdc-chat-compose-row,
#jhdc-chat-inbox .jhdc-chat-team-compose .jhdc-chat-compose-row {
  display:flex!important;
  align-items:flex-end!important;
  gap:9px!important;
  min-height:44px;
}
#jhdc-chat-widget .jhdc-chat-team-compose .jhdc-chat-send,
#jhdc-chat-inbox .jhdc-chat-team-compose .jhdc-chat-send {
  height:44px!important;
  min-height:44px!important;
  width:44px!important;
  flex:0 0 44px!important;
}
#jhdc-chat-widget .jhdc-chat-detail,
#jhdc-chat-inbox .jhdc-chat-detail {min-height:0!important;}
#jhdc-chat-widget .jhdc-chat-team-compose,
#jhdc-chat-inbox .jhdc-chat-team-compose {flex:0 0 auto!important;min-height:0!important;}


/* v1.0.11 · Menú por pulsación larga, chulitos junto a la burbuja. */
#jhdc-chat-widget .jhdc-chat-msg-line,
#jhdc-chat-inbox .jhdc-chat-msg-line {display:flex;align-items:flex-end;gap:6px;max-width:100%;min-width:0;}
#jhdc-chat-widget .jhdc-chat-msg-line .jhdc-chat-msg-content,
#jhdc-chat-inbox .jhdc-chat-msg-line .jhdc-chat-msg-content {max-width:100%;min-width:0;}
#jhdc-chat-widget .jhdc-chat-msg-line .jhdc-chat-receipt,
#jhdc-chat-inbox .jhdc-chat-msg-line .jhdc-chat-receipt {margin:0 0 3px 0;align-self:flex-end;flex:none;}
#jhdc-chat-widget .jhdc-chat-msg-meta,
#jhdc-chat-inbox .jhdc-chat-msg-meta {gap:0;min-height:14px;}
#jhdc-chat-widget .jhdc-chat-msg-meta time,
#jhdc-chat-inbox .jhdc-chat-msg-meta time {font-size:9px;}
#jhdc-chat-widget .jhdc-chat-msg-content[tabindex],
#jhdc-chat-inbox .jhdc-chat-msg-content[tabindex] {
  -webkit-touch-callout:none;user-select:none;-webkit-user-select:none;cursor:default;
}
#jhdc-chat-widget .jhdc-chat-msg-content[tabindex]:focus-visible,
#jhdc-chat-inbox .jhdc-chat-msg-content[tabindex]:focus-visible {outline:2px solid #72a0f6;outline-offset:2px;}
#jhdc-chat-widget .jhdc-chat-msg.has-action-menu .jhdc-chat-msg-content,
#jhdc-chat-inbox .jhdc-chat-msg.has-action-menu .jhdc-chat-msg-content {box-shadow:0 0 0 2px rgba(47,110,224,.23);}
#jhdc-chat-widget .jhdc-chat-edited,
#jhdc-chat-inbox .jhdc-chat-edited {display:block;font-size:9px;line-height:1.2;opacity:.70;margin-top:3px;text-align:right;}
/* Se conserva la zona técnica de acciones oculta para reutilizar sus permisos. */
#jhdc-chat-widget .jhdc-chat-msg-actions,
#jhdc-chat-inbox .jhdc-chat-msg-actions {display:none!important;}
.jhdc-chat-floating-actions {
  position:fixed!important;z-index:2147483647!important;box-sizing:border-box;
  display:flex;flex-direction:column;gap:3px;width:max-content;min-width:153px;max-width:min(224px,calc(100vw - 18px));
  background:#fff;color:#30496d;border:1px solid #dce6f4;border-radius:13px;
  padding:6px;box-shadow:0 14px 42px rgba(17,42,89,.27);
  font-family:inherit;
}
.jhdc-chat-floating-actions button {
  display:flex!important;align-items:center;gap:8px;width:100%;text-align:left;
  background:transparent!important;color:#30496d!important;border:0!important;
  box-shadow:none!important;border-radius:9px!important;padding:10px 12px!important;
  line-height:1.3!important;font-size:12px!important;font-weight:650!important;
  cursor:pointer;white-space:nowrap;
}
.jhdc-chat-floating-actions button svg {height:16px!important;width:16px!important;flex:none;}
.jhdc-chat-floating-actions button:hover,.jhdc-chat-floating-actions button:focus-visible {background:#eef4ff!important;color:#1f5bc5!important;}
.jhdc-chat-floating-actions button[data-msg-delete-all],.jhdc-chat-floating-actions button[data-msg-hide] {color:#a34850!important;}
@media(max-width:760px){.jhdc-chat-floating-actions button{font-size:12px!important;padding:11px 13px!important;}}

/* JHDC Chat v1.0.13 · Notas de voz comprimidas (integración aditiva). */
#jhdc-chat-widget .jhdc-chat-mic,#jhdc-chat-inbox .jhdc-chat-mic{display:grid!important;place-items:center!important;width:42px;height:42px;flex:0 0 42px;border:1px solid #dbe5f5!important;border-radius:14px!important;padding:0!important;color:#2361d2!important;background:#eff4fe!important;box-shadow:none!important;cursor:pointer}
#jhdc-chat-widget .jhdc-chat-mic svg,#jhdc-chat-inbox .jhdc-chat-mic svg{width:20px;height:20px}
#jhdc-chat-widget .jhdc-chat-recordbar,#jhdc-chat-inbox .jhdc-chat-recordbar,
#jhdc-chat-widget .jhdc-chat-voice-preview,#jhdc-chat-inbox .jhdc-chat-voice-preview{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 12px;background:#f3f7ff;border:1px solid #d8e5f9;border-radius:12px;margin:6px 12px!important;min-width:0;color:#37527b;font-size:12px}
#jhdc-chat-widget .jhdc-chat-recordbar[hidden],#jhdc-chat-inbox .jhdc-chat-recordbar[hidden],
#jhdc-chat-widget .jhdc-chat-voice-preview[hidden],#jhdc-chat-inbox .jhdc-chat-voice-preview[hidden]{display:none!important}
#jhdc-chat-widget .jhdc-chat-record-time,#jhdc-chat-inbox .jhdc-chat-record-time{font-weight:750;color:#c93748;min-width:48px}
#jhdc-chat-widget .jhdc-chat-record-label,#jhdc-chat-inbox .jhdc-chat-record-label{flex:1;min-width:65px}
#jhdc-chat-widget .jhdc-chat-recordbar button,#jhdc-chat-inbox .jhdc-chat-recordbar button,
#jhdc-chat-widget .jhdc-chat-voice-preview button,#jhdc-chat-inbox .jhdc-chat-voice-preview button{display:inline-flex;align-items:center;gap:5px;background:white;border:1px solid #d5e2f6;border-radius:9px;padding:8px 10px;color:#2f5fae;font-size:11px;cursor:pointer}
#jhdc-chat-widget .jhdc-chat-recordbar button svg,#jhdc-chat-inbox .jhdc-chat-recordbar button svg,
#jhdc-chat-widget .jhdc-chat-voice-preview button svg,#jhdc-chat-inbox .jhdc-chat-voice-preview button svg{width:15px;height:15px}
#jhdc-chat-widget .jhdc-chat-voice-preview audio,#jhdc-chat-inbox .jhdc-chat-voice-preview audio{height:34px;max-width:100%;width:210px;flex:1 1 180px;min-width:0}
#jhdc-chat-widget .jhdc-chat-preview-size,#jhdc-chat-inbox .jhdc-chat-preview-size{font-size:10px;color:#7186a7}
#jhdc-chat-widget .jhdc-chat-voice-play,#jhdc-chat-inbox .jhdc-chat-voice-play{border:0;background:transparent;display:flex;align-items:center;gap:8px;color:inherit;min-width:145px;max-width:100%;cursor:pointer;padding:5px 0;font-weight:650;font-size:12px}
#jhdc-chat-widget .jhdc-chat-voice-play svg,#jhdc-chat-inbox .jhdc-chat-voice-play svg{width:22px;height:22px;flex:0 0 22px}
#jhdc-chat-widget .jhdc-chat-voice-bars,#jhdc-chat-inbox .jhdc-chat-voice-bars{font-size:15px;letter-spacing:-1px;opacity:.72;overflow:hidden;white-space:nowrap;max-width:100px}
#jhdc-chat-widget .jhdc-chat-voice-player,#jhdc-chat-inbox .jhdc-chat-voice-player{display:block;width:min(235px,70vw);max-width:100%;height:38px;margin:1px auto}
@media(max-width:480px){#jhdc-chat-widget .jhdc-chat-mic,#jhdc-chat-inbox .jhdc-chat-mic{width:38px;height:42px;flex-basis:38px}#jhdc-chat-widget .jhdc-chat-recordbar,#jhdc-chat-inbox .jhdc-chat-recordbar{gap:5px}#jhdc-chat-widget .jhdc-chat-recordbar button,#jhdc-chat-inbox .jhdc-chat-recordbar button{padding:7px}}
#jhdc-chat-widget .jhdc-chat-compose[hidden],#jhdc-chat-inbox .jhdc-chat-compose[hidden],
#jhdc-chat-widget .jhdc-chat-team-compose[hidden],#jhdc-chat-inbox .jhdc-chat-team-compose[hidden]{display:none!important}


/* JHDC Chat 1.0.16: grabador dos filas y visualización real de la voz. */
#jhdc-chat-widget .jhdc-chat-recordbar,#jhdc-chat-inbox .jhdc-chat-recordbar{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  flex-wrap:nowrap!important;gap:7px!important;padding:10px 12px!important;
  margin:6px 12px!important;background:#f3f7ff!important;border:1px solid #dbe6fa!important;
  border-radius:16px!important;min-width:0!important;
}
#jhdc-chat-widget .jhdc-chat-recordbar[hidden],#jhdc-chat-inbox .jhdc-chat-recordbar[hidden]{display:none!important;}
#jhdc-chat-widget .jhdc-chat-record-top,#jhdc-chat-inbox .jhdc-chat-record-top,
#jhdc-chat-widget .jhdc-chat-record-bottom,#jhdc-chat-inbox .jhdc-chat-record-bottom{
  display:flex;align-items:center;gap:10px;min-width:0;width:100%;
}
#jhdc-chat-widget .jhdc-chat-record-top,#jhdc-chat-inbox .jhdc-chat-record-top{height:36px;}
#jhdc-chat-widget .jhdc-chat-record-time,#jhdc-chat-inbox .jhdc-chat-record-time{
  display:flex;align-items:center;gap:6px;min-width:62px;color:#193d75;font-size:13px;font-weight:750;font-variant-numeric:tabular-nums;
}
#jhdc-chat-widget .jhdc-chat-record-time i,#jhdc-chat-inbox .jhdc-chat-record-time i{
  display:block;width:7px;height:7px;flex:none;background:#e94960;border-radius:50%;
}
#jhdc-chat-widget .jhdc-chat-audio-wave,#jhdc-chat-inbox .jhdc-chat-audio-wave{
  display:flex;align-items:center;justify-content:space-between;gap:2px;height:30px;flex:1;min-width:0;overflow:hidden;
}
#jhdc-chat-widget .jhdc-chat-audio-wave i,#jhdc-chat-inbox .jhdc-chat-audio-wave i{
  flex:1 0 2px;min-width:2px;max-width:5px;height:3px;display:block;border-radius:3px;
  background:linear-gradient(180deg,#5594f4,#1e60d6);transition:height 90ms ease-out;
}
#jhdc-chat-widget .jhdc-chat-record-bottom,#jhdc-chat-inbox .jhdc-chat-record-bottom{justify-content:flex-end;min-height:39px;}
#jhdc-chat-widget .jhdc-chat-record-state,#jhdc-chat-inbox .jhdc-chat-record-state{
  flex:1;min-width:0;color:#5f759a;font-weight:550;font-size:11px;
}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-review,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-review{
  border:0!important;background:transparent!important;padding:5px 3px!important;
  color:#2666d0!important;text-decoration:underline;text-underline-offset:2px;font-size:10px;font-weight:600;white-space:nowrap;
}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-review[hidden],#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-review[hidden]{display:none!important;}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-trash,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-trash,
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-pause,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-pause,
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-send,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-send{
  display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;
  padding:8px!important;border-radius:12px!important;box-shadow:none!important;
}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-trash,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-trash{
  margin-right:auto!important;border:1px solid #f1d7dd!important;background:#fff!important;color:#c64b5b!important;
}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-pause,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-pause{
  border:1px solid #d6e3f7!important;background:white!important;color:#2462d0!important;
}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-send,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-send{
  border:1px solid #2768de!important;color:white!important;background:linear-gradient(135deg,#2d78f3,#1958cd)!important;
}
#jhdc-chat-widget .jhdc-chat-recordbar button svg,#jhdc-chat-inbox .jhdc-chat-recordbar button svg{width:19px!important;height:19px!important;}
#jhdc-chat-widget .jhdc-chat-voice-play.is-loading,#jhdc-chat-inbox .jhdc-chat-voice-play.is-loading{
  opacity:.6;cursor:progress;
}
@media(max-width:480px){
 #jhdc-chat-widget .jhdc-chat-recordbar,#jhdc-chat-inbox .jhdc-chat-recordbar{padding:9px!important;gap:6px!important;margin:4px 8px!important;}
 #jhdc-chat-widget .jhdc-chat-record-top,#jhdc-chat-inbox .jhdc-chat-record-top,
 #jhdc-chat-widget .jhdc-chat-record-bottom,#jhdc-chat-inbox .jhdc-chat-record-bottom{gap:7px;}
 #jhdc-chat-widget .jhdc-chat-record-state,#jhdc-chat-inbox .jhdc-chat-record-state{font-size:10px;}
 #jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-review,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-review{font-size:10px;}
}


/* JHDC Chat 1.0.17 — Grabadora compacta y notas de voz tipo mensajería. */
#jhdc-chat-widget .jhdc-chat-recordbar,#jhdc-chat-inbox .jhdc-chat-recordbar{
  background:#fff!important;border:1px solid #e0e7f2!important;border-radius:18px!important;
  padding:10px 12px!important;gap:9px!important;box-shadow:0 5px 20px rgba(18,49,99,.06);
}
#jhdc-chat-widget .jhdc-chat-record-top,#jhdc-chat-inbox .jhdc-chat-record-top{height:38px;gap:10px;}
#jhdc-chat-widget .jhdc-chat-record-time,#jhdc-chat-inbox .jhdc-chat-record-time{font-size:15px;color:#223450;min-width:42px;font-weight:650;}
#jhdc-chat-widget .jhdc-chat-record-time i,#jhdc-chat-inbox .jhdc-chat-record-time i{width:5px;height:5px;background:#eb6575;}
#jhdc-chat-widget .jhdc-chat-audio-wave i,#jhdc-chat-inbox .jhdc-chat-audio-wave i{background:#45658c;max-width:4px;border-radius:5px;}
#jhdc-chat-widget .jhdc-chat-recordbar.is-paused .jhdc-chat-audio-wave{opacity:.36;}
#jhdc-chat-widget .jhdc-chat-record-bottom,#jhdc-chat-inbox .jhdc-chat-record-bottom{justify-content:space-between;gap:9px;min-height:44px;}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-trash,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-trash{
  background:#fdebef!important;color:#e23e61!important;border:0!important;border-radius:50%!important;
  flex:0 0 42px!important;width:42px!important;height:42px!important;margin:0!important;
}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-pause,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-pause{
  display:flex!important;gap:7px;justify-content:center;align-items:center;background:#f3f5f8!important;
  border:0!important;border-radius:999px!important;flex:1 1 auto!important;width:auto!important;
  height:42px!important;font-size:12px;font-weight:700;color:#21314b!important;min-width:0;
}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-pause span,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-pause span{white-space:nowrap;}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-send,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-send{
  background:#2568dc!important;border:0!important;border-radius:50%!important;
  flex:0 0 42px!important;width:42px!important;height:42px!important;
}
#jhdc-chat-widget .jhdc-chat-record-state,#jhdc-chat-inbox .jhdc-chat-record-state{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-review,#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-review{
  position:absolute;top:0;right:3px;transform:translateY(-100%);font-size:10px;
}
#jhdc-chat-widget .jhdc-chat-recordbar,#jhdc-chat-inbox .jhdc-chat-recordbar{position:relative;}

/* Las notas enviadas solo incluyen control, onda y duración; la hora queda bajo el mensaje. */
#jhdc-chat-widget .jhdc-chat-voice-note,#jhdc-chat-inbox .jhdc-chat-voice-note{
  display:flex;align-items:center;gap:9px;width:clamp(184px,24vw,262px);max-width:min(75vw,100%);min-width:0;
}
#jhdc-chat-widget .jhdc-chat-voice-toggle,#jhdc-chat-inbox .jhdc-chat-voice-toggle{
  display:grid;place-items:center;border:0!important;background:transparent!important;
  padding:2px!important;color:inherit!important;flex:0 0 31px;width:31px;height:34px;cursor:pointer;
}
#jhdc-chat-widget .jhdc-chat-voice-toggle svg,#jhdc-chat-inbox .jhdc-chat-voice-toggle svg{width:23px;height:23px;display:block;}
#jhdc-chat-widget .jhdc-chat-voice-main,#jhdc-chat-inbox .jhdc-chat-voice-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:0;}
#jhdc-chat-widget .jhdc-chat-voice-seekbox,#jhdc-chat-inbox .jhdc-chat-voice-seekbox{position:relative;height:26px;display:flex;align-items:center;min-width:0;}
#jhdc-chat-widget .jhdc-chat-voice-wave,#jhdc-chat-inbox .jhdc-chat-voice-wave{height:24px;width:100%;position:relative;display:block;overflow:hidden;}
#jhdc-chat-widget .jhdc-chat-voice-wave-base,#jhdc-chat-inbox .jhdc-chat-voice-wave-base,
#jhdc-chat-widget .jhdc-chat-voice-wave-progress,#jhdc-chat-inbox .jhdc-chat-voice-wave-progress{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;gap:1px;pointer-events:none;
}
#jhdc-chat-widget .jhdc-chat-voice-wave-base i,#jhdc-chat-inbox .jhdc-chat-voice-wave-base i,
#jhdc-chat-widget .jhdc-chat-voice-wave-progress i,#jhdc-chat-inbox .jhdc-chat-voice-wave-progress i{
  width:2px;min-width:2px;flex:1;display:block;border-radius:4px;background:currentColor;opacity:.32;
}
#jhdc-chat-widget .jhdc-chat-voice-wave-progress,#jhdc-chat-inbox .jhdc-chat-voice-wave-progress{
  clip-path:inset(0 calc(100% - var(--jhdc-audio-progress,0%)) 0 0);
}
#jhdc-chat-widget .jhdc-chat-voice-wave-progress i,#jhdc-chat-inbox .jhdc-chat-voice-wave-progress i{opacity:1;}
#jhdc-chat-widget .jhdc-chat-voice-thumb,#jhdc-chat-inbox .jhdc-chat-voice-thumb{
  position:absolute;left:var(--jhdc-audio-progress,0%);top:50%;transform:translate(-50%,-50%);
  width:8px;height:8px;border-radius:50%;background:currentColor;z-index:2;pointer-events:none;
}
#jhdc-chat-widget .jhdc-chat-voice-seekbox input[type=range],#jhdc-chat-inbox .jhdc-chat-voice-seekbox input[type=range]{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  margin:0!important;padding:0!important;opacity:0!important;cursor:pointer;z-index:3;
}
#jhdc-chat-widget .jhdc-chat-voice-time,#jhdc-chat-inbox .jhdc-chat-voice-time{font-size:10px;line-height:1.2;color:inherit;opacity:.74;font-variant-numeric:tabular-nums;}
#jhdc-chat-widget .jhdc-chat-voice-note.is-loading,#jhdc-chat-inbox .jhdc-chat-voice-note.is-loading{opacity:.65;}
#jhdc-chat-widget .jhdc-chat-voice-note button:focus-visible,#jhdc-chat-inbox .jhdc-chat-voice-note button:focus-visible,
#jhdc-chat-widget .jhdc-chat-voice-note input:focus-visible,#jhdc-chat-inbox .jhdc-chat-voice-note input:focus-visible{outline:2px solid #85adfb;outline-offset:2px;}
@media(max-width:480px){
 #jhdc-chat-widget .jhdc-chat-voice-note,#jhdc-chat-inbox .jhdc-chat-voice-note{width:min(210px,65vw);}
 #jhdc-chat-widget .jhdc-chat-recordbar,#jhdc-chat-inbox .jhdc-chat-recordbar{padding:9px 10px!important;}
}

/* En escritorio evitar una forma de onda de más de medio metro. */
#jhdc-chat-widget .jhdc-chat-recordbar,#jhdc-chat-inbox .jhdc-chat-recordbar{
 width:min(100%,440px)!important;max-width:440px!important;box-sizing:border-box!important;
}
#jhdc-chat-inbox .jhdc-chat-recordbar{margin-left:auto!important;margin-right:12px!important;}
#jhdc-chat-widget .jhdc-chat-recordbar{margin-left:auto!important;margin-right:auto!important;}

/* JHDC Chat 1.0.19 — escucha durante una pausa, sin abandonar la grabación. */
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-play,
#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-play{
  display:grid!important;place-items:center!important;flex:0 0 29px!important;
  width:29px!important;height:29px!important;min-width:29px!important;
  padding:5px!important;margin:0!important;border:0!important;
  border-radius:50%!important;background:#eaf1fe!important;color:#1c5fd0!important;
  cursor:pointer;box-shadow:none!important;
}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-play[hidden],
#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-play[hidden]{display:none!important;}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-play svg,
#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-play svg{width:16px!important;height:16px!important;}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-record-play:focus-visible,
#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-record-play:focus-visible{outline:2px solid #2e70e5;outline-offset:2px;}


/* JHDC Chat 1.0.20 — suavidad real con cuadros de pantalla, sin ondas inventadas. */
#jhdc-chat-widget .jhdc-chat-audio-wave i,
#jhdc-chat-inbox .jhdc-chat-audio-wave i{
  transition:none!important; /* los niveles se interpolan desde la señal real mediante rAF */
}
#jhdc-chat-widget .jhdc-chat-recordbar.is-paused .jhdc-chat-audio-wave,
#jhdc-chat-inbox .jhdc-chat-recordbar.is-paused .jhdc-chat-audio-wave{opacity:1!important;}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-audio-wave,
#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-audio-wave{position:relative;}
#jhdc-chat-widget .jhdc-chat-recordbar .jhdc-chat-audio-wave i,
#jhdc-chat-inbox .jhdc-chat-recordbar .jhdc-chat-audio-wave i{position:relative;z-index:1;}
#jhdc-chat-widget .jhdc-chat-recordbar.is-paused .jhdc-chat-audio-wave::before,
#jhdc-chat-inbox .jhdc-chat-recordbar.is-paused .jhdc-chat-audio-wave::before{
  content:"";position:absolute;z-index:0;left:0;top:1px;bottom:1px;
  width:var(--jhdc-preview-progress,0%);background:rgba(41,110,218,.13);
  border-radius:5px;pointer-events:none;
}
#jhdc-chat-widget .jhdc-chat-record-wave-thumb,
#jhdc-chat-inbox .jhdc-chat-record-wave-thumb{
  display:block;position:absolute;z-index:2;top:50%;left:var(--jhdc-preview-progress,0%);
  transform:translate(-50%,-50%);width:8px;height:8px;min-width:8px;
  border-radius:50%;background:#2568dc;opacity:0;pointer-events:none;
}
#jhdc-chat-widget .jhdc-chat-recordbar.is-paused .jhdc-chat-record-wave-thumb,
#jhdc-chat-inbox .jhdc-chat-recordbar.is-paused .jhdc-chat-record-wave-thumb{opacity:1;}

/* JHDC Chat 1.0.21 · adjuntos privados y fotos optimizadas */
#jhdc-chat-widget .jhdc-chat-compose,#jhdc-chat-inbox .jhdc-chat-compose{position:relative}
#jhdc-chat-widget .jhdc-chat-attach-btn,#jhdc-chat-inbox .jhdc-chat-attach-btn{
  width:36px!important;min-width:36px!important;height:42px!important;flex:0 0 36px;
  border:0!important;background:transparent!important;box-shadow:none!important;
  color:#4576c1!important;padding:7px!important;margin:0!important;
  border-radius:11px!important;display:grid!important;place-items:center!important;cursor:pointer;
}
#jhdc-chat-widget .jhdc-chat-attach-btn svg,#jhdc-chat-inbox .jhdc-chat-attach-btn svg{width:22px!important;height:22px!important}
#jhdc-chat-widget .jhdc-chat-attach-btn:hover,#jhdc-chat-inbox .jhdc-chat-attach-btn:hover{background:#edf4ff!important}
#jhdc-chat-widget .jhdc-chat-attach-btn:disabled,#jhdc-chat-inbox .jhdc-chat-attach-btn:disabled{opacity:.5;cursor:wait}
#jhdc-chat-widget .jhdc-chat-upload-preview,#jhdc-chat-inbox .jhdc-chat-upload-preview{
  position:absolute!important;bottom:calc(100% + 7px);left:9px;right:9px;
  display:flex!important;align-items:center;gap:9px;min-width:0;
  background:#fff!important;border:1px solid #d8e5fa!important;border-radius:15px!important;
  padding:9px 10px!important;box-shadow:0 8px 30px rgba(26,57,97,.14)!important;
  z-index:5;max-width:calc(100% - 18px);color:#24436d;
}
#jhdc-chat-widget .jhdc-chat-upload-preview[hidden],#jhdc-chat-inbox .jhdc-chat-upload-preview[hidden]{display:none!important}
#jhdc-chat-widget .jhdc-chat-upload-thumb,#jhdc-chat-inbox .jhdc-chat-upload-thumb{
  width:43px;height:43px;min-width:43px;border-radius:10px;display:grid;place-items:center;
  color:#4774c0;background:#eef4ff;overflow:hidden;
}
#jhdc-chat-widget .jhdc-chat-upload-thumb img,#jhdc-chat-inbox .jhdc-chat-upload-thumb img{width:100%;height:100%;object-fit:cover}
#jhdc-chat-widget .jhdc-chat-upload-thumb svg,#jhdc-chat-inbox .jhdc-chat-upload-thumb svg{width:23px;height:23px}
#jhdc-chat-widget .jhdc-chat-upload-details,#jhdc-chat-inbox .jhdc-chat-upload-details{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
#jhdc-chat-widget .jhdc-chat-upload-details strong,#jhdc-chat-inbox .jhdc-chat-upload-details strong{font-size:11px;color:#274264;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#jhdc-chat-widget .jhdc-chat-upload-details small,#jhdc-chat-inbox .jhdc-chat-upload-details small{color:#8294ad;font-size:9px;line-height:1.3}
#jhdc-chat-widget .jhdc-chat-upload-preview button,#jhdc-chat-inbox .jhdc-chat-upload-preview button{
  display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;padding:6px!important;
  border:0!important;border-radius:9px!important;background:#edf3ff!important;color:#4777ca!important;box-shadow:none!important;
}
#jhdc-chat-widget .jhdc-chat-upload-preview button[data-attachment-send],#jhdc-chat-inbox .jhdc-chat-upload-preview button[data-attachment-send]{color:#fff!important;background:#286bdd!important}
#jhdc-chat-widget .jhdc-chat-upload-preview button svg,#jhdc-chat-inbox .jhdc-chat-upload-preview button svg{width:18px;height:18px}
#jhdc-chat-widget .jhdc-chat-attachment,#jhdc-chat-inbox .jhdc-chat-attachment{max-width:min(245px,65vw);min-width:min(170px,55vw);font-size:11px;line-height:1.4}
#jhdc-chat-widget .jhdc-chat-attachment.is-image,#jhdc-chat-inbox .jhdc-chat-attachment.is-image{width:min(232px,65vw);display:flex;flex-direction:column;gap:5px}
#jhdc-chat-widget .jhdc-chat-attachment-image-btn,#jhdc-chat-inbox .jhdc-chat-attachment-image-btn{
  display:grid;place-items:center;width:100%;min-height:86px;max-height:220px;padding:0!important;margin:0!important;
  border:0!important;border-radius:11px!important;overflow:hidden;background:rgba(130,160,208,.13)!important;color:inherit!important;cursor:pointer;box-shadow:none!important;
}
#jhdc-chat-widget .jhdc-chat-attachment-image-btn img,#jhdc-chat-inbox .jhdc-chat-attachment-image-btn img{display:block;width:100%;height:auto;max-height:220px;object-fit:contain}
#jhdc-chat-widget .jhdc-chat-attachment-image-btn img[hidden],#jhdc-chat-inbox .jhdc-chat-attachment-image-btn img[hidden]{display:none!important}
#jhdc-chat-widget .jhdc-chat-attachment-image-placeholder,#jhdc-chat-inbox .jhdc-chat-attachment-image-placeholder{padding:17px 11px;color:#7d8daa;font-size:10px}
#jhdc-chat-widget .jhdc-chat-attachment-info,#jhdc-chat-inbox .jhdc-chat-attachment-info{display:flex;gap:7px;align-items:center;min-width:0}
#jhdc-chat-widget .jhdc-chat-attachment-info span,#jhdc-chat-inbox .jhdc-chat-attachment-info span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;font-weight:650}
#jhdc-chat-widget .jhdc-chat-attachment-info small,#jhdc-chat-inbox .jhdc-chat-attachment-info small{white-space:nowrap;font-size:9px;opacity:.8}
#jhdc-chat-widget .jhdc-chat-attachment-info button,#jhdc-chat-inbox .jhdc-chat-attachment-info button,
#jhdc-chat-widget .jhdc-chat-attachment.is-document button,#jhdc-chat-inbox .jhdc-chat-attachment.is-document button{
  border:0!important;background:rgba(145,172,214,.16)!important;color:inherit!important;
  width:28px;height:28px;flex:0 0 28px;padding:6px!important;border-radius:8px!important;box-shadow:none!important;
}
#jhdc-chat-widget .jhdc-chat-attachment button svg,#jhdc-chat-inbox .jhdc-chat-attachment button svg{width:16px;height:16px}
#jhdc-chat-widget .jhdc-chat-attachment.is-document,#jhdc-chat-inbox .jhdc-chat-attachment.is-document{display:flex;gap:9px;align-items:center}
#jhdc-chat-widget .jhdc-chat-attachment-file-icon,#jhdc-chat-inbox .jhdc-chat-attachment-file-icon{color:#4e84d9;display:grid;place-items:center;flex:0 0 28px}
#jhdc-chat-widget .jhdc-chat-attachment-file-icon svg,#jhdc-chat-inbox .jhdc-chat-attachment-file-icon svg{width:27px;height:27px}
#jhdc-chat-widget .jhdc-chat-attachment-doc-name,#jhdc-chat-inbox .jhdc-chat-attachment-doc-name{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#jhdc-chat-widget .jhdc-chat-attachment-doc-name strong,#jhdc-chat-inbox .jhdc-chat-attachment-doc-name strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#jhdc-chat-widget .jhdc-chat-attachment-doc-name small,#jhdc-chat-inbox .jhdc-chat-attachment-doc-name small{font-size:9px;opacity:.7}
#jhdc-chat-widget .jhdc-chat-msg.is-visitor .jhdc-chat-attachment-file-icon,#jhdc-chat-inbox .jhdc-chat-msg.is-team .jhdc-chat-attachment-file-icon{color:#e3ecff}
@media(max-width:480px){
  #jhdc-chat-widget .jhdc-chat-attach-btn,#jhdc-chat-inbox .jhdc-chat-attach-btn{flex-basis:32px;min-width:32px!important;width:32px!important}
  #jhdc-chat-widget .jhdc-chat-upload-preview,#jhdc-chat-inbox .jhdc-chat-upload-preview{gap:6px;padding:7px!important}
}
/* Adjuntos visibles sin tapar autorización de datos ni controles del móvil. */
#jhdc-chat-widget .jhdc-chat-compose:not(.jhdc-chat-team-compose){flex-wrap:wrap!important;}
#jhdc-chat-widget .jhdc-chat-upload-preview,#jhdc-chat-inbox .jhdc-chat-upload-preview{
  position:relative!important;bottom:auto!important;left:auto!important;right:auto!important;
  order:-1;flex:1 0 100%;width:100%;max-width:100%;z-index:1;margin:0 0 2px 0!important;
}
/* En la bandeja (flex vertical) la vista previa NO debe estirarse de alto. */
#jhdc-chat-widget .jhdc-chat-team-compose .jhdc-chat-upload-preview,
#jhdc-chat-inbox .jhdc-chat-team-compose .jhdc-chat-upload-preview{
  flex:0 0 auto!important;order:0;width:100%!important;min-height:0;height:auto!important;
}

/* v1.0.22: selector de archivo exclusivamente mediante el clip.
   Temas WordPress pueden sobreescribir [hidden] o input[type=file]. */
#jhdc-chat-widget input.jhdc-chat-file-input,
#jhdc-chat-inbox input.jhdc-chat-file-input,
#jhdc-chat-widget input.jhdc-chat-file-input:not([hidden]),
#jhdc-chat-inbox input.jhdc-chat-file-input:not([hidden]) {
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  position:absolute!important;
  pointer-events:none!important;
}

/* 1.0.23: Teclados móviles con stickers/imagen nativa, sin alterar el formulario. */
#jhdc-chat-widget textarea.jhdc-chat-textarea-proxy,
#jhdc-chat-inbox textarea.jhdc-chat-textarea-proxy{display:none!important}
#jhdc-chat-widget .jhdc-chat-rich-entry,
#jhdc-chat-inbox .jhdc-chat-rich-entry{
  flex:1 1 auto;min-width:0;min-height:42px;max-height:110px;overflow-y:auto;
  overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word;
  border:1px solid #e0e7f3;border-radius:15px;background:#f6f8fc;
  padding:11px 13px;color:#2b3852;font-size:12.5px;line-height:1.5;
  font-family:inherit;outline:0;box-sizing:border-box;-webkit-user-select:text;user-select:text;
}
#jhdc-chat-widget .jhdc-chat-rich-entry:focus,
#jhdc-chat-inbox .jhdc-chat-rich-entry:focus{background:#fff;border-color:#9fbef6}
#jhdc-chat-widget .jhdc-chat-rich-entry:empty:before,
#jhdc-chat-inbox .jhdc-chat-rich-entry:empty:before{
  content:attr(data-placeholder);color:#9ba8bb;pointer-events:none
}
#jhdc-chat-widget .jhdc-chat-rich-entry img,
#jhdc-chat-inbox .jhdc-chat-rich-entry img{display:none!important}

/* JHDC 1.0.24 — permisos separados y papelera, exclusivos del Super Admin */
.jhdc-chat-management{display:flex;flex-wrap:wrap;gap:8px;padding:10px 15px;border-top:1px solid #e4eaf5}
.jhdc-chat-management button{border:1px solid #d6e2f5;border-radius:10px;background:#f5f8ff;color:#2456aa;font-size:12px;font-weight:700;padding:9px 10px;cursor:pointer}
.jhdc-chat-retention-brief{padding:12px 15px;color:#8390a7}
.jhdc-chat-superdialog[hidden]{display:none!important}
.jhdc-chat-superdialog{position:absolute;inset:0;z-index:260;display:flex;align-items:center;justify-content:center;background:rgba(21,40,76,.42);padding:18px}
.jhdc-chat-superbox{width:min(560px,100%);max-height:min(78vh,680px);min-height:220px;border:1px solid #dce6f5;border-radius:20px;box-shadow:0 24px 65px rgba(11,26,58,.25);background:#fff;display:flex;flex-direction:column;overflow:hidden}
.jhdc-chat-superhead{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #e9edf5;color:#182b50}
.jhdc-chat-superhead strong{display:block;font-size:17px}.jhdc-chat-superhead small{display:block;font-size:11px;color:#7486a5;margin-top:3px}
.jhdc-chat-superhead button{font-size:25px;background:transparent;border:0;color:#536583;cursor:pointer;padding:3px 8px}
.jhdc-chat-supercontent{padding:15px 18px 20px;overflow:auto;overscroll-behavior:contain;flex:1}
.jhdc-chat-super-hint{margin:0 0 14px;color:#657998;font-size:12px;line-height:1.45}
.jhdc-chat-superitem{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #edf1f7;flex-wrap:wrap}
.jhdc-chat-superitem>div:first-child{flex:1;min-width:115px}.jhdc-chat-superitem strong{display:block;color:#1f3459;font-size:13px}
.jhdc-chat-superitem small{display:block;font-size:11px;color:#8190a5;margin-top:4px}
.jhdc-chat-supercheck{display:flex;align-items:center;gap:5px;color:#3e5c8a;font-size:12px;cursor:pointer}
.jhdc-chat-supercheck input{accent-color:#2463dc;width:17px;height:17px}
.jhdc-chat-superitem button{padding:8px 10px;border:1px solid #ccdcf6;background:#edf4ff;color:#225bbc;border-radius:9px;font-size:12px;font-weight:700;cursor:pointer}
.jhdc-chat-superitem button:disabled{opacity:.45;cursor:default}
.jhdc-chat-superactions{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:600px){.jhdc-chat-superdialog{padding:10px;align-items:center}.jhdc-chat-superbox{max-height:82dvh;border-radius:16px}.jhdc-chat-supercontent{padding:12px}.jhdc-chat-superitem{gap:8px}}

/* JHDC Chat en vivo 1.0.25 — Centro único, áreas internas independientes.
   No modifica la presentación pública ni los controles de grabación. */
#jhdc-chat-inbox .jhdc-chat-control-center{width:100%;display:flex;flex-direction:column;gap:14px;max-width:1450px;margin:0 auto 25px;min-width:0}
#jhdc-chat-inbox .jhdc-chat-center-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;position:relative;overflow:hidden;isolation:isolate;min-height:145px;padding:27px clamp(20px,4vw,34px);background:linear-gradient(116deg,#081e3e 0%,#12366b 60%,#2458af 100%);border-radius:19px;color:#fff;box-shadow:0 9px 28px rgba(17,51,102,.13)}
#jhdc-chat-inbox .jhdc-chat-center-hero::before{content:"";position:absolute;width:320px;height:320px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:45px;top:-190px;box-shadow:0 0 0 45px rgba(255,255,255,.022),0 0 0 94px rgba(255,255,255,.019);pointer-events:none;z-index:-1}
#jhdc-chat-inbox .jhdc-chat-center-kicker{font-size:10px;letter-spacing:.19em;text-transform:uppercase;color:#ffd46a;font-weight:850}
#jhdc-chat-inbox .jhdc-chat-center-hero h1{font-size:clamp(24px,3.1vw,34px)!important;line-height:1.2!important;letter-spacing:-.04em;font-weight:850;color:#fff!important;margin:8px 0 8px!important}
#jhdc-chat-inbox .jhdc-chat-center-hero p{font-size:12px!important;color:#c7d8f5!important;line-height:1.55;max-width:630px;margin:0!important}
#jhdc-chat-inbox .jhdc-chat-center-hero-mark{display:grid;place-items:center;width:68px;height:68px;border:1px solid rgba(255,255,255,.3);border-radius:23px;background:rgba(255,255,255,.10);flex:none;color:#fff}
#jhdc-chat-inbox .jhdc-chat-center-hero-mark svg{width:35px!important;height:35px!important}
#jhdc-chat-inbox .jhdc-chat-center-nav{display:flex;align-items:center;gap:7px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 0 7px;border-bottom:1px solid #dce6f5}
#jhdc-chat-inbox .jhdc-chat-center-nav button{font-size:12px!important;display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;flex:none;background:transparent!important;border:1px solid transparent!important;color:#566f94!important;border-radius:12px!important;padding:10px 14px!important;min-height:43px;box-shadow:none!important;font-weight:720!important;transition:background .16s,color .16s,border-color .16s}
#jhdc-chat-inbox .jhdc-chat-center-nav button svg{height:18px!important;width:18px!important}
#jhdc-chat-inbox .jhdc-chat-center-nav button:hover{background:#eef4ff!important;color:#215fbd!important}
#jhdc-chat-inbox .jhdc-chat-center-nav button.is-active{background:#e9f1ff!important;border-color:#cce0ff!important;color:#1e5dcb!important}
#jhdc-chat-inbox .jhdc-chat-alert-counter{min-width:19px;height:19px;padding:1px 5px;border-radius:99px;background:#db3d56;color:#fff;font-size:10px;font-weight:800;display:grid;place-items:center}
#jhdc-chat-inbox .jhdc-chat-alert-counter[hidden]{display:none!important}
#jhdc-chat-inbox .jhdc-chat-center-section[hidden]{display:none!important}
#jhdc-chat-inbox .jhdc-chat-area-hero{display:flex;align-items:center;gap:14px;padding:11px 0 16px;min-width:0}
#jhdc-chat-inbox .jhdc-chat-area-symbol{width:47px;height:47px;display:grid;place-items:center;flex:none;background:#e7f0ff;border:1px solid #d1e2fb;border-radius:15px;color:#2062d5}
#jhdc-chat-inbox .jhdc-chat-area-symbol svg{height:23px!important;width:23px!important}
#jhdc-chat-inbox .jhdc-chat-area-eyebrow{font-size:10px;font-weight:790;color:#5280c7;letter-spacing:.10em;text-transform:uppercase}
#jhdc-chat-inbox .jhdc-chat-area-hero h2{font-size:clamp(18px,2vw,23px)!important;color:#173253!important;line-height:1.25!important;margin:3px 0 4px!important;letter-spacing:-.035em;font-weight:850}
#jhdc-chat-inbox .jhdc-chat-area-hero p{font-size:11.5px!important;line-height:1.5!important;color:#7b8da7!important;margin:0!important}
#jhdc-chat-inbox .jhdc-chat-section-body{min-width:0}
#jhdc-chat-inbox .jhdc-chat-team-panel.is-page{height:clamp(480px,70dvh,790px);min-height:480px;border:1px solid #dce7f7;border-radius:18px}
#jhdc-chat-inbox .jhdc-chat-sidebar{width:32%;min-width:248px;max-width:365px}
#jhdc-chat-inbox .jhdc-chat-center-section:not([data-center-section="inbox"]) .jhdc-chat-section-body{min-height:280px;background:rgba(255,255,255,.86);border:1px solid #dfe7f3;border-radius:18px;padding:clamp(16px,2.5vw,24px);box-shadow:0 9px 26px rgba(24,60,107,.035)}
#jhdc-chat-inbox .jhdc-chat-supercontent{padding:0;overflow:visible}
#jhdc-chat-inbox .jhdc-chat-super-hint{padding:11px 14px;background:#f3f7ff;border:1px solid #e5edfb;border-radius:12px;margin:0 0 12px;font-size:12px}
#jhdc-chat-inbox .jhdc-chat-superitem{gap:16px;padding:17px 12px;border-bottom:1px solid #e9eef6}
#jhdc-chat-inbox .jhdc-chat-superitem>div:first-child{flex:1;min-width:190px}
#jhdc-chat-inbox .jhdc-chat-superitem strong{font-size:13.5px}
#jhdc-chat-inbox .jhdc-chat-superitem button{min-height:34px}
#jhdc-chat-inbox .jhdc-chat-center-information{display:flex;align-items:center;gap:12px;margin-top:16px;background:#f1f6ff;border:1px solid #dfebfa;border-radius:14px;padding:14px 16px;font-size:11.5px;color:#567091;line-height:1.55}
#jhdc-chat-inbox .jhdc-chat-center-information svg{color:#3671cf;width:21px!important;height:21px!important}
#jhdc-chat-inbox .jhdc-chat-future{display:flex;gap:17px;align-items:flex-start;max-width:720px;padding:24px;background:#f6f9fe;border:1px dashed #cad9ed;border-radius:16px;color:#2e476b}
#jhdc-chat-inbox .jhdc-chat-future-icon{flex:none;display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#e4efff;color:#2466cd}
#jhdc-chat-inbox .jhdc-chat-future strong{display:block;font-size:14px;line-height:1.4;margin:2px 0 7px}
#jhdc-chat-inbox .jhdc-chat-future p{color:#647997;font-size:12px;line-height:1.65;margin:0}
#jhdc-chat-inbox .jhdc-chat-settings-card{max-width:800px;border:1px solid #e4ebf5;border-radius:15px;padding:20px;background:#fbfdff}
#jhdc-chat-inbox .jhdc-chat-settings-heading{display:flex;align-items:flex-start;gap:13px;color:#2b65c4}
#jhdc-chat-inbox .jhdc-chat-settings-heading strong{font-size:14px;color:#193b65}
#jhdc-chat-inbox .jhdc-chat-settings-heading p{font-size:11px;color:#788aa6;line-height:1.5;margin:4px 0 0}
#jhdc-chat-inbox .jhdc-chat-settings-form{display:flex;align-items:center;gap:12px;margin-top:20px;flex-wrap:wrap}
#jhdc-chat-inbox .jhdc-chat-settings-form label{font-size:12px;color:#4e6686;flex:1;min-width:205px}
#jhdc-chat-inbox .jhdc-chat-settings-form select{border-radius:11px;border:1px solid #d5e2f6;padding:9px 12px;min-width:116px;font-size:12px;color:#274973;background:#fff;height:41px;box-shadow:none}
#jhdc-chat-inbox .jhdc-chat-settings-form button{height:41px;border-radius:10px;background:#2464d7;color:#fff;border:0;padding:9px 18px;font-weight:740;font-size:12px;box-shadow:none}
#jhdc-chat-inbox .jhdc-chat-dashboard-data{max-width:900px}
#jhdc-chat-inbox .jhdc-chat-alert-item{display:flex;align-items:center;gap:13px;width:100%;padding:13px 15px;min-height:65px;text-align:left;background:#fff;border:1px solid #e1e9f6;border-radius:13px;margin:0 0 9px;color:#254065;box-shadow:none}
#jhdc-chat-inbox .jhdc-chat-alert-item:hover{background:#f3f7ff}
#jhdc-chat-inbox .jhdc-chat-alert-data{display:grid;gap:4px;min-width:0;flex:1}
#jhdc-chat-inbox .jhdc-chat-alert-data strong{font-size:12px}
#jhdc-chat-inbox .jhdc-chat-alert-data small{font-size:11px;color:#8998ac;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#jhdc-chat-inbox .jhdc-chat-alert-pill{color:#2867cd;background:#eaf2ff;border-radius:50px;font-size:10px;padding:6px 9px;font-weight:740;white-space:nowrap}
#jhdc-chat-inbox .jhdc-chat-no-alerts{display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;gap:8px;min-height:160px;color:#597498}
#jhdc-chat-inbox .jhdc-chat-no-alerts svg{width:27px!important;height:27px!important;color:#2eaa7d}
#jhdc-chat-inbox .jhdc-chat-no-alerts strong{color:#304b70;font-size:16px}
#jhdc-chat-inbox .jhdc-chat-no-alerts p{font-size:12px;margin:0}
#jhdc-chat-widget .jhdc-chat-quick-wrap{display:flex;align-items:center;gap:4px;position:relative}
#jhdc-chat-widget .jhdc-chat-quick-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:35;display:grid;width:210px;padding:9px;border-radius:13px;background:#fff;border:1px solid #d9e3f3;box-shadow:0 13px 30px rgba(20,50,96,.19);gap:3px}
#jhdc-chat-widget .jhdc-chat-quick-popover[hidden]{display:none!important}
#jhdc-chat-widget .jhdc-chat-quick-popover>strong{font-size:11px;color:#304b74;padding:9px 10px 6px}
#jhdc-chat-widget .jhdc-chat-quick-popover>button{display:flex;align-items:center;gap:9px;padding:10px 9px;text-align:left;border:0;border-radius:9px;background:transparent;color:#30517b;font-size:11px;font-weight:650;box-shadow:none}
#jhdc-chat-widget .jhdc-chat-quick-popover>button:hover{background:#f1f6ff;color:#2361c8}
#jhdc-chat-widget .jhdc-chat-quick-popover>button svg{height:17px!important;width:17px!important}
@media(max-width:780px){
 #jhdc-chat-inbox .jhdc-chat-center-hero{min-height:132px;padding:22px 19px;border-radius:14px}
 #jhdc-chat-inbox .jhdc-chat-center-hero-mark{width:50px;height:50px;border-radius:16px}
 #jhdc-chat-inbox .jhdc-chat-center-hero-mark svg{width:25px!important;height:25px!important}
 #jhdc-chat-inbox .jhdc-chat-center-hero p{font-size:11px!important}
 #jhdc-chat-inbox .jhdc-chat-center-nav{gap:3px}
 #jhdc-chat-inbox .jhdc-chat-center-nav button{padding:9px 10px!important;font-size:11px!important;min-height:40px}
 #jhdc-chat-inbox .jhdc-chat-area-hero{padding:9px 0 12px}
 #jhdc-chat-inbox .jhdc-chat-team-panel.is-page{height:clamp(420px,65dvh,680px);min-height:420px}
 #jhdc-chat-inbox .jhdc-chat-sidebar{min-width:0;width:100%;max-width:100%}
 #jhdc-chat-inbox .jhdc-chat-center-section:not([data-center-section="inbox"]) .jhdc-chat-section-body{padding:15px}
}
@media(max-width:480px){
 #jhdc-chat-inbox .jhdc-chat-center-hero-mark{display:none}
 #jhdc-chat-inbox .jhdc-chat-center-hero h1{font-size:25px!important}
 #jhdc-chat-inbox .jhdc-chat-area-symbol{width:39px;height:39px;border-radius:12px}
 #jhdc-chat-inbox .jhdc-chat-area-symbol svg{height:19px!important;width:19px!important}
 #jhdc-chat-inbox .jhdc-chat-area-hero h2{font-size:19px!important}
 #jhdc-chat-inbox .jhdc-chat-center-hero{min-height:130px}
 #jhdc-chat-inbox .jhdc-chat-center-nav button svg{width:16px!important;height:16px!important}
 #jhdc-chat-inbox .jhdc-chat-settings-form label{min-width:100%}
 #jhdc-chat-inbox .jhdc-chat-future{padding:16px;gap:10px}
 #jhdc-chat-inbox .jhdc-chat-future-icon{width:36px;height:36px}
 #jhdc-chat-inbox .jhdc-chat-future strong{font-size:12px}
 #jhdc-chat-inbox .jhdc-chat-future p{font-size:11px}
 #jhdc-chat-inbox .jhdc-chat-superitem>div:first-child{min-width:100%;}
 #jhdc-chat-inbox .jhdc-chat-center-section:not([data-center-section="inbox"]) .jhdc-chat-section-body{min-height:230px}
}
#jhdc-chat-inbox .jhdc-chat-center-panels{position:relative}
#jhdc-chat-inbox .jhdc-chat-center-toast:not([hidden]){position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:20000;background:#203957;color:#fff;border-radius:12px;padding:12px 18px;font-size:12px;box-shadow:0 12px 30px rgba(24,50,88,.2)}
#jhdc-chat-inbox .jhdc-chat-center-toast[hidden]{display:none!important}

/* Fase 2: acciones de historial del cliente; no recargan la bandeja de atención. */
.jhdc-chat-account-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:7px 12px;background:#f6f9fe;border-bottom:1px solid #e4eafb;max-height:85px;overflow:auto}
.jhdc-chat-account-tools[hidden]{display:none!important}
.jhdc-chat-account-tools .jhdc-chat-account-state{font-size:10px;font-weight:700;color:#456893;flex:1 1 auto;min-width:95px}
.jhdc-chat-account-tools button{border:1px solid #cadcf7;background:#fff;color:#245bad;border-radius:10px;padding:7px 9px;font-size:10px;font-weight:700;cursor:pointer;white-space:nowrap}
.jhdc-chat-account-tools button[data-client-link]{background:#ecf4ff;border-color:#9cbdf4}
.jhdc-chat-account-tools button[data-client-clear]{color:#9f4653;border-color:#f2d6db}
.jhdc-chat-account-tools button:focus-visible,.jhdc-chat-account-tools select:focus-visible{outline:2px solid #3b82f6;outline-offset:1px}
.jhdc-chat-account-tools select{border:1px solid #cadcf7;min-width:90px;max-width:100%;border-radius:9px;background:white;color:#25416f;font-size:10px;padding:6px;flex:1 1 110px}
@media(max-width:420px){.jhdc-chat-account-tools{padding:6px 9px;gap:5px}.jhdc-chat-account-tools button{padding:6px 8px}}


/* v1.0.27 · Panel Cliente: burbuja en tercera posición, sin desplazar las
   burbujas de Agente 89 y guía. La página pública conserva su posición. */
#jhdc-chat-widget.jhdc-chat-visitor.jhdc-chat-client:not(.is-open){
  right:clamp(12px,2vw,25px)!important;
  bottom:calc(201px + env(safe-area-inset-bottom,0px))!important;
}
#jhdc-chat-widget.jhdc-chat-client:not(.is-open) > button.jhdc-chat-launch{
  width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important;
  padding:0 14px!important;gap:0!important;justify-content:flex-start!important;
  border-radius:999px!important;overflow:hidden!important;white-space:nowrap;
  transition:width .25s ease, transform .2s ease, box-shadow .2s ease!important;
}
#jhdc-chat-widget.jhdc-chat-client:not(.is-open) > .jhdc-chat-launch > svg{
  width:25px!important;height:25px!important;flex:0 0 25px!important;
}
#jhdc-chat-widget.jhdc-chat-client:not(.is-open) > .jhdc-chat-launch > span{
  display:block!important;max-width:0!important;width:0!important;opacity:0!important;
  margin:0!important;overflow:hidden;pointer-events:none;font-size:12px!important;
  transition:max-width .24s ease,opacity .2s ease,margin .24s ease!important;
}
@media(hover:hover) and (pointer:fine){
  #jhdc-chat-widget.jhdc-chat-client:not(.is-open) > .jhdc-chat-launch:hover,
  #jhdc-chat-widget.jhdc-chat-client:not(.is-open) > .jhdc-chat-launch:focus-visible{width:188px!important;}
  #jhdc-chat-widget.jhdc-chat-client:not(.is-open) > .jhdc-chat-launch:hover > span,
  #jhdc-chat-widget.jhdc-chat-client:not(.is-open) > .jhdc-chat-launch:focus-visible > span{
    max-width:123px!important;width:123px!important;opacity:1!important;margin-left:9px!important;
  }
}
@media(max-width:760px){
  #jhdc-chat-widget.jhdc-chat-visitor.jhdc-chat-client:not(.is-open){
    right:12px!important;bottom:calc(205px + env(safe-area-inset-bottom,0px))!important;
  }
}
/* El modal del cliente conserva el mismo lenguaje visual público y nunca
   deja que los estilos del shell agranden la caja de escribir. */
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-guest-panel{
  max-width:100%!important;min-height:0!important;flex-direction:column!important;
}
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-head,
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-intro,
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-guest-bottom{flex-shrink:0!important;}
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-thread{min-height:0!important;flex:1 1 auto!important;}
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-guest-bottom{display:flex!important;flex-direction:column!important;}
#jhdc-chat-widget.jhdc-chat-client form.jhdc-chat-compose{
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
  width:100%!important;min-height:0!important;height:auto!important;
  align-items:flex-end!important;justify-content:flex-start!important;gap:7px!important;
  padding:9px 12px 5px!important;margin:0!important;
}
#jhdc-chat-widget.jhdc-chat-client form.jhdc-chat-compose textarea:not(.jhdc-chat-textarea-proxy),
#jhdc-chat-widget.jhdc-chat-client form.jhdc-chat-compose .jhdc-chat-rich-entry{
  box-sizing:border-box!important;display:block!important;flex:1 1 120px!important;
  min-width:0!important;width:auto!important;
  height:44px!important;min-height:44px!important;max-height:124px!important;
  padding:11px 13px!important;margin:0!important;
  line-height:20px!important;font-size:12.5px!important;font-weight:400!important;
  overflow-x:hidden!important;overflow-y:hidden;
  border:1px solid #dce6f5!important;border-radius:15px!important;
  background:#f7f9fd!important;color:#2b3852!important;
  resize:none!important;box-shadow:none!important;outline:0!important;
  white-space:pre-wrap!important;overflow-wrap:anywhere!important;
}
#jhdc-chat-widget.jhdc-chat-client form.jhdc-chat-compose .jhdc-chat-rich-entry:focus,
#jhdc-chat-widget.jhdc-chat-client form.jhdc-chat-compose textarea:not(.jhdc-chat-textarea-proxy):focus{
  border-color:#9fbef6!important;background:#fff!important;box-shadow:none!important;
}
#jhdc-chat-widget.jhdc-chat-client form.jhdc-chat-compose textarea.jhdc-chat-textarea-proxy{
  display:none!important;height:0!important;min-height:0!important;width:0!important;padding:0!important;
}
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-compose .jhdc-chat-attach-btn,
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-compose .jhdc-chat-mic-btn,
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-compose .jhdc-chat-send{
  flex-shrink:0!important;align-self:flex-end!important;
}
/* Consentimiento: mismo tamaño legible, sin la negrilla heredada del tema. */
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-consent{
  padding:9px 13px 2px!important;gap:6px!important;
}
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-consent label,
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-consent label span{
  font-size:11.5px!important;line-height:1.45!important;font-weight:400!important;
  letter-spacing:0!important;color:#667b98!important;
}
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-consent label{align-items:flex-start!important;gap:9px!important;cursor:pointer;}
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-consent input.jhdc-chat-agree{
  width:15px!important;height:15px!important;min-width:15px!important;
  margin:1px 0 0!important;flex:0 0 15px!important;
}
#jhdc-chat-widget.jhdc-chat-client .jhdc-chat-consent a{font-weight:550!important;}
@media(max-width:390px){
  #jhdc-chat-widget.jhdc-chat-client form.jhdc-chat-compose{padding:8px 9px 5px!important;gap:6px!important;}
  #jhdc-chat-widget.jhdc-chat-client .jhdc-chat-compose .jhdc-chat-send{
    width:39px!important;height:42px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #jhdc-chat-widget.jhdc-chat-client > .jhdc-chat-launch,
  #jhdc-chat-widget.jhdc-chat-client > .jhdc-chat-launch span{transition:none!important;}
}

/* v1.0.28 · Chat del Cliente exclusivamente en la barra superior.
   No altera las burbujas del público, Agente 89, operador o guía. */
#jhdc-chat-widget.jhdc-chat-client.jhdc-chat-header-ready > .jhdc-chat-launch{
  display:none!important;
}
body.dc-saas-app .dc-saas-topbar .dc-saas-topbar-actions > .jhdc-chat-client-header-btn{
  appearance:none!important;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;gap:7px!important;
  flex:0 0 auto!important;height:36px!important;min-height:36px!important;
  width:auto!important;min-width:0!important;max-width:150px!important;
  margin:0!important;padding:0 12px!important;
  border:1px solid #b9d2ff!important;border-radius:11px!important;
  background:#eff5ff!important;color:#1554ae!important;
  font-family:inherit!important;font-size:11.5px!important;font-weight:700!important;line-height:1.1!important;letter-spacing:0!important;
  box-shadow:none!important;cursor:pointer!important;
  transition:background-color .18s ease,border-color .18s ease!important;
  white-space:nowrap!important;
}
body.dc-saas-app .dc-saas-topbar .dc-saas-topbar-actions > .jhdc-chat-client-header-btn:hover,
body.dc-saas-app .dc-saas-topbar .dc-saas-topbar-actions > .jhdc-chat-client-header-btn[aria-expanded="true"]{
  background:#e1edff!important;border-color:#78abff!important;
}
body.dc-saas-app .dc-saas-topbar .dc-saas-topbar-actions > .jhdc-chat-client-header-btn:focus-visible{
  outline:2px solid #3c7eed!important;outline-offset:2px!important;
}
body.dc-saas-app .dc-saas-topbar .dc-saas-topbar-actions > .jhdc-chat-client-header-btn svg{
  display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;
  color:inherit!important;stroke:currentColor!important;
}
body.dc-saas-app .dc-saas-topbar .dc-saas-topbar-actions > .jhdc-chat-client-header-btn span{
  display:inline!important;color:inherit!important;font:inherit!important;line-height:1!important;
}
body.dc-saas-app .dc-saas-topbar .dc-saas-topbar-actions > .jhdc-chat-client-header-btn .jhdc-chat-topbar-short{display:none!important;}
@media(max-width:640px){
  body.dc-saas-app .dc-saas-topbar .dc-saas-topbar-actions > .jhdc-chat-client-header-btn{
    height:34px!important;min-height:34px!important;padding:0 8px!important;gap:5px!important;
    border-radius:10px!important;font-size:10px!important;
  }
  body.dc-saas-app .dc-saas-topbar .dc-saas-topbar-actions > .jhdc-chat-client-header-btn .jhdc-chat-topbar-full{display:none!important;}
  body.dc-saas-app .dc-saas-topbar .dc-saas-topbar-actions > .jhdc-chat-client-header-btn .jhdc-chat-topbar-short{display:inline!important;}
}
@media(max-width:360px){
  body.dc-saas-app .dc-saas-topbar .dc-saas-topbar-actions > .jhdc-chat-client-header-btn{
    padding:0 6px!important;font-size:9.5px!important;
  }
}
