/* doto v1.2 reference-matched visitor widget design fix with voice support */
.doto-chat-root{
  --doto-primary:#1e73be;
  --doto-primary-dark:#11508f;
  --doto-gold:#f2b01e;
  --doto-success:#22c55e;
  --doto-muted:#6b7280;
  --doto-bg:#f8fafc;
  --doto-white:#ffffff;
  --doto-text:#14213a;
  --doto-border:#e2e8f0;
  --doto-shadow:0 24px 64px rgba(17,80,143,.18),0 8px 24px rgba(15,23,42,.08);
  --doto-soft-shadow:0 8px 22px rgba(17,80,143,.075);
  position:fixed;
  z-index:2147483000;
  bottom:max(20px,env(safe-area-inset-bottom));
  width:62px;
  height:62px;
  color:var(--doto-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:14px;
  line-height:1.4;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  pointer-events:none;
}
.doto-position-right{right:max(20px,env(safe-area-inset-right))}
.doto-position-left{left:max(20px,env(safe-area-inset-left))}
.doto-chat-root *,
.doto-chat-root *::before,
.doto-chat-root *::after{box-sizing:border-box}
.doto-chat-root button,
.doto-chat-root input,
.doto-chat-root textarea{font:inherit}
.doto-chat-root button{touch-action:manipulation}
.doto-chat-root [hidden]{display:none!important}

/* Launcher */
.doto-chat-bubble{
  position:relative;
  width:62px;
  height:62px;
  padding:0;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(145deg,var(--doto-primary-dark),var(--doto-primary));
  box-shadow:0 16px 34px rgba(17,80,143,.28),0 4px 10px rgba(15,23,42,.12);
  cursor:pointer;
  pointer-events:auto;
  transition:transform .16s ease,box-shadow .16s ease;
}
.doto-chat-bubble:hover{transform:translateY(-2px);box-shadow:0 20px 40px rgba(17,80,143,.32),0 5px 12px rgba(15,23,42,.12)}
.doto-chat-bubble:focus-visible{outline:3px solid rgba(30,115,190,.24);outline-offset:4px}
.doto-bubble-icon,
.doto-bubble-close{display:grid;place-items:center}
.doto-bubble-icon svg{filter:drop-shadow(0 1px 1px rgba(0,0,0,.08))}
.doto-bubble-icon circle{fill:var(--doto-primary)}
.doto-bubble-close{display:none}
.doto-launcher-status{
  position:absolute;
  right:1px;
  bottom:3px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--doto-success);
  border:3px solid #fff;
  box-shadow:0 2px 7px rgba(34,197,94,.36);
}
.doto-chat-root.is-open .doto-bubble-icon{display:none}
.doto-chat-root.is-open .doto-bubble-close{display:grid}
.doto-chat-root.is-open .doto-launcher-status{display:none}

