.opli-chat-root{
  --opli-chat-navy:#0F1F45;
  --opli-chat-navy-soft:#22376B;
  --opli-chat-accent:#2D6BF5;
  --opli-chat-accent-hover:#1E56DB;
  --opli-chat-accent-soft:#EEF4FF;
  --opli-chat-success:#34D399;
  --opli-chat-unread:#EF4444;
  --opli-chat-incident-bg:#FAEEDA;
  --opli-chat-incident-text:#633806;
  --opli-chat-assistant-bg:#F3F6FC;
  --opli-chat-input-bg:#F5F8FD;
  --opli-chat-border:#E4EAF4;
  --opli-chat-border-soft:rgba(15,31,69,.07);
  --opli-chat-muted:#66799B;
  --opli-chat-danger:#C0342F;
  position:fixed;
  inset:0;
  z-index:80;
  pointer-events:none;
  font-family:'Wix Madefor Text',-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--opli-chat-navy);
  -webkit-font-smoothing:antialiased;
}
.opli-chat-root *,.opli-chat-root *::before,.opli-chat-root *::after{box-sizing:border-box;}
.opli-chat-root button,.opli-chat-root textarea,.opli-chat-root input,.opli-chat-root a,.opli-chat-root legend{font:inherit;color:inherit;}
.opli-chat-root fieldset{margin:0;padding:0;border:0;min-width:0;}

/* ---------- Launcher ---------- */
.opli-chat-launcher{
  position:absolute;
  right:max(24px,env(safe-area-inset-right));
  bottom:max(24px,env(safe-area-inset-bottom));
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  padding:0;
  border:0;
  border-radius:50%;
  background:radial-gradient(120% 120% at 30% 18%,#2B2B2B 0%,#121212 46%,#000000 100%);
  color:#fff;
  box-shadow:0 12px 28px -10px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.14);
  cursor:pointer;
  pointer-events:auto;
  transition:transform .18s cubic-bezier(.2,.8,.3,1),box-shadow .18s ease,filter .18s ease;
}
.opli-chat-launcher::before{
  content:"";
  position:absolute;
  inset:-5px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.28);
  opacity:0;
  transition:opacity .2s ease;
}
.opli-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 36px -12px rgba(0,0,0,.6),0 3px 8px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.18);}
.opli-chat-launcher:hover::before{opacity:1;}
.opli-chat-launcher:active{transform:translateY(0) scale(.96);}
.opli-chat-launcher svg{width:24px;height:24px;transition:transform .22s cubic-bezier(.2,.8,.3,1),opacity .16s ease;}
.opli-chat-launcher svg.opli-chat-launcher-icon-chat{width:38px;height:38px;}
.opli-chat-launcher-icon-chat{color:#fff!important;fill:#fff;}
.opli-chat-launcher-icon-close{position:absolute;opacity:0;transform:rotate(-35deg) scale(.8);}
.opli-chat-root.opli-chat-open .opli-chat-launcher-icon-chat{opacity:0;transform:rotate(35deg) scale(.8);}
.opli-chat-root.opli-chat-open .opli-chat-launcher-icon-close{opacity:1;transform:rotate(0) scale(1);}
.opli-chat-unread{
  position:absolute;
  top:-2px;
  right:-2px;
  display:grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border:2px solid #fff;
  border-radius:999px;
  background:var(--opli-chat-unread);
  color:#fff;
  font-size:10px;
  font-weight:700;
  line-height:1;
}
.opli-chat-unread[hidden]{display:none;}

/* ---------- Panel ---------- */
.opli-chat-panel{
  position:absolute;
  right:max(24px,env(safe-area-inset-right));
  bottom:max(96px,calc(74px + env(safe-area-inset-bottom)));
  display:flex;
  flex-direction:column;
  width:min(382px,calc(100vw - 32px));
  height:min(636px,calc(100dvh - 120px));
  overflow:hidden;
  border:1px solid var(--opli-chat-border-soft);
  border-radius:20px;
  background:#fff;
  box-shadow:0 28px 64px -22px rgba(15,31,69,.30),0 8px 20px -12px rgba(15,31,69,.16),0 1px 2px rgba(15,31,69,.05);
  opacity:0;
  visibility:hidden;
  transform:translateY(14px) scale(.985);
  transform-origin:bottom right;
  pointer-events:none;
  transition:transform .24s cubic-bezier(.2,.8,.3,1),opacity .2s ease,visibility 0s linear .24s;
}
.opli-chat-root.opli-chat-open .opli-chat-panel{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
  pointer-events:auto;
  transition:transform .24s cubic-bezier(.2,.8,.3,1),opacity .2s ease,visibility 0s;
}

/* ---------- Header ---------- */
.opli-chat-header{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:72px;
  padding:15px 14px 13px 16px;
  border-bottom:1px solid var(--opli-chat-border-soft);
  background:linear-gradient(180deg,#FFFFFF 0%,#F8FAFF 100%);
}
.opli-chat-avatar{
  position:relative;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  flex:0 0 auto;
  overflow:hidden;
  border:1px solid rgba(15,31,69,.08);
  border-radius:14px;
  background:#fff;
  color:#fff;
  box-shadow:0 7px 16px -9px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.14);
}
.opli-chat-avatar-logo{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  padding:3px;
}
.opli-chat-avatar::after{
  content:"";
  position:absolute;
  right:-3px;
  bottom:-3px;
  width:11px;
  height:11px;
  border:2.5px solid #fff;
  border-radius:50%;
  background:var(--opli-chat-success);
  box-shadow:0 1px 3px rgba(15,31,69,.22);
}
.opli-chat-heading{min-width:0;flex:1;}
.opli-chat-title{margin:0;font-family:'Wix Madefor Display','Wix Madefor Text',sans-serif;color:var(--opli-chat-navy);font-size:15px;font-weight:700;letter-spacing:-.012em;line-height:1.2;}
.opli-chat-presence{display:flex;align-items:center;gap:6px;margin:3px 0 0;color:var(--opli-chat-muted);font-size:11.5px;font-weight:400;line-height:1.25;}
.opli-chat-presence-dot{position:relative;width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--opli-chat-success);box-shadow:0 0 0 3px rgba(52,211,153,.18);}
.opli-chat-close{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 auto;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--opli-chat-muted);
  cursor:pointer;
  transition:background-color .15s ease,color .15s ease,transform .15s ease;
}
.opli-chat-close:hover{background:rgba(15,31,69,.05);color:var(--opli-chat-navy);}
.opli-chat-close:active{transform:scale(.94);}
.opli-chat-close svg{width:18px;height:18px;}

