/* Điện Lạnh DV - compact, responsive quote assistant */
.dldv-chat{
  --dldv-accent:#0878c9;--dldv-ink:#172b3a;--dldv-muted:#718096;
  width:100%;max-width:620px;margin:16px auto;background:#fff;color:var(--dldv-ink);
  border:1px solid #e3edf5;border-radius:18px;overflow:hidden;
  box-shadow:0 10px 32px rgba(19,73,112,.10);font-family:inherit;font-size:14px;line-height:1.45
}
.dldv-chat *{box-sizing:border-box}
.dldv-chat__header{
  position:relative;display:flex;flex-direction:column;gap:2px;padding:15px 18px 14px;
  color:#fff;background:linear-gradient(125deg,var(--dldv-accent),color-mix(in srgb,var(--dldv-accent),#073d73 30%))
}
.dldv-chat__header:before{content:"✦";position:absolute;right:18px;top:12px;font-size:23px;opacity:.35}
.dldv-chat__header strong{font-size:17px;line-height:1.3;font-weight:750;letter-spacing:-.2px;padding-right:28px}
.dldv-chat__header span{font-size:12px;opacity:.9}
.dldv-chat__messages{display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:13px 14px 8px;max-height:290px;overflow-y:auto;background:#f7fafc;scroll-behavior:smooth}
.dldv-chat__bubble{width:fit-content;max-width:92%;padding:9px 12px;border-radius:13px;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
.dldv-chat__bubble--bot{align-self:flex-start;background:#fff;border:1px solid #e5edf3;border-top-left-radius:5px;box-shadow:0 2px 5px rgba(20,60,90,.035)}
.dldv-chat__bubble--user{align-self:flex-end;background:var(--dldv-accent);color:#fff;border-top-right-radius:5px}
.dldv-chat__bubble p{margin:0 0 6px}.dldv-chat__bubble p:last-child{margin-bottom:0}
.dldv-chat__suggestions{display:flex;flex-wrap:wrap;gap:7px;padding:10px 14px 3px;background:#fff}
.dldv-chat__suggestion{appearance:none;max-width:100%;background:#f5faff;border:1px solid #d5e8f7;color:#175b88;border-radius:999px;padding:7px 10px;font:inherit;font-size:12px;line-height:1.3;text-align:left;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.dldv-chat__suggestion:hover{background:#e8f5ff;border-color:#8fc8ed;transform:translateY(-1px)}
.dldv-chat__suggestion:disabled{opacity:.55;cursor:wait;transform:none}
.dldv-chat__form{display:flex;align-items:flex-end;gap:8px;padding:12px 14px 10px;background:#fff}
.dldv-chat__input{display:block;flex:1;min-width:0;min-height:58px;height:auto;resize:vertical;margin:0;border:1px solid #d8e1e8!important;border-radius:12px!important;background:#fff!important;color:#172b3a!important;padding:9px 12px!important;font:inherit!important;font-size:14px!important;box-shadow:none!important;outline:none;transition:border-color .15s,box-shadow .15s}
.dldv-chat__input:focus{border-color:var(--dldv-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--dldv-accent),transparent 86%)!important}
.dldv-chat__send{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:43px;margin:0;border:0!important;border-radius:12px!important;padding:9px 15px!important;background:var(--dldv-accent)!important;color:#fff!important;font:inherit!important;font-weight:700!important;white-space:nowrap;cursor:pointer;box-shadow:none!important;transition:filter .15s,transform .15s}
.dldv-chat__send:hover{filter:brightness(.94);transform:translateY(-1px)}.dldv-chat__send:disabled{opacity:.6;cursor:wait;transform:none}
.dldv-chat__phone{display:inline-flex;align-items:center;gap:5px;margin:0 14px 8px;color:var(--dldv-accent)!important;font-size:12px;font-weight:700;text-decoration:none}
.dldv-chat__phone:before{content:"☎";font-size:13px}
.dldv-chat__disclaimer{display:block;padding:0 14px 12px;color:var(--dldv-muted);font-size:10px;line-height:1.4}
.dldv-chat__typing{color:#718096;font-style:italic}
@media(max-width:520px){
 .dldv-chat{margin:12px auto;border-radius:15px;font-size:13px}
 .dldv-chat__header{padding:13px 14px 12px}.dldv-chat__header strong{font-size:16px}
 .dldv-chat__messages{padding:11px 10px 7px;max-height:260px;gap:8px}
 .dldv-chat__bubble{max-width:96%;padding:8px 10px}
 .dldv-chat__suggestions{padding:9px 10px 2px;gap:6px}
 .dldv-chat__suggestion{font-size:11px;padding:7px 9px}
 .dldv-chat__form{padding:10px;gap:6px}
 .dldv-chat__input{min-height:56px;height:auto;padding:8px 10px!important;font-size:13px!important}
 .dldv-chat__send{min-height:41px;padding:8px 11px!important;font-size:12px!important}
 .dldv-chat__phone{margin-left:10px}.dldv-chat__disclaimer{padding:0 10px 10px}
}
@media(prefers-reduced-motion:reduce){.dldv-chat *{scroll-behavior:auto;transition:none!important}}

/* Compact, independently scrollable question box for narrow sidebars. */
.dldv-chat__suggestions{
  display:flex;flex-wrap:wrap;align-content:flex-start;gap:5px;padding:8px 10px;
  max-height:128px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
  scrollbar-color:#b8cddd #f5f8fb;border-top:1px solid #edf2f6;border-bottom:1px solid #edf2f6
}
.dldv-chat__suggestion{
  flex:0 0 auto;max-width:100%;font-size:12px;line-height:1.35;padding:5px 8px;
  border-radius:8px;white-space:normal;overflow-wrap:anywhere
}
.dldv-chat__suggestions::-webkit-scrollbar{width:5px}
.dldv-chat__suggestions::-webkit-scrollbar-thumb{background:#b8cddd;border-radius:8px}
.dldv-chat__suggestions::-webkit-scrollbar-track{background:#f5f8fb}
@media(max-width:520px){
 .dldv-chat__suggestions{max-height:116px;padding:7px 8px;gap:5px}
 .dldv-chat__suggestion{font-size:12px;padding:5px 7px}
}

/* DV AI floating launcher and compact chat panel */
.dldv-floating{position:fixed;z-index:99990;bottom:var(--dldv-bottom,24px);right:18px;display:flex;flex-direction:column;align-items:flex-end;gap:10px;width:auto;max-width:calc(100vw - 24px);font-family:inherit}
.dldv-floating[data-side="left"]{left:18px;right:auto;align-items:flex-start}
.dldv-floating__launcher{display:flex;align-items:center;justify-content:center;gap:9px;max-width:calc(100vw - 32px);min-height:52px;padding:8px 15px;border:0;border-radius:999px;background:var(--dldv-accent,#0878c9);color:#fff;box-shadow:0 8px 28px rgba(0,0,0,.22);cursor:pointer;font:inherit;font-weight:700;line-height:1.15}
.dldv-floating__launcher img{display:block;width:34px;height:34px;object-fit:contain;border-radius:50%;background:#fff;padding:2px}
.dldv-floating__label{font-size:14px;white-space:nowrap}
.dldv-floating__fallback{font-size:12px;white-space:nowrap;color:#fff}
.dldv-floating__fallback b{font-weight:700;color:#fff}.dldv-floating__fallback strong{font-weight:800;color:#ff4545}
.dldv-floating__panel{position:relative;width:min(380px,calc(100vw - 24px));max-height:min(650px,calc(100dvh - 100px));overflow:auto;border-radius:18px;box-shadow:0 12px 42px rgba(0,0,0,.25);overscroll-behavior:contain}
.dldv-floating__panel[hidden]{display:none!important}
.dldv-floating__panel .dldv-chat{width:100%;max-width:none;margin:0;border-radius:18px;max-height:min(650px,calc(100dvh - 100px));overflow:hidden}
.dldv-floating__close{position:absolute;z-index:2;right:9px;top:9px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:rgba(255,255,255,.2);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.dldv-floating__panel .dldv-chat__header{padding-right:48px}
@media(max-width:520px){.dldv-floating{left:auto;right:12px;bottom:var(--dldv-bottom,18px);max-width:calc(100vw - 24px)}.dldv-floating[data-side="left"]{left:12px;right:auto}.dldv-floating__panel{width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 90px)}.dldv-floating__panel .dldv-chat{max-height:calc(100dvh - 90px)}.dldv-floating__launcher{min-height:48px;padding:7px 12px}.dldv-floating__launcher img{width:30px;height:30px}}

/* Accent-insensitive suggestions while the customer types */
.dldv-chat__autocomplete{display:flex;flex-direction:column;gap:3px;max-height:190px;overflow-y:auto;padding:6px;margin:0 0 8px;border:1px solid #d8e5ef;border-radius:10px;background:#fff;box-shadow:0 5px 18px rgba(15,45,70,.10)}
.dldv-chat__autocomplete[hidden]{display:none!important}
.dldv-chat__autocomplete-item{display:block;width:100%;padding:8px 10px;border:0;border-radius:7px;background:#f5f9fc;color:#18354a;text-align:left;font:inherit;font-size:13px;line-height:1.4;cursor:pointer}
.dldv-chat__autocomplete-item:hover,.dldv-chat__autocomplete-item:focus{background:#e6f2fb;outline:2px solid #b8d8ef}
.dldv-chat__zalo-cta{margin-top:10px;padding:9px 11px;border-radius:8px;background:#f0f8ff;font-size:13px}
.dldv-chat__zalo-cta a{font-weight:700;text-decoration:underline}

.dldv-chat__input-wrap{flex:1;min-width:0}
.dldv-chat__input-wrap .dldv-chat__input{width:100%;box-sizing:border-box}


/* v1.1.5: keep the desktop chat inside the viewport and show long answers cleanly. */
/* v1.1.6: compact floating chat panel on mobile (70% viewport width). */
.dldv-chat__zalo-cta{margin:10px 12px 12px;padding:11px 12px;border:1px solid #dcecf8;border-radius:10px;background:#f2f8fd;color:#28465c;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.dldv-chat__zalo-cta a{color:#1269a8!important;font-weight:750;text-decoration:none}
.dldv-chat__zalo-cta a:hover{text-decoration:underline}
.dldv-chat__brand-dv{color:#e53935!important;font-weight:850}
.dldv-chat__slogan{margin-top:7px;font-weight:700;color:#3d5263}
.dldv-chat__bubble{max-width:96%;font-size:14px;line-height:1.65}
.dldv-chat__bubble p{margin:0 0 9px}.dldv-chat__bubble p:last-child{margin-bottom:0}
.dldv-chat__messages{max-height:390px;overscroll-behavior:contain;scrollbar-width:thin}
.dldv-floating__panel{width:min(var(--dldv-desktop-width,460px),calc(100vw - 36px));height:min(var(--dldv-desktop-height,760px),calc(100dvh - 104px));max-height:calc(100dvh - 104px);overflow:hidden;display:flex;flex-direction:column}
.dldv-floating__panel[hidden]{display:none!important}
.dldv-floating__panel .dldv-chat{display:flex;flex-direction:column;flex:1;min-height:0;max-height:100%;height:100%;overflow:hidden}
.dldv-floating__panel .dldv-chat__messages{flex:1 1 auto;min-height:140px;max-height:none;overflow-y:auto}
.dldv-floating__panel .dldv-chat__suggestions{flex:0 0 auto;max-height:118px}
.dldv-floating__panel .dldv-chat__form{flex:0 0 auto}
.dldv-floating__panel .dldv-chat__disclaimer{flex:0 0 auto}
@media(min-width:521px){
 .dldv-chat{max-width:780px;font-size:15px}
 .dldv-chat__messages{max-height:480px}
 .dldv-floating__panel{right:0}
}
@media(max-width:520px){
 .dldv-floating{max-width:calc(100vw - 12px)}
 .dldv-floating__panel{width:min(var(--dldv-mobile-width,70vw),calc(100vw - 24px));max-width:calc(100vw - 24px);height:min(var(--dldv-mobile-height,68vh),calc(100dvh - 90px));max-height:calc(100dvh - 90px);border-radius:15px}
 .dldv-floating__panel .dldv-chat{width:100%;max-width:100%;max-height:100%;border-radius:15px}
 .dldv-floating__panel .dldv-chat__header{padding:12px 38px 12px 12px}
 .dldv-floating__panel .dldv-chat__header strong{font-size:15px}
 .dldv-floating__panel .dldv-chat__messages{min-height:80px;padding:9px 8px;gap:7px}
 .dldv-chat__bubble{max-width:100%;font-size:12px;line-height:1.5;padding:7px 8px}
 .dldv-chat__suggestions{max-height:94px;padding:6px 7px;gap:5px}
 .dldv-chat__suggestion{font-size:11px;padding:6px 8px;white-space:normal}
 .dldv-chat__input{min-height:44px;font-size:12px!important;padding:7px 8px!important}
 .dldv-chat__send{min-height:38px;padding:7px 9px!important;font-size:11px!important}
 .dldv-chat__zalo-cta{margin:7px;padding:8px;font-size:11px;line-height:1.45}
 .dldv-chat__slogan{margin-top:5px}
 .dldv-floating__close{right:6px;top:6px;width:27px;height:27px;font-size:21px}
}


/* v1.1.11: close control sits in the header; hide floating launcher while panel is open. */
.dldv-floating.is-open .dldv-floating__launcher{display:none!important}
.dldv-chat__header{
  position:relative;min-height:64px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;
  gap:0;padding:10px 96px 10px 12px;
}
.dldv-chat__header:before{content:none}
.dldv-chat__header-brand{
  position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:flex-start;gap:5px;
  box-sizing:border-box;flex:0 0 76px;width:76px;height:42px;min-width:76px;max-width:76px;
  padding:4px;border:1px solid rgba(255,255,255,.3);border-radius:10px;background:rgba(255,255,255,.14);overflow:hidden
}
.dldv-chat__header-brand img{display:block;flex:0 0 27px;width:27px;height:27px;object-fit:contain;border-radius:7px;background:#fff;padding:2px}
.dldv-chat__header-fallback{display:flex;flex:0 0 27px;flex-direction:column;align-items:center;justify-content:center;width:27px;height:27px;border-radius:7px;background:#fff;color:#173b5c;font-size:11px;line-height:1;font-weight:850}
.dldv-chat__header-fallback b{color:#e53935;font-size:12px}
.dldv-chat__header-fallback small{margin-top:2px;font-size:7px;letter-spacing:1px}
.dldv-chat__header-brand-label{font-size:10px;line-height:1.1;font-weight:800;white-space:nowrap;color:#fff}
.dldv-chat__header-title{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;width:max-content;max-width:calc(100% - 192px);text-align:center;gap:3px;z-index:0}
.dldv-chat__header-title strong{padding:0;font-size:16px;line-height:1.25;font-weight:750;letter-spacing:0;white-space:normal}
.dldv-chat__header-title span{font-size:11px;line-height:1.25;opacity:.9;white-space:normal}
.dldv-floating__panel .dldv-chat__header{padding-right:96px;padding-left:12px}
.dldv-chat__header .dldv-floating__close{
  position:absolute;z-index:3;right:12px;top:50%;transform:translateY(-50%);
  box-sizing:border-box;width:76px;height:42px;display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.3);border-radius:10px;background:rgba(255,255,255,.14);
  color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:0;margin:0
}
@media(max-width:520px){
 .dldv-chat__header{min-height:58px;padding:9px 91px 9px 8px}
 .dldv-chat__header-brand{gap:4px;flex-basis:76px;width:76px;height:42px;min-width:76px;max-width:76px;padding:3px;border-radius:8px}
 .dldv-chat__header-brand img,.dldv-chat__header-fallback{flex-basis:23px;width:23px;height:23px;border-radius:6px}
 .dldv-chat__header-fallback{font-size:10px}.dldv-chat__header-fallback b{font-size:11px}.dldv-chat__header-fallback small{font-size:6px}
 .dldv-chat__header-brand-label{font-size:10px}
 .dldv-chat__header-title{max-width:calc(100% - 180px);gap:2px}
 .dldv-chat__header-title strong{font-size:14px;line-height:1.2}
 .dldv-chat__header-title span{font-size:9px;line-height:1.2}
 .dldv-floating__panel .dldv-chat__header{padding:9px 91px 9px 8px}
 .dldv-chat__header .dldv-floating__close{right:8px;top:50%;width:76px;height:42px;font-size:21px;transform:translateY(-50%);border-radius:8px}
}


/* v1.1.13: highlight currency amounts in assistant answers. */
.dldv-chat__price{color:#16a34a!important;font-weight:800;font-size:1.06em;white-space:normal}