/* Minimized active-session bar */
.doto-chat-minibar{
  position:absolute;
  right:0;
  bottom:0;
  min-width:238px;
  max-width:290px;
  min-height:58px;
  padding:8px 34px 8px 9px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
  color:var(--doto-primary-dark);
  background:#fff;
  box-shadow:0 16px 36px rgba(17,80,143,.16);
  cursor:pointer;
  pointer-events:auto;
}
.doto-position-left .doto-chat-minibar{left:0;right:auto}
.doto-chat-minibar__avatar{
  position:relative;
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #e5edf5;
  border-radius:50%;
  color:var(--doto-primary-dark);
  background:#fff;
  font-size:11px;
  font-weight:800;
}
.doto-chat-minibar__avatar img,
.doto-header-avatar img,
.doto-mini-agent img,
.doto-typing-avatar img,
.doto-message-avatar img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.doto-chat-minibar__avatar span,
.doto-header-avatar span,
.doto-mini-agent span,
.doto-typing-avatar span,
.doto-message-avatar span{width:100%;height:100%;display:grid;place-items:center}
.doto-chat-minibar__copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.doto-chat-minibar__copy strong{
  display:block;
  overflow:hidden;
  max-width:180px;
  color:var(--doto-primary-dark);
  font-size:13px;
  line-height:1.2;
  font-weight:760;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.doto-chat-minibar__copy small{
  display:block;
  overflow:hidden;
  max-width:180px;
  margin-top:2px;
  color:var(--doto-muted);
  font-size:10.5px;
  line-height:1.25;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.doto-chat-minibar__close{
  position:absolute;
  top:7px;
  right:9px;
  width:21px;
  height:21px;
  display:grid;
  place-items:center;
  border-radius:7px;
  color:#64748b;
  font-size:18px;
  line-height:1;
}
.doto-minibar-status{
  position:absolute;
  right:6px;
  bottom:5px;
  width:11px;
  height:11px;
  border:2px solid #fff;
  border-radius:50%;
  background:var(--doto-success);
}
.doto-chat-root.has-session:not(.is-open) .doto-chat-bubble{display:none}
.doto-chat-root.is-open .doto-chat-minibar{display:none!important}

/* Widget shell */
.doto-chat-window{
  position:absolute;
  right:0;
  bottom:0;
  width:380px;
  height:min(624px,calc(100vh - 118px));
  max-height:624px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(226,232,240,.96);
  border-radius:23px;
  color:var(--doto-text);
  background:#fff;
  box-shadow:var(--doto-shadow);
  opacity:0;
  visibility:hidden;
  transform:translateY(12px) scale(.985);
  transform-origin:bottom right;
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.doto-position-left .doto-chat-window{
  left:0;
  right:auto;
  transform-origin:bottom left;
}
.doto-chat-root.is-open{width:auto;height:auto;pointer-events:none}
.doto-chat-root.is-open .doto-chat-window{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.doto-chat-root.is-open .doto-chat-bubble{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

/* Header */
.doto-chat-header{
  position:relative;
  z-index:4;
  min-height:96px;
  flex:0 0 96px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:15px 14px 27px;
  color:#fff;
  background:linear-gradient(135deg,var(--doto-primary-dark) 0%,var(--doto-primary) 64%,#169fe3 100%)!important;
  overflow:hidden;
}
.doto-chat-header::before{
  content:"";
  position:absolute;
  z-index:0;
  left:-8%;
  right:-8%;
  bottom:-1px;
  height:22px;
  border-top:3px solid var(--doto-gold);
  border-radius:50% 50% 0 0/100% 100% 0 0;
  background:#fff;
}
.doto-chat-header::after{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  pointer-events:none;
  background:radial-gradient(circle at 88% 5%,rgba(255,255,255,.16),transparent 30%);
}
.doto-header-main,
.doto-header-actions{position:relative;z-index:2}
.doto-header-main{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.doto-header-avatar{
  position:relative;
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:2px solid rgba(255,255,255,.82);
  border-radius:50%;
  color:var(--doto-primary-dark);
  background:#fff;
  box-shadow:0 5px 14px rgba(3,32,63,.17);
  font-size:11px;
  font-weight:800;
}
.doto-header-avatar i{
  position:absolute;
  right:-1px;
  bottom:0;
  width:9px;
  height:9px;
  border:2px solid #fff;
  border-radius:50%;
  background:var(--doto-success);
}
.doto-header-copy{min-width:0;padding-top:1px}
.doto-chat-header h2{
  margin:0;
  overflow:hidden;
  max-width:225px;
  color:#fff;
  font-size:14px;
  line-height:1.25;
  font-weight:750;
  letter-spacing:-.01em;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.doto-chat-header p{
  margin:4px 0 0;
  display:flex;
  align-items:center;
  gap:6px;
  color:rgba(255,255,255,.94);
  font-size:10.5px;
  line-height:1.3;
}
.doto-chat-header small{
  display:block;
  margin-top:2px;
  color:rgba(255,255,255,.82);
  font-size:10px;
}
.doto-online-dot{
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:var(--doto-success);
  box-shadow:0 0 0 2px rgba(34,197,94,.15);
}
.doto-header-actions{
  display:flex;
  align-items:center;
  gap:4px;
}
.doto-header-menu,
.doto-close{
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:9px;
  color:#fff;
  background:transparent;
}
.doto-close{cursor:pointer}
.doto-close:hover,
.doto-close:focus-visible{background:rgba(255,255,255,.13);outline:0}
.doto-header-menu{color:rgba(255,255,255,.88)}

/* Status/error */
.doto-alert{
  position:relative;
  z-index:5;
  margin:8px 14px 0;
  padding:9px 11px;
  border:1px solid #fecaca;
  border-radius:10px;
  color:#991b1b;
  background:#fef2f2;
  font-size:11.5px;
  line-height:1.4;
}

/* Shared screen containers */
.doto-start,
.doto-flow,
.doto-conversation{
  flex:1;
  min-height:0;
  color:var(--doto-text);
  background:#fff;
}
.doto-start,
.doto-flow{
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}
.doto-start::-webkit-scrollbar,
.doto-flow::-webkit-scrollbar,
.doto-messages::-webkit-scrollbar{width:5px}
.doto-start::-webkit-scrollbar-thumb,
.doto-flow::-webkit-scrollbar-thumb,
.doto-messages::-webkit-scrollbar-thumb{border-radius:999px;background:#cbd5e1}
.doto-smart-start{
  padding:6px 14px 12px;
  display:flex;
  flex-direction:column;
}

/* Welcome */
.doto-welcome-card{
  position:relative;
  margin:0 0 12px;
  padding:14px 14px 13px;
  border:1px solid #e3eaf2;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 14px rgba(17,80,143,.045);
}
.doto-welcome-card strong{
  display:block;
  margin:0;
  color:#102a4c;
  font-size:15px;
  line-height:1.35;
  font-weight:760;
  letter-spacing:-.015em;
}
.doto-welcome-card p{
  margin:7px 0 0;
  color:var(--doto-muted);
  font-size:11.5px;
  line-height:1.4;
}
.doto-welcome-accent{
  display:block;
  width:26px;
  height:3px;
  margin-top:10px;
  border-radius:99px;
  background:var(--doto-gold);
}
.doto-welcome-thread{display:block}
.doto-mini-agent,
.doto-welcome-kicker,
.doto-helper-line{display:none!important}

.doto-flow-options{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:9px;
}
.doto-flow-option{
  min-height:83px;
  padding:11px 10px;
  display:flex;
  align-items:flex-start;
  gap:8px;
  border:1px solid #e1e8f0;
  border-radius:15px;
  color:#112b4f;
  background:#fff;
  box-shadow:0 4px 12px rgba(17,80,143,.035);
  text-align:left;
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.doto-flow-option:hover,
.doto-flow-option:focus-visible{
  transform:translateY(-1px);
  border-color:#b7d5ef;
  box-shadow:0 8px 17px rgba(17,80,143,.08);
  outline:0;
}
.doto-flow-icon{
  width:31px;
  height:31px;
  flex:0 0 31px;
  display:grid;
  place-items:center;
  border-radius:10px;
}
.doto-flow-option-human_support .doto-flow-icon{color:var(--doto-primary-dark);background:#edf6ff}
.doto-flow-option-quotation .doto-flow-icon{color:#a56b00;background:#fff5d9}
.doto-flow-option-whatsapp_callback .doto-flow-icon{color:#12823d;background:#eaf9ef}
.doto-flow-option-ai_chat .doto-flow-icon{color:var(--doto-primary);background:#edf6ff}
.doto-flow-icon svg{
  width:18px;
  height:18px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.doto-flow-copy{display:block;min-width:0}
.doto-flow-copy strong{
  display:block;
  color:#102a4c;
  font-size:12.1px;
  line-height:1.25;
  font-weight:750;
}
.doto-flow-copy small{
  display:block;
  margin-top:4px;
  color:var(--doto-muted);
  font-size:9.7px;
  line-height:1.35;
}

.doto-composer-preview{
  margin-top:auto;
  padding-top:12px;
}
.doto-composer-card{
  padding:10px 11px 9px;
  border:1px solid #dce5ee;
  border-radius:15px;
  background:#fff;
  box-shadow:0 5px 16px rgba(17,80,143,.055);
}
.doto-composer-card textarea{
  display:block;
  width:100%;
  min-height:28px;
  max-height:82px;
  margin:0;
  padding:1px 2px;
  border:0!important;
  border-radius:0!important;
  color:var(--doto-text);
  background:transparent!important;
  box-shadow:none!important;
  resize:none;
  outline:0!important;
  line-height:1.4;
  font-size:12px;
}
.doto-composer-card textarea::placeholder{color:#94a3b8}
.doto-composer-preview textarea{pointer-events:none}
.doto-composer-toolbar{
  margin-top:7px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.doto-composer-tools{
  display:flex;
  align-items:center;
  gap:4px;
}
.doto-icon-btn{
  width:31px;
  height:31px;
  padding:0;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  color:#64748b;
  background:transparent;
  cursor:pointer;
}
button.doto-icon-btn:hover,
button.doto-icon-btn:focus-visible{
  color:var(--doto-primary-dark);
  background:#edf6ff;
  outline:0;
}
.doto-icon-btn[aria-pressed="true"]{
  color:#b91c1c;
  background:#fee2e2;
}
.doto-icon-btn:disabled{opacity:.4;cursor:not-allowed}
.doto-send{
  width:38px;
  height:38px;
  flex:0 0 38px;
  padding:0;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(145deg,var(--doto-primary),var(--doto-primary-dark));
  box-shadow:0 6px 14px rgba(17,80,143,.22);
  cursor:pointer;
  appearance:none;
}
.doto-send svg{display:block}
.doto-send:focus-visible{outline:3px solid rgba(30,115,190,.2);outline-offset:2px}
.doto-send:disabled{opacity:.55;cursor:not-allowed}
.doto-input-brand,
.doto-flow-brand{
  margin-top:7px;
  color:#94a3b8;
  font-size:9.5px;
  line-height:1.2;
  text-align:center;
}

/* Flow screens */
.doto-flow{
  position:relative;
  padding:4px 14px 12px;
  display:flex;
  flex-direction:column;
}
.doto-flow-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:31px;
  gap:8px;
}
.doto-back-btn{
  min-height:30px;
  padding:0 5px 0 0;
  display:inline-flex;
  align-items:center;
  gap:3px;
  border:0;
  color:var(--doto-primary-dark);
  background:transparent;
  font-size:11px;
  line-height:1;
  font-weight:700;
  cursor:pointer;
}
.doto-back-btn svg{display:block}
.doto-flow-step-count{
  color:var(--doto-muted);
  font-size:10.5px;
  font-weight:600;
}
.doto-flow-progress-wrap{margin:2px 0 14px}
.doto-flow-progress-copy{
  min-height:15px;
  margin-bottom:6px;
  display:flex;
  justify-content:flex-start;
}
.doto-flow-progress-copy strong{
  color:var(--doto-primary-dark);
  font-size:10.5px;
  line-height:1.3;
  font-weight:700;
}
.doto-flow-progress{
  position:relative;
  height:4px;
  overflow:hidden;
  border-radius:99px;
  background:#e7edf3;
}
.doto-flow-progress::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:25%;
  width:2px;
  background:#fff;
  box-shadow:94px 0 0 #fff,188px 0 0 #fff;
  opacity:.9;
}
.doto-flow-progress span{
  display:block;
  width:0;
  height:100%;
  border-radius:99px;
  background:linear-gradient(90deg,var(--doto-primary) 0%,var(--doto-primary) 70%,var(--doto-gold) 100%);
  transition:width .16s ease;
}
#doto-flow-form{display:flex;flex:1;min-height:0;flex-direction:column}
#doto-flow-question{min-height:0}
.doto-flow-question{
  padding:0;
  border:0;
  border-radius:0;
  color:var(--doto-text);
  background:#fff;
  box-shadow:none;
}
.doto-flow-question > label:first-child{
  display:block;
  margin:0 0 6px;
  color:#102a4c;
  font-size:15px;
  line-height:1.35;
  font-weight:760;
  letter-spacing:-.015em;
}
.doto-flow-help{
  margin:0 0 13px;
  color:var(--doto-muted);
  font-size:11.5px;
  line-height:1.5;
}
.doto-flow-question > label:not(:first-child),
.doto-flow-question label{
  display:block;
  margin:12px 0 6px;
  color:#294462;
  font-size:11px;
  line-height:1.35;
  font-weight:700;
}
.doto-flow input,
.doto-flow textarea,
.doto-start input,
.doto-start textarea{
  width:100%;
  border:1px solid #dce5ee;
  border-radius:10px;
  color:var(--doto-text);
  background:#fff;
  box-shadow:none;
  outline:0;
  font-size:12px;
  transition:border-color .14s ease,box-shadow .14s ease;
}
.doto-flow input,
.doto-start input{
  height:42px;
  padding:0 12px;
}
.doto-flow textarea,
.doto-start textarea{
  min-height:108px;
  padding:10px 12px;
  line-height:1.45;
  resize:vertical;
}
.doto-flow input:focus,
.doto-flow textarea:focus,
.doto-start input:focus,
.doto-start textarea:focus{
  border-color:#8dbce4;
  box-shadow:0 0 0 3px rgba(30,115,190,.09);
}
.doto-field-shell{
  position:relative;
  display:block;
  width:100%;
  min-width:0;
}
.doto-chat-root .doto-field-shell > svg{
  position:absolute;
  z-index:2;
  left:13px;
  top:50%;
  width:16px;
  height:16px;
  margin:0;
  color:#64748b;
  transform:translateY(-50%);
  pointer-events:none;
}
.doto-chat-root .doto-field-shell > input{
  width:100%;
  min-width:0;
  padding:0 12px 0 42px!important;
  text-indent:0!important;
}
[dir="rtl"] .doto-chat-root .doto-field-shell > svg,
.doto-chat-root[dir="rtl"] .doto-field-shell > svg,
.doto-chat-root .doto-field-shell[dir="rtl"] > svg{
  left:auto;
  right:13px;
}
[dir="rtl"] .doto-chat-root .doto-field-shell > input,
.doto-chat-root[dir="rtl"] .doto-field-shell > input,
.doto-chat-root .doto-field-shell[dir="rtl"] > input{
  padding:0 42px 0 12px!important;
}

.doto-choice-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:8px;
}
.doto-choice{
  position:relative;
  z-index:1;
  min-height:32px;
  padding:6px 10px;
  border:1px solid #ccd9e6;
  border-radius:8px;
  color:var(--doto-primary-dark);
  background:#fff;
  font-size:10.5px;
  line-height:1.2;
  font-weight:700;
  text-align:center;
  cursor:pointer;
  pointer-events:auto;
}
.doto-choice:hover,
.doto-choice:focus-visible{
  border-color:#8dbce4;
  background:#f4f9fd;
  outline:0;
}
.doto-choice.is-selected{
  border-color:var(--doto-primary);
  color:#fff;
  background:var(--doto-primary);
  box-shadow:0 4px 10px rgba(30,115,190,.16);
}
.doto-primary-btn{
  width:100%;
  min-height:42px;
  margin-top:13px;
  padding:0 14px;
  border:0;
  border-radius:8px;
  color:#fff;
  background:linear-gradient(90deg,var(--doto-primary),var(--doto-primary-dark));
  box-shadow:0 7px 15px rgba(17,80,143,.17);
  font-size:12px;
  line-height:1;
  font-weight:750;
  cursor:pointer;
}
.doto-primary-btn:hover{filter:brightness(1.02)}
.doto-primary-btn:focus-visible{outline:3px solid rgba(30,115,190,.2);outline-offset:2px}
.doto-primary-btn:disabled{opacity:.55;cursor:wait}
.doto-flow-brand{margin-top:auto;padding-top:8px}

/* Message-intake composer on step 4 */
.doto-flow-message-card{
  margin-top:9px;
  padding:10px;
  border:1px solid #dce5ee;
  border-radius:12px;
  background:#fff;
  box-shadow:0 5px 14px rgba(17,80,143,.045);
}
.doto-flow-message-card textarea{
  min-height:112px;
  padding:0;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  resize:none;
}
.doto-flow-message-card .doto-composer-toolbar{margin-top:6px}
.doto-flow-message-card .doto-prechat-tool{
  width:30px;
  height:30px;
  padding:0;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  color:#64748b;
  background:transparent;
  cursor:pointer;
}
.doto-flow-message-card .doto-prechat-tool:hover{color:var(--doto-primary-dark);background:#edf6ff}
.doto-flow-message-card .doto-prechat-send{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  color:#fff;
  background:var(--doto-primary);
  cursor:pointer;
}

/* Quote summary */
.doto-summary-card{
  padding:12px;
  border:1px solid #dce5ee;
  border-radius:13px;
  background:var(--doto-bg);
}
.doto-summary-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  border-bottom:1px solid #e5ebf1;
}
.doto-summary-row:last-child{border-bottom:0}
.doto-summary-row span{
  color:var(--doto-muted);
  font-size:10.5px;
}
.doto-summary-row strong{
  max-width:64%;
  color:#102a4c;
  font-size:10.8px;
  text-align:right;
  overflow-wrap:anywhere;
}
.doto-summary-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.doto-summary-chip{
  padding:5px 8px;
  border:1px solid #c9dced;
  border-radius:999px;
  color:var(--doto-primary-dark);
  background:#edf6ff;
  font-size:9.5px;
  font-weight:700;
}

/* AI and action cards */
.doto-ai-intro{
  position:relative;
  margin:0 0 12px;
  padding:11px 12px;
  border:1px solid #e1e8f0;
  border-radius:13px 13px 13px 5px;
  color:#203a59;
  background:#fff;
  box-shadow:0 4px 12px rgba(17,80,143,.045);
  font-size:11.5px;
  line-height:1.45;
}
.doto-ai-intro strong{display:block;margin-bottom:2px;color:#102a4c}
.doto-ai-topic-list,
.doto-action-list{
  display:grid;
  gap:7px;
  margin-top:8px;
}
.doto-ai-topic,
.doto-action-card{
  width:100%;
  min-height:50px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid #dce5ee;
  border-radius:11px;
  color:#153456;
  background:#fff;
  text-align:left;
  cursor:pointer;
  box-shadow:0 3px 9px rgba(17,80,143,.035);
}
.doto-ai-topic:hover,
.doto-ai-topic:focus-visible,
.doto-ai-topic.is-selected,
.doto-action-card:hover,
.doto-action-card:focus-visible{
  border-color:#a9cae6;
  background:#f8fbfe;
  outline:0;
}
.doto-ai-topic__icon,
.doto-action-card__icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:var(--doto-primary);
  background:#edf6ff;
}
.doto-ai-topic__copy,
.doto-action-card__copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.doto-ai-topic__copy strong,
.doto-action-card__copy strong{
  color:#153456;
  font-size:11.2px;
  line-height:1.25;
  font-weight:730;
}
.doto-ai-topic__copy small,
.doto-action-card__copy small{
  color:var(--doto-muted);
  font-size:9.5px;
  line-height:1.35;
}
.doto-ai-topic__chevron,
.doto-action-card__chevron{
  margin-left:auto;
  color:#64748b;
  font-size:17px;
  line-height:1;
}
.doto-action-card[data-flow-action="route_whatsapp_callback"] .doto-action-card__icon,
.doto-action-card[data-flow-action="request_callback"] .doto-action-card__icon{color:#12823d;background:#eaf9ef}
.doto-ai-question{
  margin-top:10px;
  padding:5px 5px 5px 10px;
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #dce5ee;
  border-radius:11px;
  background:#fff;
}
.doto-ai-question input{
  min-width:0;
  height:32px;
  flex:1;
  padding:0;
  border:0;
  color:var(--doto-text);
  background:transparent;
  box-shadow:none;
  outline:0;
  font-size:10.5px;
}
.doto-ai-question button{
  width:31px;
  height:31px;
  flex:0 0 31px;
  padding:0;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  color:#fff;
  background:var(--doto-primary);
  cursor:pointer;
}

/* Conversation */
.doto-conversation{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
}
.doto-messages{
  flex:1;
  min-height:0;
  padding:8px 13px 12px;
  display:flex;
  flex-direction:column;
  gap:9px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scroll-behavior:smooth;
}
.doto-message{
  width:100%;
  display:flex;
  align-items:flex-end;
  gap:6px;
}
.doto-message.is-visitor{justify-content:flex-end}
.doto-message.is-staff,
.doto-message.is-system{justify-content:flex-start}
.doto-message-avatar{
  width:24px;
  height:24px;
  flex:0 0 24px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #dce5ee;
  border-radius:50%;
  color:var(--doto-primary-dark);
  background:#fff;
  font-size:8px;
  font-weight:800;
}
.doto-bubble{
  max-width:78%;
  padding:9px 10px 7px;
  border:1px solid #e0e7ef;
  border-radius:13px 13px 13px 5px;
  color:#20354f;
  background:#fff;
  box-shadow:0 4px 12px rgba(17,80,143,.045);
  font-size:11.5px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.doto-message.is-visitor .doto-bubble{
  border-color:transparent;
  border-radius:13px 13px 5px 13px;
  color:#fff;
  background:linear-gradient(145deg,var(--doto-primary),var(--doto-primary-dark));
  box-shadow:0 6px 14px rgba(17,80,143,.14);
}
.doto-message.is-system .doto-bubble{
  max-width:90%;
  border-color:#dce5ee;
  color:#40536b;
  background:#f8fafc;
  font-size:10.8px;
  box-shadow:none;
}
.doto-bubble p{margin:0}
.doto-bubble > div[dir="rtl"]{
  direction:rtl;
  text-align:right;
  unicode-bidi:plaintext;
}
.doto-meta{
  margin-top:4px;
  display:flex;
  justify-content:flex-end;
  gap:6px;
  color:#94a3b8;
  font-size:8.7px;
  line-height:1.2;
}
.doto-message.is-visitor .doto-meta{color:rgba(255,255,255,.76)}
.doto-message.is-staff .doto-meta{justify-content:flex-start}
.doto-attachment-image{
  display:block;
  width:auto;
  max-width:220px;
  max-height:230px;
  border-radius:9px;
  object-fit:cover;
}
.doto-bubble-image{padding:5px}
.doto-bubble-image .doto-meta{padding:0 3px 2px}

/* Audio messages */
.doto-bubble-audio{padding:9px 10px 7px}
.doto-audio-message{width:218px;max-width:62vw}
.doto-audio-top{
  margin-bottom:6px;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  line-height:1.2;
  font-weight:700;
}
.doto-audio-icon{
  width:24px;
  height:24px;
  flex:0 0 24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:var(--doto-primary-dark);
  background:#eaf4fd;
}
.doto-message.is-visitor .doto-audio-icon{color:var(--doto-primary-dark);background:#fff}
.doto-audio-label{flex:1;min-width:0}
.doto-audio-duration{font-size:9px;font-weight:600;opacity:.8}
.doto-audio{
  display:block;
  width:100%;
  height:31px;
  accent-color:var(--doto-primary);
}
.doto-message.is-visitor .doto-audio{filter:brightness(1.02)}

/* Typing */
.doto-typing-indicator{
  margin:0 13px 7px;
  min-height:32px;
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--doto-muted);
  font-size:9.8px;
}
.doto-typing-avatar{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #dce5ee;
  border-radius:50%;
  color:var(--doto-primary-dark);
  background:#fff;
  font-size:8px;
  font-weight:800;
}
.doto-typing-dots{display:inline-flex;align-items:center;gap:3px}
.doto-typing-dots i{
  width:5px;
  height:5px;
  border-radius:50%;
  background:#94a3b8;
  animation:dotoTyping 1s infinite ease-in-out;
}
.doto-typing-dots i:nth-child(2){animation-delay:.12s}
.doto-typing-dots i:nth-child(3){animation-delay:.24s}
@keyframes dotoTyping{
  0%,80%,100%{opacity:.35;transform:translateY(0)}
  40%{opacity:1;transform:translateY(-1px)}
}

/* Voice recorder */
.doto-recorder{
  margin:0 13px 8px;
  padding:9px 10px;
  border:1px solid #dce5ee;
  border-radius:12px;
  background:#fff;
  box-shadow:0 5px 12px rgba(17,80,143,.05);
}
.doto-recorder-head{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:22px;
}
.doto-recording-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#ef4444;
  box-shadow:0 0 0 3px rgba(239,68,68,.11);
}
.doto-recorder-head strong{
  color:#334155;
  font-size:10.5px;
  font-weight:700;
}
#doto-recording-time{
  margin-left:auto;
  color:#64748b;
  font-size:10px;
  font-variant-numeric:tabular-nums;
}
.doto-recorder audio{
  width:100%;
  height:31px;
  margin-top:6px;
  display:block;
}
.doto-recorder-actions{
  margin-top:7px;
  display:flex;
  align-items:center;
  gap:6px;
}
.doto-recorder-actions button{
  min-height:30px;
  padding:0 9px;
  border:1px solid #d6e1eb;
  border-radius:8px;
  color:var(--doto-primary-dark);
  background:#fff;
  font-size:9.7px;
  font-weight:700;
  cursor:pointer;
}
#doto-send-recording{
  border-color:var(--doto-primary);
  color:#fff;
  background:var(--doto-primary);
}
#doto-cancel-recording{margin-left:auto;color:#64748b}
.doto-chat-root.is-recording .doto-recording-dot{animation:dotoRecordPulse 1.2s infinite ease-in-out}
@keyframes dotoRecordPulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.55;transform:scale(.82)}
}

/* Composer */
.doto-composer{
  flex:0 0 auto;
  padding:0 13px 10px;
  background:transparent;
}
.doto-input-brand{margin-top:6px}
.doto-conversation .doto-composer-card{padding:9px 10px 8px}
.doto-conversation .doto-composer-card textarea{min-height:30px}

/* Session ended */
.doto-session-ended{
  width:100%;
  margin:auto 0;
  padding:18px 14px;
  border:1px solid #dce5ee;
  border-radius:15px;
  background:#fff;
  text-align:center;
  box-shadow:var(--doto-soft-shadow);
}
.doto-session-ended__icon{
  width:38px;
  height:38px;
  margin:0 auto 9px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#15803d;
  background:#ecfdf3;
}
.doto-session-ended__icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.doto-session-ended strong{display:block;color:#102a4c}
.doto-session-ended p{margin:5px 0 0;color:var(--doto-muted);font-size:11px}
.doto-return-home{
  min-height:36px;
  margin-top:10px;
  padding:0 12px;
  border:1px solid #cbd9e6;
  border-radius:9px;
  color:var(--doto-primary-dark);
  background:#fff;
  font-size:10.5px;
  font-weight:700;
  cursor:pointer;
}
.doto-return-home svg{width:14px;height:14px;margin-right:5px;vertical-align:-2px;fill:none;stroke:currentColor;stroke-width:1.7}

/* Legacy fallback start */
#doto-start{padding:8px 14px 12px}
#doto-start .doto-welcome{margin:0 0 12px;color:var(--doto-muted);white-space:pre-line}
#doto-start label{display:block;margin-bottom:9px;color:#294462;font-size:11px;font-weight:700}

/* Cookie banner */
.doto-consent{
  position:fixed;
  z-index:2147483001;
  left:max(16px,env(safe-area-inset-left));
  bottom:max(16px,env(safe-area-inset-bottom));
  width:min(430px,calc(100vw - 104px));
  pointer-events:none;
}
.doto-consent-card{
  width:100%;
  padding:12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  border:1px solid #dce5ee;
  border-radius:14px;
  background:rgba(255,255,255,.985);
  box-shadow:0 12px 28px rgba(17,80,143,.12);
  pointer-events:auto;
}
.doto-consent-card p{
  margin:0;
  color:#526176;
  font-size:10.8px;
  line-height:1.45;
}
.doto-consent-actions{
  display:grid;
  grid-template-columns:auto auto;
  gap:6px;
}
.doto-consent-actions button,
.doto-consent-dialog-actions button,
.doto-cookie-link{
  min-height:31px;
  padding:0 10px;
  border:1px solid #d5e0ea;
  border-radius:8px;
  color:var(--doto-primary-dark);
  background:#fff;
  font-size:9.7px;
  line-height:1;
  font-weight:700;
  cursor:pointer;
}
.doto-consent-actions button:first-child{
  grid-column:1/-1;
  border-color:var(--doto-primary);
  color:#fff;
  background:var(--doto-primary);
}
.doto-consent-actions button:nth-child(3){color:#64748b}
.doto-cookie-link{
  position:fixed;
  z-index:2147482999;
  left:max(12px,env(safe-area-inset-left));
  bottom:max(10px,env(safe-area-inset-bottom));
  min-height:28px;
  padding:0 8px;
  color:#64748b;
  background:rgba(255,255,255,.94);
  box-shadow:0 5px 12px rgba(15,23,42,.06);
  pointer-events:auto;
}
.doto-consent-modal{
  position:fixed;
  z-index:2147483002;
  inset:0;
  padding:16px;
  display:grid;
  place-items:center;
  background:rgba(15,23,42,.28);
  pointer-events:auto;
}
.doto-consent-dialog{
  width:min(440px,100%);
  max-height:min(620px,calc(100vh - 32px));
  padding:16px;
  overflow:auto;
  border-radius:17px;
  background:#fff;
  box-shadow:var(--doto-shadow);
}
.doto-consent-dialog h3{
  margin:0 0 13px;
  color:#102a4c;
  font-size:17px;
  font-weight:760;
}
.doto-consent-row{
  margin:0 0 11px;
  display:flex;
  align-items:flex-start;
  gap:9px;
}
.doto-consent-row input{margin-top:3px;accent-color:var(--doto-primary)}
.doto-consent-row strong{display:block;color:#294462;font-size:11.5px}
.doto-consent-row small{display:block;margin-top:2px;color:var(--doto-muted);font-size:10px;line-height:1.4}
.doto-consent-dialog-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:13px}
.doto-consent-dialog-actions button:first-child{border-color:var(--doto-primary);color:#fff;background:var(--doto-primary)}

/* RTL */
.doto-message [dir="rtl"],
.doto-flow textarea[dir="rtl"],
.doto-composer textarea[dir="rtl"]{direction:rtl;text-align:right}
html[dir="rtl"] .doto-flow-option,
html[dir="rtl"] .doto-ai-topic,
html[dir="rtl"] .doto-action-card{text-align:right}
html[dir="rtl"] .doto-ai-topic__chevron,
html[dir="rtl"] .doto-action-card__chevron{margin-left:0;margin-right:auto;transform:scaleX(-1)}

/* Mobile */
@media (max-width:640px){
  html.doto-chat-open,
  body.doto-chat-open{overscroll-behavior:none}
  .doto-chat-root{
    left:0!important;
    right:0!important;
    bottom:0;
    width:0;
    height:0;
  }
  .doto-chat-bubble{
    position:fixed;
    right:max(15px,env(safe-area-inset-right));
    bottom:max(15px,env(safe-area-inset-bottom));
    width:58px;
    height:58px;
  }
  .doto-position-left .doto-chat-bubble{
    left:max(15px,env(safe-area-inset-left));
    right:auto;
  }
  .doto-chat-minibar{
    position:fixed;
    right:max(12px,env(safe-area-inset-right));
    bottom:max(14px,env(safe-area-inset-bottom));
    max-width:min(290px,calc(100vw - 24px));
  }
  .doto-position-left .doto-chat-minibar{
    left:max(12px,env(safe-area-inset-left));
    right:auto;
  }
  .doto-chat-window{
    position:fixed;
    left:max(8px,env(safe-area-inset-left));
    right:max(8px,env(safe-area-inset-right));
    bottom:max(8px,env(safe-area-inset-bottom));
    width:auto;
    height:min(720px,calc(100dvh - 16px));
    max-height:calc(100dvh - 16px);
    border-radius:20px;
    transform-origin:bottom center;
  }
  .doto-chat-root.is-open .doto-chat-bubble{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }
  .doto-chat-header{min-height:91px;flex-basis:91px;padding:13px 12px 25px}
  .doto-chat-header h2{max-width:210px;font-size:13.5px}
  .doto-chat-header p{font-size:10px}
  .doto-header-avatar{width:40px;height:40px;flex-basis:40px}
  .doto-smart-start{padding:4px 12px 10px}
  .doto-welcome-card{padding:12px;margin-bottom:10px}
  .doto-flow-options{gap:8px}
  .doto-flow-option{min-height:77px;padding:9px}
  .doto-composer-preview{padding-top:10px}
  .doto-flow{padding:3px 12px 10px}
  .doto-messages{padding:7px 11px 10px}
  .doto-composer{padding:0 11px 9px}
  .doto-bubble{max-width:82%}
  .doto-audio-message{max-width:66vw}
  .doto-consent{
    left:10px;
    right:10px;
    bottom:max(82px,calc(env(safe-area-inset-bottom) + 72px));
    width:auto;
  }
  .doto-consent-card{
    grid-template-columns:1fr;
    gap:9px;
    border-radius:14px;
  }
  .doto-consent-actions{grid-template-columns:1fr 1fr}
  .doto-consent-actions button:first-child{grid-column:1/-1}
  .doto-cookie-link{left:10px;bottom:max(9px,env(safe-area-inset-bottom))}
}
@media (max-width:420px){
  .doto-chat-window{
    left:5px;
    right:5px;
    bottom:5px;
    height:calc(100dvh - 10px);
    max-height:calc(100dvh - 10px);
    border-radius:18px;
  }
  .doto-chat-header{border-radius:0}
  .doto-flow-copy strong{font-size:11.5px}
  .doto-flow-copy small{font-size:9.2px}
  .doto-flow-icon{width:29px;height:29px;flex-basis:29px}
  .doto-choice{font-size:10px}
  .doto-chat-minibar{
    left:8px!important;
    right:8px!important;
    max-width:none;
  }
}
@media (max-height:690px) and (min-width:641px){
  .doto-chat-window{height:calc(100vh - 40px);bottom:0}
  .doto-smart-start{padding-top:3px}
  .doto-flow-option{min-height:76px}
  .doto-welcome-card{padding:11px;margin-bottom:9px}
}
@media (prefers-reduced-motion:reduce){
  .doto-chat-window,
  .doto-chat-bubble,
  .doto-flow-option,
  .doto-flow-progress span{transition:none}
  .doto-typing-dots i,
  .doto-chat-root.is-recording .doto-recording-dot{animation:none}
}


/* v1.2.2 visitor-widget visual corrections */
#doto-chat-root.doto-chat-root .doto-chat-window{
  isolation:isolate;
  contain:paint;
}
#doto-chat-root.doto-chat-root.is-welcome .doto-chat-window{
  height:min(430px,calc(100vh - 40px))!important;
  max-height:min(430px,calc(100vh - 40px))!important;
}
#doto-chat-root.doto-chat-root .doto-chat-header{
  overflow:hidden!important;
  contain:paint;
}
#doto-chat-root.doto-chat-root .doto-header-main{
  min-width:0;
  overflow:hidden;
}
#doto-chat-root.doto-chat-root .doto-header-actions{
  flex:0 0 auto;
  gap:0;
}
#doto-chat-root.doto-chat-root .doto-header-menu{
  display:none!important;
}
#doto-chat-root.doto-chat-root button.doto-close{
  width:32px!important;
  min-width:32px!important;
  max-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  padding:0!important;
  border:0!important;
  border-radius:10px!important;
  display:inline-grid!important;
  place-items:center!important;
  color:#fff!important;
  background:transparent!important;
  box-shadow:none!important;
  line-height:0!important;
}
#doto-chat-root.doto-chat-root button.doto-close svg{
  width:19px!important;
  height:19px!important;
  display:block!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
}
#doto-chat-root.doto-chat-root .doto-header-avatar{
  overflow:hidden!important;
  clip-path:circle(50%);
}
#doto-chat-root.doto-chat-root .doto-header-avatar>i{
  display:none!important;
}
#doto-chat-root.doto-chat-root .doto-header-avatar img,
#doto-chat-root.doto-chat-root .doto-chat-minibar__avatar img,
#doto-chat-root.doto-chat-root .doto-typing-avatar img,
#doto-chat-root.doto-chat-root .doto-message-avatar img{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  object-fit:contain!important;
  transform:none!important;
  filter:none!important;
}

/* Clean, compact welcome screen: no composer is rendered here. */
#doto-chat-root.doto-chat-root .doto-smart-start{
  padding:7px 14px 10px;
  overflow:hidden;
}
#doto-chat-root.doto-chat-root .doto-welcome-card{
  flex:0 0 auto;
}
#doto-chat-root.doto-chat-root .doto-flow-options{
  flex:0 0 auto;
}
#doto-chat-root.doto-chat-root .doto-flow-option{
  min-height:80px;
  align-items:flex-start;
  padding:11px 10px;
}
#doto-chat-root.doto-chat-root .doto-flow-icon{
  width:31px;
  height:31px;
  min-width:31px;
  min-height:31px;
  display:grid;
  place-items:center;
}
#doto-chat-root.doto-chat-root .doto-flow-icon svg{
  width:18px!important;
  height:18px!important;
  display:block!important;
  overflow:visible!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