/* ---------- Tabs ---------- */
.opli-chat-tabs{display:grid;grid-template-columns:1.25fr 1fr 1fr;min-height:44px;border-bottom:1px solid var(--opli-chat-border-soft);background:#fff;}
.opli-chat-tab{
  position:relative;
  padding:0 4px;
  border:0;
  background:transparent;
  color:var(--opli-chat-muted);
  font-size:12px;
  font-weight:500;
  letter-spacing:-.005em;
  white-space:nowrap;
  cursor:pointer;
  transition:color .15s ease;
}
.opli-chat-tab:hover{color:var(--opli-chat-navy);}
.opli-chat-tab::after{content:"";position:absolute;right:12px;bottom:-1px;left:12px;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--opli-chat-accent),#5B93FF);opacity:0;transform:scaleX(.5);transition:transform .2s cubic-bezier(.2,.8,.3,1),opacity .16s ease;}
.opli-chat-tab[aria-selected="true"]{color:var(--opli-chat-navy);font-weight:700;}
.opli-chat-tab[aria-selected="true"]::after{opacity:1;transform:scaleX(1);}

/* ---------- Status ---------- */
.opli-chat-status{
  display:flex;
  align-items:center;
  min-height:29px;
  gap:8px;
  padding:6px 13px;
  border-bottom:1px solid var(--opli-chat-border-soft);
  background:#FCFDFF;
  color:var(--opli-chat-muted);
  font-size:11px;
  line-height:1.35;
}
.opli-chat-status-main{display:flex;align-items:center;gap:7px;min-width:0;flex:1;}
.opli-chat-status-dot{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--opli-chat-success);box-shadow:0 0 0 3px rgba(52,211,153,.16);}
.opli-chat-status-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.opli-chat-status-details{flex:0 0 auto;padding:0;border:0;background:transparent;color:var(--opli-chat-accent);font-size:10px;font-weight:700;letter-spacing:.01em;cursor:pointer;}
.opli-chat-status-details:hover{color:var(--opli-chat-accent-hover);text-decoration:underline;}
.opli-chat-status.opli-chat-status-incident{align-items:flex-start;padding-top:10px;padding-bottom:10px;background:var(--opli-chat-incident-bg);color:var(--opli-chat-incident-text);}
.opli-chat-status.opli-chat-status-incident .opli-chat-status-main{align-items:flex-start;}
.opli-chat-status.opli-chat-status-incident .opli-chat-status-dot{margin-top:4px;background:var(--opli-chat-incident-text);box-shadow:none;}
.opli-chat-status.opli-chat-status-incident .opli-chat-status-text{overflow:visible;white-space:normal;}

