/* Dongfeng Benoni white/black chatbot appearance — visual changes only. */
.dfchat{--df-red:var(--dfl-accent);--df-bg:var(--dfl-panel-bg);--df-panel:var(--dfl-panel-bg);--df-card:var(--dfl-bot-bg);--df-line:var(--dfl-panel-border);--df-text:var(--dfl-body-text);--df-muted:var(--dfl-muted);color:var(--dfl-body-text);font-family:inherit}
.dfchat .dfchat-launch{min-height:60px;padding:7px 19px 7px 8px;gap:10px;border:1px solid var(--dfl-launcher-border);border-radius:999px;background:var(--dfl-launcher-bg);color:var(--dfl-launcher-text);box-shadow:0 12px 38px rgba(17,24,39,.17);font-weight:750;font-size:14px;transition:transform .2s ease,box-shadow .2s ease}
.dfchat .dfchat-launch:hover{transform:translateY(-3px);box-shadow:0 17px 42px rgba(17,24,39,.23)}
.dfchat .dfchat-launch-dot{flex:0 0 45px;width:45px;height:45px;background:transparent;box-shadow:none;display:grid;place-items:center;border-radius:50%;overflow:hidden}
.dfchat .dfchat-launch-dot img{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%}
.dfchat .dfchat-panel{width:min(420px,calc(100vw - 32px));height:min(690px,calc(100dvh - 105px));min-height:0;bottom:75px;background:var(--dfl-panel-bg);color:var(--dfl-body-text);border:1px solid var(--dfl-panel-border);border-radius:var(--dfl-radius);box-shadow:0 22px 70px rgba(16,24,40,.2);backdrop-filter:none;-webkit-backdrop-filter:none;grid-template-rows:auto auto minmax(0,1fr) auto auto auto}
.dfchat .dfchat-head{background:var(--dfl-header-bg);border-bottom:1px solid var(--dfl-panel-border);align-items:center;padding:17px 17px 15px}
.dfchat .dfchat-head strong{color:var(--dfl-heading);font-size:17px;font-weight:800;line-height:1.3}
.dfchat .dfchat-head small{color:var(--dfl-muted)}
.dfchat .dfchat-status{color:var(--dfl-status);letter-spacing:.1em}
.dfchat .dfchat-head-actions{align-items:center}
.dfchat .dfchat-close,.dfchat .dfchat-reset{background:var(--dfl-control-bg);color:var(--dfl-control-text);border:1px solid var(--dfl-panel-border);display:grid;place-items:center}
.dfchat .dfchat-close:hover,.dfchat .dfchat-reset:hover{filter:brightness(.97)}
.dfchat .dfchat-context{background:var(--dfl-context-bg);color:var(--dfl-context-text);border:1px solid var(--dfl-panel-border)}
.dfchat .dfchat-context:before{color:var(--dfl-muted)}
.dfchat .dfchat-messages{background:var(--dfl-panel-bg);padding:18px 16px;gap:11px}
.dfchat .dfchat-msg{color:var(--dfl-body-text);font-size:14px;line-height:1.6;box-shadow:none}
.dfchat .dfchat-msg.bot{background:var(--dfl-bot-bg);color:var(--dfl-bot-text);border:1px solid var(--dfl-quick-border)}
.dfchat .dfchat-msg.user{background:var(--dfl-user-bg);color:var(--dfl-user-text);border:1px solid transparent}
.dfchat .dfchat-msg.bot strong{color:var(--dfl-bot-text)}
.dfchat .dfchat-actions{width:100%;max-width:100%;gap:8px}
.dfchat .dfchat-actions a,.dfchat .dfchat-actions a:first-child{background:var(--dfl-action-bg);color:var(--dfl-action-text);border:1px solid var(--dfl-quick-border);border-radius:12px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;line-height:1.4;text-align:center;transition:border-color .2s ease,transform .2s ease}
.dfchat .dfchat-actions a:hover{border-color:var(--dfl-accent);transform:translateY(-1px)}
.dfchat .dfchat-suggestions{background:var(--dfl-panel-bg);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px 13px;overflow-x:visible;max-height:200px;overflow-y:auto}
.dfchat .dfchat-suggestions button{background:var(--dfl-quick-bg);color:var(--dfl-quick-text);border:1px solid var(--dfl-quick-border);border-radius:12px;padding:10px 12px;min-height:48px;white-space:normal;text-align:left;font-size:12px;line-height:1.35;font-weight:700;max-width:100%;overflow-wrap:anywhere;transition:border-color .2s ease,background .2s ease}
.dfchat .dfchat-suggestions button:hover{border-color:var(--dfl-accent);background:var(--dfl-action-bg)}
.dfchat .dfchat-form{background:var(--dfl-footer-bg);border-top:1px solid var(--dfl-panel-border);padding:11px 13px;align-items:end}
.dfchat .dfchat-form textarea{background:var(--dfl-input-bg);color:var(--dfl-input-text);border:1px solid var(--dfl-input-border);border-radius:13px;min-height:46px;line-height:1.4;box-shadow:none}
.dfchat .dfchat-form textarea::placeholder{color:var(--dfl-muted);opacity:1}
.dfchat .dfchat-form textarea:focus{border-color:var(--dfl-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--dfl-accent) 12%,transparent)}
.dfchat .dfchat-form button{background:var(--dfl-accent);color:var(--dfl-accent-text);height:46px;min-height:46px;border-radius:13px}
.dfchat .dfchat-form button:hover{filter:brightness(.93)}
.dfchat .dfchat-foot{background:var(--dfl-footer-bg);color:var(--dfl-muted);font-size:10px;line-height:1.45;padding:0 14px 12px}
.dfchat .dfchat-launch:focus-visible,.dfchat .dfchat-close:focus-visible,.dfchat .dfchat-reset:focus-visible,.dfchat .dfchat-form button:focus-visible,.dfchat .dfchat-suggestions button:focus-visible{outline:2px solid var(--dfl-accent);outline-offset:2px}
@media(max-width:600px){.dfchat{right:14px;bottom:16px}.dfchat .dfchat-panel{position:fixed;inset:auto 0 0 0;width:100%;height:min(86dvh,760px);border-radius:22px 22px 0 0;border-left:0;border-right:0;border-bottom:0}.dfchat .dfchat-launch{padding:5px 12px 5px 5px;min-height:55px}.dfchat .dfchat-launch-dot{flex-basis:42px;width:42px;height:42px}.dfchat .dfchat-msg{font-size:14px}.dfchat .dfchat-form textarea{font-size:16px}.dfchat .dfchat-suggestions button{min-height:48px}}
@media(max-width:600px){body.dfx-has-mobile-conversion-bar .dfchat{bottom:84px}body.dfx-has-mobile-conversion-bar .dfchat .dfchat-launch{width:56px;height:56px;min-height:56px;padding:5px;justify-content:center;border-radius:50%}body.dfx-has-mobile-conversion-bar .dfchat .dfchat-launch-dot{width:45px;height:45px;flex:0 0 45px}body.dfx-has-mobile-conversion-bar .dfchat .dfchat-launch>span:last-child{display:none}body.dfx-has-mobile-conversion-bar .dfchat .dfchat-panel{height:min(86dvh,760px)}}
@media(prefers-reduced-motion:reduce){.dfchat *{transition:none!important;animation:none!important}}