#doto-chat-root.doto-chat-root .doto-flow-icon svg path{
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
#doto-chat-root.doto-chat-root .doto-welcome-brand{
  margin-top:auto;
  padding:10px 0 1px;
  color:#94a3b8;
  font-size:9.5px;
  line-height:1.2;
  text-align:center;
}

/* Consistent utility icons. */
#doto-chat-root.doto-chat-root .doto-icon-btn,
#doto-chat-root.doto-chat-root .doto-prechat-tool{
  width:31px!important;
  min-width:31px!important;
  max-width:31px!important;
  height:31px!important;
  min-height:31px!important;
  max-height:31px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  display:inline-grid!important;
  place-items:center!important;
  color:#64748b!important;
  background:transparent!important;
  box-shadow:none!important;
  line-height:0!important;
}
#doto-chat-root.doto-chat-root .doto-icon-btn svg,
#doto-chat-root.doto-chat-root .doto-prechat-tool svg{
  width:18px!important;
  height:18px!important;
  display:block!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
}
#doto-chat-root.doto-chat-root .doto-icon-btn svg path,
#doto-chat-root.doto-chat-root .doto-prechat-tool svg path{
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.75!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Round premium send buttons; deliberately hardened against theme button CSS. */
#doto-chat-root.doto-chat-root button.doto-send{
  width:38px!important;
  min-width:38px!important;
  max-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  flex:0 0 38px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  display:inline-grid!important;
  place-items:center!important;
  color:#fff!important;
  background:linear-gradient(145deg,#1e73be,#11508f)!important;
  box-shadow:0 7px 16px rgba(17,80,143,.24)!important;
  line-height:0!important;
  text-indent:0!important;
  overflow:hidden!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
#doto-chat-root.doto-chat-root button.doto-prechat-send{
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  flex:0 0 36px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  display:inline-grid!important;
  place-items:center!important;
  color:#fff!important;
  background:linear-gradient(145deg,#1e73be,#11508f)!important;
  box-shadow:0 6px 14px rgba(17,80,143,.22)!important;
  line-height:0!important;
  text-indent:0!important;
  overflow:hidden!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
#doto-chat-root.doto-chat-root .doto-ai-question button{
  width:32px!important;
  min-width:32px!important;
  max-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  flex:0 0 32px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  display:inline-grid!important;
  place-items:center!important;
  color:#fff!important;
  background:linear-gradient(145deg,#1e73be,#11508f)!important;
  box-shadow:0 5px 12px rgba(17,80,143,.2)!important;
  line-height:0!important;
  overflow:hidden!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
#doto-chat-root.doto-chat-root button.doto-send svg,
#doto-chat-root.doto-chat-root button.doto-prechat-send svg,
#doto-chat-root.doto-chat-root .doto-ai-question button svg{
  position:static!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  fill:#fff!important;
  color:#fff!important;
}
#doto-chat-root.doto-chat-root button.doto-send svg path,
#doto-chat-root.doto-chat-root button.doto-prechat-send svg path,
#doto-chat-root.doto-chat-root .doto-ai-question button svg path{
  display:block!important;
  fill:#fff!important;
  stroke:none!important;
  opacity:1!important;
  visibility:visible!important;
}

/* Reference launcher. */
#doto-chat-root.doto-chat-root button.doto-chat-bubble{
  width:62px!important;
  min-width:62px!important;
  max-width:62px!important;
  height:62px!important;
  min-height:62px!important;
  max-height:62px!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
  background:linear-gradient(145deg,#11508f,#1e73be)!important;
  box-shadow:0 15px 32px rgba(17,80,143,.28),0 4px 10px rgba(15,23,42,.1)!important;
  overflow:visible!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
#doto-chat-root.doto-chat-root .doto-bubble-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  line-height:0;
}
#doto-chat-root.doto-chat-root .doto-bubble-icon svg{
  width:29px!important;
  height:29px!important;
  display:block!important;
  margin:0!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
}
#doto-chat-root.doto-chat-root .doto-launcher-status{
  right:0!important;
  bottom:2px!important;
  width:14px!important;
  height:14px!important;
  border:3px solid #fff!important;
  border-radius:999px!important;
  background:#22c55e!important;
  box-shadow:0 2px 7px rgba(34,197,94,.35)!important;
}