/* ---------- Views ---------- */
.opli-chat-body{display:flex;min-height:0;flex:1;flex-direction:column;background:#fff;}
.opli-chat-view{display:none;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;}
.opli-chat-view.opli-chat-view-active{display:flex;flex-direction:column;}
.opli-chat-assistant-view{overflow:hidden;}
.opli-chat-conversation{display:flex;min-height:0;flex:1;flex-direction:column;}
.opli-chat-conversation[hidden]{display:none;}
.opli-chat-quick-wrap{padding:13px 14px 11px;border-bottom:1px solid rgba(228,234,244,.8);background:linear-gradient(180deg,#FCFDFF,#fff);}
.opli-chat-eyebrow{display:block;margin:0 0 8px;color:var(--opli-chat-muted);font-size:9.5px;font-weight:700;letter-spacing:.14em;line-height:1.2;text-transform:uppercase;}
.opli-chat-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
.opli-chat-quick{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:7px 9px;
  border:1px solid var(--opli-chat-border);
  border-radius:12px;
  background:#fff;
  color:var(--opli-chat-navy);
  font-size:12px;
  font-weight:500;
  text-align:left;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(15,31,69,.04);
  transition:border-color .16s ease,background-color .16s ease,transform .16s cubic-bezier(.2,.8,.3,1),box-shadow .16s ease;
}
.opli-chat-quick:hover{border-color:#C6D6F2;background:#FBFCFF;transform:translateY(-1px);box-shadow:0 6px 14px -8px rgba(15,31,69,.28);}
.opli-chat-quick:active{transform:translateY(0) scale(.985);}
.opli-chat-quick-icon{display:grid;place-items:center;width:26px;height:26px;flex:0 0 auto;border-radius:8px;background:var(--opli-chat-accent-soft);color:var(--opli-chat-accent);}
.opli-chat-quick-icon svg{width:15px;height:15px;}

/* ---------- Messages ---------- */
.opli-chat-messages{min-height:0;flex:1;overflow-y:auto;padding:14px 14px 18px;scroll-behavior:smooth;overscroll-behavior:contain;}
.opli-chat-messages::-webkit-scrollbar,.opli-chat-view::-webkit-scrollbar,.opli-chat-activation::-webkit-scrollbar{width:6px;}
.opli-chat-messages::-webkit-scrollbar-thumb,.opli-chat-view::-webkit-scrollbar-thumb,.opli-chat-activation::-webkit-scrollbar-thumb{border-radius:99px;background:rgba(15,31,69,.14);}
.opli-chat-message{display:flex;margin:0 0 11px;animation:opli-chat-rise .26s cubic-bezier(.2,.8,.3,1) both;}
.opli-chat-message-user{justify-content:flex-end;}
@keyframes opli-chat-rise{from{opacity:0;transform:translateY(5px);}to{opacity:1;transform:none;}}
.opli-chat-bubble{
  max-width:87%;
  padding:10px 12px;
  border-radius:15px;
  background:var(--opli-chat-assistant-bg);
  color:var(--opli-chat-navy);
  font-size:13px;
  font-weight:400;
  line-height:1.58;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.opli-chat-message-assistant .opli-chat-bubble{border:1px solid rgba(15,31,69,.05);border-bottom-left-radius:5px;box-shadow:0 1px 2px rgba(15,31,69,.03);}
.opli-chat-message-user .opli-chat-bubble{
  border-bottom-right-radius:5px;
  background:linear-gradient(140deg,#3D7BFF 0%,var(--opli-chat-accent) 55%,#2358DC 100%);
  color:#fff;
  box-shadow:0 8px 18px -12px rgba(35,88,220,.85);
}
.opli-chat-thinking{display:inline-flex;align-items:center;gap:4px;min-width:50px;min-height:38px;}
.opli-chat-thinking span{width:5px;height:5px;border-radius:50%;background:var(--opli-chat-muted);animation:opli-chat-pulse 1.15s ease-in-out infinite;}
.opli-chat-thinking span:nth-child(2){animation-delay:.14s;}.opli-chat-thinking span:nth-child(3){animation-delay:.28s;}
@keyframes opli-chat-pulse{0%,60%,100%{opacity:.35;transform:translateY(0);}30%{opacity:1;transform:translateY(-2px);}}
.opli-chat-error{border:1px solid rgba(239,68,68,.2)!important;background:#FFF6F6;color:#8F2525;box-shadow:none!important;}
.opli-chat-bubble-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:8px;}
.opli-chat-retry{padding:0;border:0;background:transparent;color:#B42323;font-size:11px;font-weight:600;text-decoration:underline;cursor:pointer;}
.opli-chat-retry:hover{text-decoration-thickness:2px;}
.opli-chat-advisor-cta{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin-top:10px;padding:9px 10px;border-radius:10px;background:#1FAD67;color:#fff!important;font-size:11.5px;font-weight:700;line-height:1.3;text-align:center;text-decoration:none;box-shadow:0 8px 18px -12px rgba(31,173,103,.9);transition:filter .15s ease,transform .15s ease,box-shadow .15s ease;}
.opli-chat-advisor-cta:hover{filter:brightness(1.04);transform:translateY(-1px);box-shadow:0 12px 22px -13px rgba(31,173,103,.95);}
.opli-chat-advisor-cta:active{transform:translateY(0) scale(.99);}
.opli-chat-advisor-cta svg{width:16px;height:16px;flex:0 0 auto;}

/* ---------- List views ---------- */
.opli-chat-list-view{padding:16px 14px 18px;gap:8px;align-content:flex-start;}
.opli-chat-list-intro{margin:0 0 5px;color:var(--opli-chat-muted);font-size:12px;line-height:1.5;}
.opli-chat-list-item{
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  min-height:58px;
  padding:11px;
  border:1px solid var(--opli-chat-border);
  border-radius:13px;
  background:#fff;
  color:var(--opli-chat-navy);
  text-align:left;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 1px 2px rgba(15,31,69,.04);
  transition:border-color .16s ease,background-color .16s ease,transform .16s cubic-bezier(.2,.8,.3,1),box-shadow .16s ease;
}
.opli-chat-list-item:hover{border-color:#C6D6F2;background:#FBFCFF;transform:translateY(-1px);box-shadow:0 8px 18px -12px rgba(15,31,69,.3);}
.opli-chat-list-item:active{transform:translateY(0) scale(.995);}
.opli-chat-list-item[aria-disabled="true"]{cursor:not-allowed;opacity:.62;}
.opli-chat-list-item[aria-disabled="true"]:hover{transform:none;box-shadow:0 1px 2px rgba(15,31,69,.04);}
.opli-chat-whatsapp-card.is-disabled{border-color:#E4E7EC;background:#F2F4F7;color:#667085;box-shadow:none;opacity:1;}
.opli-chat-whatsapp-card.is-disabled .opli-chat-list-meta{color:#8A94A6;}
.opli-chat-whatsapp-card.is-disabled .opli-chat-list-arrow{opacity:.38;}
.opli-chat-whatsapp-card.is-disabled .opli-chat-whatsapp-logo{background:#E1E5EA;color:#98A2B3;}
.opli-chat-whatsapp-card.is-enabled{border-color:rgba(31,173,103,.25);background:linear-gradient(135deg,#F4FCF7,#ECF9F1);}
.opli-chat-whatsapp-card.is-enabled:hover{border-color:rgba(31,173,103,.48);background:#F4FCF7;}
.opli-chat-whatsapp-card.is-enabled .opli-chat-whatsapp-logo{background:#1FAD67;color:#fff;}
.opli-chat-list-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:11px;background:var(--opli-chat-accent-soft);color:var(--opli-chat-accent);}
.opli-chat-list-icon svg{width:17px;height:17px;}
.opli-chat-list-copy{min-width:0;flex:1;}
.opli-chat-list-title{display:block;font-size:12.5px;font-weight:600;line-height:1.35;}
.opli-chat-list-meta{display:block;margin-top:2px;color:var(--opli-chat-muted);font-size:11px;font-weight:400;line-height:1.35;}
.opli-chat-list-arrow{width:16px;height:16px;flex:0 0 auto;color:var(--opli-chat-muted);}
.opli-chat-config-note{margin:5px 0 0;padding:10px 11px;border-radius:11px;background:var(--opli-chat-input-bg);color:var(--opli-chat-muted);font-size:11px;line-height:1.45;}
.opli-chat-telegram-card{display:flex;align-items:center;gap:11px;width:100%;min-height:72px;padding:12px;border:1px solid rgba(39,166,229,.22);border-radius:15px;background:linear-gradient(135deg,#F3FAFE 0%,#EAF7FD 100%);color:var(--opli-chat-navy);text-decoration:none;box-shadow:0 8px 20px -18px rgba(39,166,229,.8);transition:border-color .16s ease,transform .16s cubic-bezier(.2,.8,.3,1),box-shadow .16s ease;}
.opli-chat-telegram-card:hover{border-color:rgba(39,166,229,.42);transform:translateY(-1px);box-shadow:0 12px 24px -18px rgba(39,166,229,.95);}
.opli-chat-telegram-card:active{transform:translateY(0) scale(.995);}
.opli-chat-telegram-logo{display:grid;place-items:center;width:40px;height:40px;flex:0 0 auto;border-radius:50%;background:#27A6E5;color:#fff;box-shadow:0 8px 16px -10px rgba(39,166,229,.95);}
.opli-chat-telegram-logo svg{width:22px;height:22px;fill:currentColor;}
.opli-chat-support-heading{margin-top:9px;}

/* ---------- Activation d'adresse MAC ---------- */
.opli-chat-activation{display:flex;min-height:0;flex:1;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;padding:14px 14px 18px;}
.opli-chat-activation[hidden]{display:none;}
.opli-chat-subhead{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.opli-chat-back{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  flex:0 0 auto;
  padding:0;
  border:1px solid var(--opli-chat-border);
  border-radius:9px;
  background:#fff;
  color:var(--opli-chat-muted);
  cursor:pointer;
  transition:border-color .15s ease,color .15s ease,background-color .15s ease,transform .15s ease;
}
.opli-chat-back:hover{border-color:#C6D6F2;background:#FBFCFF;color:var(--opli-chat-navy);}
.opli-chat-back:active{transform:scale(.94);}
.opli-chat-back svg{width:15px;height:15px;}
.opli-chat-subhead-copy{display:block;min-width:0;}
.opli-chat-subhead-copy .opli-chat-eyebrow{margin-bottom:3px;}
.opli-chat-subhead-title{display:block;font-family:'Wix Madefor Display','Wix Madefor Text',sans-serif;font-size:15px;font-weight:700;letter-spacing:-.012em;line-height:1.25;}
.opli-chat-form{display:flex;flex-direction:column;gap:15px;}
.opli-chat-form[hidden]{display:none;}
.opli-chat-fieldset{display:block;}
.opli-chat-label{display:block;padding:0;margin:0 0 7px;color:var(--opli-chat-navy);font-size:11.5px;font-weight:600;line-height:1.3;}
.opli-chat-segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:4px;border:1px solid var(--opli-chat-border);border-radius:13px;background:var(--opli-chat-input-bg);}
.opli-chat-segment{
  min-height:38px;
  padding:8px 6px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:var(--opli-chat-muted);
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:background-color .16s ease,color .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.opli-chat-segment:hover{color:var(--opli-chat-navy);}
.opli-chat-segment.is-selected{
  border-color:rgba(45,107,245,.22);
  background:#fff;
  color:var(--opli-chat-navy);
  box-shadow:0 4px 12px -6px rgba(15,31,69,.28),0 1px 0 rgba(255,255,255,.9) inset;
}
.opli-chat-field{display:block;}
.opli-chat-text-input{
  display:block;
  width:100%;
  min-height:44px;
  padding:11px 13px;
  border:1px solid var(--opli-chat-border);
  border-radius:12px;
  outline:0;
  background:#fff;
  color:var(--opli-chat-navy);
  font-size:13.5px;
  font-weight:600;
  letter-spacing:.055em;
  line-height:1.35;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.opli-chat-text-input::placeholder{color:#9AA9C4;font-weight:400;letter-spacing:.03em;}
.opli-chat-text-input:focus{border-color:rgba(45,107,245,.55);box-shadow:0 0 0 3px rgba(45,107,245,.11);}
.opli-chat-text-input.has-error{border-color:rgba(192,52,47,.55);box-shadow:0 0 0 3px rgba(192,52,47,.09);}
.opli-chat-hint{margin:7px 0 0;color:var(--opli-chat-muted);font-size:11px;line-height:1.45;}
.opli-chat-field-error{margin:7px 0 0;color:var(--opli-chat-danger);font-size:11px;font-weight:600;line-height:1.45;}
.opli-chat-field-error[hidden]{display:none;}
.opli-chat-primary{
  display:block;
  width:100%;
  min-height:46px;
  padding:12px 16px;
  border:0;
  border-radius:13px;
  background:linear-gradient(140deg,#3D7BFF 0%,var(--opli-chat-accent) 55%,#2358DC 100%);
  color:#fff;
  font-size:13px;
  font-weight:700;
  letter-spacing:-.005em;
  cursor:pointer;
  box-shadow:0 12px 24px -14px rgba(35,88,220,.9),inset 0 1px 0 rgba(255,255,255,.18);
  transition:filter .16s ease,transform .16s cubic-bezier(.2,.8,.3,1),box-shadow .16s ease,opacity .16s ease;
}
.opli-chat-primary:hover{filter:brightness(1.05);transform:translateY(-1px);box-shadow:0 16px 30px -14px rgba(35,88,220,.95),inset 0 1px 0 rgba(255,255,255,.2);}
.opli-chat-primary:active{transform:translateY(0) scale(.99);}
.opli-chat-primary:disabled{cursor:progress;opacity:.62;transform:none;filter:none;}
.opli-chat-form-note{margin:0;color:var(--opli-chat-muted);font-size:10.5px;line-height:1.45;text-align:center;}
.opli-chat-activation-done{display:flex;flex-direction:column;align-items:flex-start;padding:18px 16px;border:1px solid rgba(52,211,153,.3);border-radius:15px;background:linear-gradient(180deg,#F4FDF8,#FBFEFC);animation:opli-chat-rise .3s cubic-bezier(.2,.8,.3,1) both;}
.opli-chat-activation-done[hidden]{display:none;}
.opli-chat-done-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(150deg,#43D9A3,#18A97B);color:#fff;box-shadow:0 8px 18px -10px rgba(24,169,123,.8);}
.opli-chat-done-icon svg{width:19px;height:19px;}
.opli-chat-done-title{margin:12px 0 0;font-family:'Wix Madefor Display','Wix Madefor Text',sans-serif;font-size:15px;font-weight:700;letter-spacing:-.012em;line-height:1.25;}
.opli-chat-done-text{margin:9px 0 0;color:#1F3352;font-size:12.5px;line-height:1.6;}
.opli-chat-done-recap{margin:12px 0 0;padding:7px 10px;border-radius:9px;background:rgba(15,31,69,.05);color:var(--opli-chat-muted);font-size:11px;font-weight:600;letter-spacing:.04em;}
.opli-chat-done-recap:empty{display:none;}
.opli-chat-done-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%;margin-top:16px;}
.opli-chat-secondary{
  flex:1 1 auto;
  min-height:40px;
  padding:10px 14px;
  border:1px solid var(--opli-chat-border);
  border-radius:11px;
  background:#fff;
  color:var(--opli-chat-navy);
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:border-color .15s ease,background-color .15s ease,transform .15s ease;
}
.opli-chat-secondary:hover{border-color:#C6D6F2;background:#FBFCFF;}
.opli-chat-secondary:active{transform:scale(.99);}
.opli-chat-ghost{
  flex:1 1 auto;
  min-height:40px;
  padding:10px 14px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:var(--opli-chat-accent);
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  transition:background-color .15s ease;
}
.opli-chat-ghost:hover{background:var(--opli-chat-accent-soft);}

/* ---------- Composer ---------- */
.opli-chat-composer{flex:0 0 auto;padding:10px 12px 9px;border-top:1px solid var(--opli-chat-border-soft);background:linear-gradient(180deg,#FCFDFF,#fff);}
.opli-chat-composer[hidden]{display:none;}
/* La coque est le seul element focalisable visuellement : son anneau epouse la pilule. */
.opli-chat-input-shell{display:flex;align-items:flex-end;gap:8px;min-height:46px;padding:6px 6px 6px 15px;border:1px solid var(--opli-chat-border);border-radius:999px;background:var(--opli-chat-input-bg);transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;}
.opli-chat-input-shell:focus-within{border-color:rgba(45,107,245,.55);background:#fff;box-shadow:0 0 0 3px rgba(45,107,245,.14);}
.opli-chat-input{display:block;flex:1 1 auto;width:auto;min-width:0;height:32px;min-height:32px;max-height:84px;margin:0;padding:7px 0;border:0;outline:0;resize:none;overflow-y:auto;background:transparent;color:var(--opli-chat-navy);font-size:13px;font-weight:400;line-height:18px;}
.opli-chat-input:focus,.opli-chat-input:focus-visible{outline:0;box-shadow:none;}
.opli-chat-input::placeholder{color:#8B9BB6;}
.opli-chat-send{display:grid;place-items:center;width:32px;height:32px;flex:0 0 auto;padding:0;border:0;border-radius:50%;background:linear-gradient(140deg,#3D7BFF,#2358DC);color:#fff;cursor:pointer;box-shadow:0 6px 14px -8px rgba(35,88,220,.9);transition:filter .15s ease,transform .15s ease,opacity .15s ease,box-shadow .15s ease;}
.opli-chat-send:hover{filter:brightness(1.06);}
.opli-chat-send:active{transform:scale(.94);}
.opli-chat-send:disabled{cursor:not-allowed;opacity:.4;box-shadow:none;filter:grayscale(.25);}
.opli-chat-send svg{width:15px;height:15px;}
.opli-chat-powered{margin:6px 0 0;color:#8B9BB6;font-size:9.5px;font-weight:500;letter-spacing:.06em;line-height:1.2;text-align:center;text-transform:uppercase;}
.opli-chat-root :focus-visible:not(.opli-chat-input):not(.opli-chat-text-input){outline:3px solid rgba(45,107,245,.24);outline-offset:2px;}

/* ---------- Responsive ---------- */
@media(max-width:639px){
  .opli-chat-root{z-index:10000;}
  .opli-chat-root.opli-chat-open .opli-chat-launcher{opacity:0;visibility:hidden;pointer-events:none;}
  .opli-chat-panel{position:fixed;inset:0;width:100%;height:100dvh;border:0;border-radius:0;transform:translateY(14px) scale(1);}
  .opli-chat-root.opli-chat-open .opli-chat-panel{transform:none;}
  .opli-chat-header{padding-top:max(15px,env(safe-area-inset-top));padding-right:max(14px,env(safe-area-inset-right));padding-left:max(16px,env(safe-area-inset-left));}
  .opli-chat-composer{padding-right:max(12px,env(safe-area-inset-right));padding-bottom:max(9px,env(safe-area-inset-bottom));padding-left:max(12px,env(safe-area-inset-left));}
  .opli-chat-activation{padding-right:max(14px,env(safe-area-inset-right));padding-bottom:max(18px,env(safe-area-inset-bottom));padding-left:max(14px,env(safe-area-inset-left));}
  .opli-chat-tab{font-size:11.5px;}
}
@media(max-width:359px){
  .opli-chat-header{gap:9px;}
  .opli-chat-avatar{width:44px;height:44px;border-radius:13px;}
  .opli-chat-tab{padding-right:2px;padding-left:2px;font-size:10.5px;}
  .opli-chat-quick-grid{gap:6px;}
  .opli-chat-quick{gap:6px;padding-right:7px;padding-left:7px;font-size:11px;}
  .opli-chat-quick-icon{width:23px;height:23px;}
  .opli-chat-segment{font-size:11px;}
  .opli-chat-text-input{font-size:12.5px;letter-spacing:.04em;}
}
@media(prefers-reduced-motion:reduce){
  .opli-chat-root *,.opli-chat-root *::before,.opli-chat-root *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}
}