/* v1.2.0 — compact vertical launcher, fully separated label and icon. */
.dfchat .dfchat-launch,
body.dfx-has-mobile-conversion-bar .dfchat .dfchat-launch {
  box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  gap:4px!important;width:84px!important;min-width:84px!important;
  min-height:88px!important;height:auto!important;
  padding:9px 6px 10px!important;
  border:1px solid var(--dfl-launcher-border)!important;
  border-radius:20px!important;
  background:var(--dfl-launcher-bg)!important;
  color:var(--dfl-launcher-text)!important;
  overflow:visible!important;white-space:normal!important;
  box-shadow:0 10px 32px rgba(1,24,40,.14)!important;
}
.dfchat .dfchat-launch-dot,
body.dfx-has-mobile-conversion-bar .dfchat .dfchat-launch-dot {
  display:grid!important;place-items:center!important;flex:none!important;
  width:var(--dfl-launch-icon-size,44px)!important;
  height:var(--dfl-launch-icon-size,44px)!important;
  background:#011828!important;border-radius:15px!important;
  overflow:hidden!important;box-shadow:none!important;
  color:#fff!important;
}
.dfchat .dfchat-launch-dot svg {width:26px!important;height:26px!important;display:block!important;stroke:#fff!important;fill:none!important;}
.dfchat .dfchat-launch-dot img {display:block!important;width:76%!important;height:76%!important;object-fit:contain!important;border-radius:0!important;}
.dfchat .dfchat-launch-label,
body.dfx-has-mobile-conversion-bar .dfchat .dfchat-launch-label {
  display:block!important;position:static!important;
  width:100%!important;margin:0!important;padding:0!important;
  color:var(--dfl-launcher-text)!important;
  font-size:11px!important;line-height:1.15!important;
  font-weight:750!important;text-align:center!important;
  white-space:normal!important;overflow-wrap:normal!important;
  letter-spacing:0!important;
}
.dfchat .dfchat-panel {bottom:104px;}
.dfchat .dfchat-form textarea {height:46px;min-height:46px;max-height:110px;overflow-y:auto;}
.dfchat .dfchat-form textarea::placeholder {font-size:14px;}
@media(max-width:600px) {
  .dfchat .dfchat-launch,body.dfx-has-mobile-conversion-bar .dfchat .dfchat-launch {width:78px!important;min-width:78px!important;min-height:82px!important;padding:8px 5px!important;border-radius:18px!important;}
  .dfchat .dfchat-launch-dot,body.dfx-has-mobile-conversion-bar .dfchat .dfchat-launch-dot {width:42px!important;height:42px!important;}
  .dfchat .dfchat-launch-label,body.dfx-has-mobile-conversion-bar .dfchat .dfchat-launch-label {font-size:10.5px!important;}
  .dfchat .dfchat-panel {bottom:0;}
  body.dfx-has-mobile-conversion-bar .dfchat .dfchat-launch>span:last-child {display:block!important;}
  .dfchat .dfchat-form textarea::placeholder {font-size:15px;}
}


/* Dongfeng 1.3.0 premium full-screen chat — existing admin colours remain authoritative. */
.dfchat {font-family:var(--e-global-typography-text-font-family,inherit)!important;}
.dfchat .dfchat-panel {border:1px solid var(--dfl-panel-border);background:var(--dfl-panel-bg);color:var(--dfl-body-text);box-shadow:0 24px 90px rgba(1,20,38,.2);}
.dfchat .dfchat-head {padding:19px 22px!important;background:var(--dfl-header-bg)!important;gap:18px;}
.dfchat .dfchat-head>div:first-child {gap:3px;}
.dfchat .dfchat-status {font-size:10px;letter-spacing:.13em;color:var(--dfl-accent);font-weight:800;}
.dfchat .dfchat-head strong {font-size:clamp(17px,1.15vw,20px);font-weight:750;letter-spacing:-.025em;}
.dfchat .dfchat-head small {font-size:12px;}
.dfchat .dfchat-expand,.dfchat .dfchat-close,.dfchat .dfchat-reset {width:40px;height:40px;flex:0 0 40px;background:var(--dfl-control-bg)!important;border:1px solid var(--dfl-quick-border)!important;color:var(--dfl-control-text)!important;border-radius:12px!important;font-family:inherit!important;}
.dfchat .dfchat-head-actions {gap:7px;}
.dfchat .dfchat-context {margin:12px 22px 0!important;padding:10px 14px!important;border-radius:12px!important;font-weight:650;}
.dfchat .dfchat-context:before {content:'DISCUSSING · ';font-size:10px;}
.dfchat .dfchat-messages {padding:22px!important;gap:13px!important;scrollbar-width:thin;}
.dfchat .dfchat-msg {font-family:inherit;font-size:15px;line-height:1.62;letter-spacing:0;max-width:min(90%,770px);padding:14px 17px;border-radius:17px;white-space:normal;}
.dfchat .dfchat-msg.bot {background:var(--dfl-bot-bg);border-color:var(--dfl-quick-border);border-bottom-left-radius:5px;}
.dfchat .dfchat-msg.user {background:var(--dfl-user-bg);border-bottom-right-radius:5px;}
.dfchat .dfchat-source {font-size:11px;padding:0 12px 2px;line-height:1.4;color:var(--dfl-muted);}
.dfchat .dfchat-actions {padding-top:2px;}
.dfchat .dfchat-actions a {font-weight:700!important;border-radius:999px!important;padding:9px 15px!important;font-size:12px!important;}
.dfchat .dfchat-actions a:first-child {background:var(--dfl-accent)!important;color:var(--dfl-accent-text)!important;border-color:var(--dfl-accent)!important;}
.dfchat .dfchat-suggestions {padding:12px 22px!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:136px;overflow-y:auto!important;}
.dfchat .dfchat-suggestions:empty {display:none!important;}
.dfchat .dfchat-suggestions button {font-weight:600!important;font-size:12px;min-height:42px!important;}
.dfchat .dfchat-form {grid-template-columns:minmax(0,1fr) 48px!important;gap:9px!important;padding:14px 22px 10px!important;}
.dfchat .dfchat-form textarea {width:100%!important;min-width:0;max-height:160px!important;min-height:50px!important;line-height:1.5!important;padding:13px 15px!important;font-family:inherit!important;}
.dfchat .dfchat-form button {width:48px;height:50px;min-height:50px;box-shadow:0 5px 16px rgba(230,0,33,.17);}
.dfchat .dfchat-foot {padding:0 22px 14px!important;font-size:10px;letter-spacing:0;}
.dfchat .dfchat-foot span {display:block;margin-top:2px;font-weight:650;}
body .dfchat.dfchat-maximized .dfchat-panel {background:var(--dfl-panel-bg)!important;border:1px solid var(--dfl-panel-border)!important;}
@media(min-width:768px) {
 .dfchat .dfchat-panel {width:min(470px,calc(100vw - 48px));height:min(740px,calc(100dvh - 125px));}
 body .dfchat.dfchat-maximized .dfchat-panel {grid-template-rows:auto auto minmax(0,1fr) auto auto auto!important;}
 .dfchat.dfchat-maximized .dfchat-messages {padding-left:max(24px,calc((100% - 1000px)/2))!important;padding-right:max(24px,calc((100% - 1000px)/2))!important;}
 .dfchat.dfchat-maximized .dfchat-form,.dfchat.dfchat-maximized .dfchat-suggestions {padding-left:max(24px,calc((100% - 1000px)/2))!important;padding-right:max(24px,calc((100% - 1000px)/2))!important;}
}
@media(max-width:767px) {
 body .dfchat.dfchat-open .dfchat-panel {grid-template-rows:auto auto minmax(0,1fr) auto auto auto!important;}
 .dfchat .dfchat-head {padding:15px 16px!important;}
 .dfchat .dfchat-context {margin:10px 14px 0!important;}
 .dfchat .dfchat-messages {padding:16px!important;}
 .dfchat .dfchat-msg {max-width:93%;font-size:14px;line-height:1.58;padding:12px 14px;}
 .dfchat .dfchat-suggestions {display:flex!important;flex-wrap:nowrap;overflow-x:auto!important;overflow-y:hidden!important;padding:10px 14px!important;}
 .dfchat .dfchat-suggestions:empty {display:none!important;}
 .dfchat .dfchat-suggestions button {flex:0 0 auto;min-height:40px!important;width:auto;max-width:220px;}
 .dfchat .dfchat-form {padding:9px 13px!important;}
 .dfchat .dfchat-form textarea {min-height:48px!important;}
 .dfchat .dfchat-foot {padding:0 14px 10px!important;font-size:9.5px;}
}

/* Allow reply history to expand naturally, instead of a tall blank suggestions track. */
.dfchat .dfchat-suggestions{height:auto!important;align-items:start!important;}
.dfchat .dfchat-suggestions button{align-self:start!important;}
@media(max-width:767px){.dfchat .dfchat-suggestions{align-items:center!important;max-height:78px!important;}}


/* v1.3.1 — send control: consistent Dongfeng red, including while submitting.
   No glow, opacity fade or theme-injected gradient. Scope exclusively to chat composer. */
body .dfchat .dfchat-panel .dfchat-form button[type="submit"],
body .dfchat .dfchat-panel .dfchat-form button[type="submit"]:hover,
body .dfchat .dfchat-panel .dfchat-form button[type="submit"]:focus,
body .dfchat .dfchat-panel .dfchat-form button[type="submit"]:active,
body .dfchat .dfchat-panel .dfchat-form button[type="submit"]:disabled {
  background:#E60021!important;
  background-color:#E60021!important;
  background-image:none!important;
  color:#fff!important;
  border:1px solid #E60021!important;
  opacity:1!important;
  filter:none!important;
  box-shadow:none!important;
  text-shadow:none!important;
  transform:none!important;
}
body .dfchat .dfchat-panel .dfchat-form button[type="submit"]:disabled{cursor:wait!important;}
body .dfchat .dfchat-panel .dfchat-form button[type="submit"]:focus-visible{
  outline:2px solid #011828!important;outline-offset:2px!important;
}
/* Response actions use accessible, high-contrast colours. */
body .dfchat .dfchat-panel .dfchat-actions a:first-child{
  background:#E60021!important;color:#fff!important;border-color:#E60021!important;
  opacity:1!important;box-shadow:none!important;
}
body .dfchat .dfchat-panel .dfchat-actions a[href*="wa.me"]{
  background:#25D366!important;color:#011828!important;border-color:#25D366!important;
  opacity:1!important;box-shadow:none!important;
}