/* Reference compact horizontal launcher/minimized state. */
#doto-chat-root.doto-chat-root .doto-chat-minibar{
  min-width:205px!important;
  max-width:235px!important;
  min-height:54px!important;
  padding:7px 18px 7px 8px!important;
  gap:9px!important;
  border:1px solid #edf1f5!important;
  border-radius:17px!important;
  color:#14213a!important;
  background:#fff!important;
  box-shadow:0 13px 32px rgba(17,80,143,.14)!important;
  overflow:visible!important;
}
#doto-chat-root.doto-chat-root .doto-chat-minibar__avatar{
  width:50px!important;
  min-width:50px!important;
  height:38px!important;
  min-height:38px!important;
  flex:0 0 50px!important;
  padding:0!important;
  border:0!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
#doto-chat-root.doto-chat-root .doto-chat-minibar__copy strong{
  max-width:145px;
  color:#14213a;
  font-size:12.5px;
  font-weight:700;
}
#doto-chat-root.doto-chat-root .doto-chat-minibar__copy small,
#doto-chat-root.doto-chat-root .doto-chat-minibar__close{
  display:none!important;
}
#doto-chat-root.doto-chat-root .doto-minibar-status{
  right:-2px!important;
  bottom:5px!important;
  width:12px!important;
  height:12px!important;
  border:3px solid #fff!important;
  border-radius:999px!important;
  background:#22c55e!important;
}

/* Keep all widget artwork inside its intended boxes. */
#doto-chat-root.doto-chat-root .doto-chat-window img,
#doto-chat-root.doto-chat-root .doto-chat-window svg{
  max-width:100%;
}
#doto-chat-root.doto-chat-root .doto-back-btn svg{
  width:16px!important;
  height:16px!important;
  display:block!important;
  overflow:visible!important;
}
#doto-chat-root.doto-chat-root .doto-back-btn svg path{
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

@media (max-width:640px){
  #doto-chat-root.doto-chat-root.is-welcome .doto-chat-window{
    height:min(430px,calc(100dvh - 16px))!important;
    max-height:min(430px,calc(100dvh - 16px))!important;
  }
  #doto-chat-root.doto-chat-root button.doto-chat-bubble{
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
  }
  #doto-chat-root.doto-chat-root .doto-smart-start{
    padding:5px 12px 9px;
  }
  #doto-chat-root.doto-chat-root .doto-flow-option{
    min-height:77px;
    padding:9px;
  }
}



#doto-chat-root.doto-chat-root.is-open > .doto-chat-bubble,
#doto-chat-root.doto-chat-root.is-open > .doto-chat-minibar{
  display:none!important;
}

/* v1.2.3: mutually exclusive launcher states and dependency-free send icons. */
#doto-chat-root.doto-chat-root:not(.is-open):not(.has-session) > .doto-chat-bubble:not([hidden]){
  display:grid!important;
}
#doto-chat-root.doto-chat-root:not(.is-open):not(.has-session) > .doto-chat-minibar{
  display:none!important;
}
#doto-chat-root.doto-chat-root.has-session:not(.is-open) > .doto-chat-bubble{
  display:none!important;
}
#doto-chat-root.doto-chat-root.has-session:not(.is-open) > .doto-chat-minibar:not([hidden]){
  display:flex!important;
}
#doto-chat-root.doto-chat-root.is-open > .doto-chat-bubble,
#doto-chat-root.doto-chat-root.is-open > .doto-chat-minibar,
#doto-chat-root.doto-chat-root > .doto-chat-bubble[hidden],
#doto-chat-root.doto-chat-root > .doto-chat-minibar[hidden]{
  display:none!important;
}

#doto-chat-root.doto-chat-root button.doto-send::before,
#doto-chat-root.doto-chat-root button.doto-send::after,
#doto-chat-root.doto-chat-root button.doto-prechat-send::before,
#doto-chat-root.doto-chat-root button.doto-prechat-send::after,
#doto-chat-root.doto-chat-root .doto-ai-question button::before,
#doto-chat-root.doto-chat-root .doto-ai-question button::after{
  content:none!important;
  display:none!important;
}

#doto-chat-root.doto-chat-root button.doto-send > svg.doto-send-icon,
#doto-chat-root.doto-chat-root button.doto-prechat-send > svg.doto-send-icon,
#doto-chat-root.doto-chat-root .doto-ai-question button > svg.doto-send-icon{
  position:relative!important;
  z-index:2!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  color:#ffffff!important;
  fill:#ffffff!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:none!important;
}
#doto-chat-root.doto-chat-root button.doto-send > svg.doto-send-icon path,
#doto-chat-root.doto-chat-root button.doto-prechat-send > svg.doto-send-icon path,
#doto-chat-root.doto-chat-root .doto-ai-question button > svg.doto-send-icon path{
  display:block!important;
  fill:#ffffff!important;
  stroke:none!important;
  opacity:1!important;
  visibility:visible!important;
}

/* v1.2.4: horizontal launcher is the only collapsed-state launcher. */
#doto-chat-root.doto-chat-root > .doto-chat-bubble{
  display:none!important;
}
#doto-chat-root.doto-chat-root:not(.is-open) > .doto-chat-minibar:not([hidden]){
  display:flex!important;
  pointer-events:auto!important;
}
#doto-chat-root.doto-chat-root.is-open > .doto-chat-minibar,
#doto-chat-root.doto-chat-root > .doto-chat-minibar[hidden]{
  display:none!important;
}


/* v1.2.6: contact fields, quote-flow spacing, staff reply notice and avatar fixes. */
#doto-chat-root.doto-chat-root #doto-flow-form{
  display:block!important;
  flex:0 0 auto!important;
  min-height:auto!important;
  overflow:visible!important;
}
#doto-chat-root.doto-chat-root #doto-flow-question{
  display:block!important;
  min-height:auto!important;
  overflow:visible!important;
}
#doto-chat-root.doto-chat-root #doto-flow-next{
  position:static!important;
  inset:auto!important;
  float:none!important;
  clear:both!important;
  display:block!important;
  width:100%!important;
  margin:14px 0 0!important;
  transform:none!important;
}
#doto-chat-root.doto-chat-root #doto-flow-next[hidden]{
  display:none!important;
}
#doto-chat-root.doto-chat-root .doto-quote-description-field{
  display:block!important;
  margin-bottom:0!important;
}
#doto-chat-root.doto-chat-root .doto-quote-description-field textarea{
  display:block!important;
  min-height:132px!important;
  margin:6px 0 0!important;
}
#doto-chat-root.doto-chat-root .doto-quote-file-field{
  display:block!important;
  margin:14px 0 0!important;
}
#doto-chat-root.doto-chat-root .doto-file-upload{
  width:100%;
  min-height:44px;
  margin-top:7px;
  padding:6px 8px;
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid #dce5ee;
  border-radius:10px;
  background:#fff;
}
#doto-chat-root.doto-chat-root .doto-native-file-input[hidden]{
  display:none!important;
}
#doto-chat-root.doto-chat-root .doto-file-upload-button{
  min-height:32px!important;
  flex:0 0 auto;
  padding:0 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border:1px solid #cddbea!important;
  border-radius:8px!important;
  color:#11508f!important;
  background:#f8fafc!important;
  box-shadow:none!important;
  font-size:10.5px!important;
  line-height:1!important;
  font-weight:700!important;
  cursor:pointer!important;
}
#doto-chat-root.doto-chat-root .doto-file-upload-button:hover{
  border-color:#9ec3e3!important;
  background:#edf6ff!important;
}
#doto-chat-root.doto-chat-root .doto-file-upload-button svg{
  width:17px!important;
  height:17px!important;
  flex:0 0 17px!important;
  display:block!important;
}
#doto-chat-root.doto-chat-root .doto-file-upload-name{
  min-width:0;
  overflow:hidden;
  color:#6b7280;
  font-size:10px;
  line-height:1.3;
  white-space:nowrap;
  text-overflow:ellipsis;
}
#doto-chat-root.doto-chat-root .doto-flow-brand{
  flex:0 0 auto!important;
  margin-top:8px!important;
  padding-top:0!important;
}
#doto-chat-root.doto-chat-root .doto-waiting-notice{
  width:100%;
  justify-content:center!important;
  margin:3px 0 8px;
}
#doto-chat-root.doto-chat-root .doto-waiting-notice .doto-bubble{
  width:100%;
  max-width:94%;
  min-height:48px;
  padding:10px 11px;
  display:flex;
  align-items:flex-start;
  gap:9px;
  border-color:#d7e7f6;
  border-radius:13px;
  color:#294462;
  background:#f3f8fd;
}
#doto-chat-root.doto-chat-root .doto-waiting-notice__icon{
  width:26px;
  height:26px;
  flex:0 0 26px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#11508f;
  background:#e2f1fd;
}
#doto-chat-root.doto-chat-root .doto-waiting-notice__icon svg{
  width:17px!important;
  height:17px!important;
  display:block!important;
}
#doto-chat-root.doto-chat-root .doto-waiting-notice p{
  margin:0;
  flex:1;
  color:#294462;
  font-size:11px;
  line-height:1.65;
  text-align:right;
}
#doto-chat-root.doto-chat-root .is-staff-avatar img{
  object-fit:cover!important;
}
#doto-chat-root.doto-chat-root .doto-whatsapp-help{
  margin-top:8px;
}
@media (max-width:640px){
  #doto-chat-root.doto-chat-root .doto-file-upload{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  #doto-chat-root.doto-chat-root .doto-file-upload-name{
    width:100%;
    padding:0 3px 2px;
  }
}


/* Contact fields must remain visible even when a site theme targets email inputs/labels. */
.doto-chat-root .doto-contact-field{
  display:block!important;
  width:100%!important;
  visibility:visible!important;
  opacity:1!important;
}
.doto-chat-root .doto-contact-field--email{
  display:block!important;
}
.doto-chat-root .doto-contact-field--email .doto-field-shell,
.doto-chat-root .doto-contact-field--email input[type="email"]{
  display:block!important;
  width:100%!important;
  visibility:visible!important;
  opacity:1!important;
}


/* Staff photos fill the compact message avatar without showing transparent padding. */
#doto-chat-root.doto-chat-root .doto-message-avatar.is-staff-avatar img,
#doto-chat-root.doto-chat-root .doto-header-avatar.is-staff-avatar img,
#doto-chat-root.doto-chat-root .doto-chat-minibar__avatar.is-staff-avatar img{
  object-fit:cover!important;
}

/* Post-chat staff rating */
.doto-session-ended {
  overflow-y: auto;
  max-height: 100%;
  padding: 22px 18px 18px;
}

.doto-rating-card {
  width: 100%;
  margin: 16px 0 4px;
  padding: 15px;
  border: 1px solid #dbe6f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 80, 143, .08);
  text-align: left;
}

.doto-rating-staff {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doto-rating-avatar {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #e9f3fc;
  border-radius: 50%;
  background: linear-gradient(135deg, #11508f, #1e73be);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.doto-rating-avatar img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.doto-rating-staff strong {
  display: block;
  color: #102a4c;
  font-size: 13px;
  line-height: 1.25;
}

.doto-rating-staff p {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.4;
}

.doto-rating-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 15px 0 7px;
}

.doto-rating-star {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #dbe6f1 !important;
  border-radius: 11px !important;
  background: #f8fafc !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.doto-rating-star:hover,
.doto-rating-star:focus-visible {
  border-color: #f2b01e !important;
  color: #f2b01e !important;
  outline: none !important;
  transform: translateY(-1px);
}

.doto-rating-star.is-selected {
  border-color: #f2b01e !important;
  background: #fff8e7 !important;
  color: #f2b01e !important;
}

.doto-rating-star svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  stroke-width: 1.2 !important;
}

.doto-rating-help {
  margin: 0 0 10px !important;
  color: #6b7280 !important;
  font-size: 10px !important;
  text-align: center;
}

.doto-rating-comment {
  width: 100% !important;
  min-height: 68px !important;
  max-height: 110px !important;
  margin: 0 !important;
  padding: 10px 11px !important;
  display: block !important;
  resize: vertical !important;
  border: 1px solid #dbe6f1 !important;
  border-radius: 11px !important;
  background: #f8fafc !important;
  color: #14213a !important;
  font: inherit !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  box-shadow: none !important;
  outline: none !important;
}

.doto-rating-comment:focus {
  border-color: #1e73be !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, .1) !important;
}

.doto-rating-comment::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

.doto-rating-submit {
  width: 100% !important;
  min-height: 40px !important;
  margin: 10px 0 0 !important;
  padding: 9px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #1e73be, #11508f) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: 0 8px 18px rgba(17, 80, 143, .2) !important;
  cursor: pointer;
}

.doto-rating-submit:disabled {
  background: #cbd5e1 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1 !important;
}

.doto-rating-submit.is-loading {
  cursor: wait;
}

.doto-rating-error {
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 10px;
  line-height: 1.4;
}

.doto-rating-card.is-submitted {
  padding: 18px 14px;
  background: #f0fdf4;
  border-color: #bbf7d0;
  text-align: center;
  box-shadow: none;
}

.doto-rating-success-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
}

.doto-rating-success-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doto-rating-card.is-submitted strong {
  color: #166534;
  font-size: 13px;
}

.doto-rating-card.is-submitted p {
  margin-top: 4px;
  color: #4b7a5c;
  font-size: 10px;
}

.doto-rating-return {
  margin-top: 12px !important;
}

@media (max-width: 420px) {
  .doto-rating-card {
    padding: 13px;
  }

  .doto-rating-stars {
    gap: 5px;
  }

  .doto-rating-star {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
  }
}

