/* ConvertBD Live Chat - polished responsive UI */
#ex-live-chat{position:fixed;right:20px;bottom:20px;z-index:99999;font-family:Arial,sans-serif}
#ex-chat-toggle{position:relative;width:62px;height:62px;border:0;border-radius:50%;background:#5bbc2e;color:#fff;box-shadow:0 8px 24px rgba(52,130,25,.30);font-size:25px;cursor:pointer;transition:.2s}
#ex-chat-toggle:hover{transform:translateY(-2px);background:#4fa526}
#ex-chat-unread{position:absolute;right:-2px;top:-3px;background:#f0ad4e;color:#fff;border:2px solid #fff;border-radius:12px;min-width:21px;height:21px;line-height:17px;font-size:10px;font-weight:bold;display:none}
#ex-chat-box{display:none;flex-direction:column;width:370px;height:560px;background:#fff;border-radius:18px;box-shadow:0 14px 45px rgba(0,0,0,.24);overflow:hidden;border:1px solid #e5e5e5}
#ex-chat-head{height:72px;flex:0 0 72px;background:linear-gradient(135deg,#5bbc2e,#79c94b);color:#fff;padding:12px 15px;display:flex;align-items:center;justify-content:space-between}
.ex-chat-brand{display:flex;align-items:center;gap:10px}.ex-chat-logo{width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.20);display:flex;align-items:center;justify-content:center;font-size:21px}.ex-chat-brand strong{font-size:16px;display:block}.ex-chat-brand small{display:block;opacity:.9;font-size:11px;margin-top:3px}
#ex-chat-close{border:0;background:rgba(255,255,255,.16);color:#fff;width:34px;height:34px;border-radius:50%;font-size:15px;cursor:pointer}
#ex-chat-userinfo{display:none;align-items:center;gap:9px;padding:9px 13px;background:#f8fbf6;border-bottom:1px solid #edf2ea;color:#444;font-size:12px}.ex-chat-userinfo>i{font-size:22px;color:#5bbc2e}.ex-chat-userinfo strong{display:block}.ex-chat-userinfo small{display:block;color:#888;margin-top:1px}
#ex-chat-start{flex:1;min-height:0;box-sizing:border-box;padding:28px 20px;text-align:center;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto}.ex-chat-guest-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:20px;background:#f0f8ec;color:#5b9f38;font-size:10px;font-weight:700;margin-bottom:14px}.ex-chat-response-note{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:13px;color:#a0a5a0;font-size:10px}.ex-chat-response-note i{color:#72b956}.ex-chat-welcome-icon{width:72px;height:72px;margin:0 auto 13px;border-radius:20px;background:#edf8e9;color:#5bbc2e;display:flex;align-items:center;justify-content:center;font-size:30px}.ex-chat-start h4{margin:0 0 7px;color:#222;font-size:21px;font-weight:700}.ex-chat-start p{margin:0 auto 18px;max-width:310px;color:#8a8f88;font-size:12px;line-height:1.55}.ex-chat-start input{display:block;width:100%;max-width:330px;height:44px;margin:9px 0;border:1px solid #ddd;border-radius:9px;padding:9px 11px;font-size:13px;outline:0;box-sizing:border-box}.ex-chat-start input:focus{border-color:#5bbc2e;box-shadow:0 0 0 2px rgba(91,188,46,.12)}#ex-chat-start button{width:100%;max-width:330px;height:45px;border:0;border-radius:9px;background:#5bbc2e;color:#fff;font-weight:bold;font-size:13px;cursor:pointer;margin-top:4px}.ex-chat-start button:hover{background:#4fa526}.ex-chat-login-note{display:block;color:#999;font-size:10px;line-height:1.4;margin-top:13px}
#ex-chat-messages{flex:1;min-height:0;overflow:auto;padding:14px;background:#f6f8f5;scroll-behavior:smooth}.ex-cmsg{display:flex;margin:8px 0}.ex-cmsg.user{justify-content:flex-end}.ex-cmsg.admin{justify-content:flex-start}.ex-cbubble{max-width:78%;padding:10px 12px;border-radius:15px;font-size:13px;line-height:1.45;word-break:break-word;white-space:pre-wrap;box-shadow:0 1px 2px rgba(0,0,0,.04)}.ex-cmsg.user .ex-cbubble{background:#5bbc2e;color:#fff;border-bottom-right-radius:5px}.ex-cmsg.admin .ex-cbubble{background:#fff;border:1px solid #e4e9e2;color:#444;border-bottom-left-radius:5px}.ex-ctime{display:block;font-size:9px;opacity:.65;margin-top:4px}.ex-chat-attachment{display:block;max-width:200px;max-height:160px;border-radius:9px;margin-top:6px}.ex-chat-file{display:block;margin-top:6px;color:inherit;text-decoration:underline;font-size:12px}
#ex-chat-status{font-size:10px;color:#888;text-align:left;padding:5px 13px;background:#fff;border-top:1px solid #edf0ed;display:none}.ex-pres-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px}.ex-pres-dot.online{background:#35b83f}.ex-pres-dot.offline{background:#aaa}
#ex-chat-compose{display:none;flex:0 0 auto;border-top:1px solid #e9ece8;padding:9px;background:#fff;gap:7px;align-items:flex-end}#ex-chat-compose textarea{height:43px;resize:none;flex:1;border:1px solid #dfe4dd;border-radius:10px;padding:10px;font-size:13px;outline:0;box-sizing:border-box}#ex-chat-compose textarea:focus{border-color:#5bbc2e}#ex-chat-compose button{width:43px;height:43px;border:0;border-radius:10px;background:#5bbc2e;color:#fff;font-size:15px}.ex-chat-attach{width:38px;height:43px;display:flex;align-items:center;justify-content:center;color:#777;cursor:pointer;font-size:17px;border:1px solid #dfe4dd;border-radius:10px;background:#fff;box-sizing:border-box}.ex-chat-attach:hover{color:#5bbc2e;border-color:#5bbc2e}.ex-chat-attach input{display:none}
@media(max-width:480px){#ex-live-chat{right:10px;bottom:10px}#ex-chat-box{width:calc(100vw - 20px);height:calc(100vh - 75px);max-height:650px;border-radius:15px}#ex-chat-toggle{width:58px;height:58px}.ex-chat-start{padding-top:20px}}
.ex-chat-closed-card{margin:10px 14px 4px;padding:14px 12px;background:#fff8e8;border:1px solid #f1d99b;border-radius:12px;text-align:center;color:#735b20;display:flex;flex-direction:column;align-items:center;gap:5px}.ex-closed-icon{width:38px;height:38px;border-radius:50%;background:#fff0c9;color:#d39b18;display:flex;align-items:center;justify-content:center;font-size:16px}.ex-chat-closed-card strong{font-size:13px;color:#5d4b1f}.ex-chat-closed-card span{font-size:10px;color:#927b48}.ex-chat-closed-card button{border:0;background:#5bbc2e;color:#fff;border-radius:8px;padding:8px 13px;font-size:11px;font-weight:bold;cursor:pointer;margin-top:4px}.ex-chat-new-session{margin:8px 10px;padding:8px 10px;background:#edf8e9;color:#4b9227;border-radius:9px;text-align:center;font-size:10px;border:1px solid #d9efcf}

@media(max-width:480px){#ex-chat-start{padding:24px 18px}.ex-chat-guest-badge{margin-bottom:11px}.ex-chat-welcome-icon{width:68px;height:68px;font-size:28px}.ex-chat-start h4{font-size:20px}.ex-chat-start p{max-width:300px}.ex-chat-start input,#ex-chat-start button{max-width:100%}}

/* Guest start form refinement + unread/closed states */
#ex-chat-start{justify-content:center}
.ex-chat-field{width:100%;max-width:330px;margin:6px 0;text-align:left}
.ex-chat-field label{display:flex;align-items:center;gap:6px;margin:0 0 5px 2px;color:#626a60;font-size:10px;font-weight:700;line-height:1.2}
.ex-chat-field label i{color:#67ad49;font-size:11px}
.ex-chat-field label em{font-style:normal;font-weight:400;color:#a0a6a0;margin-left:2px}
.ex-chat-start .ex-chat-field input{margin:0;width:100%;height:42px;border:1px solid #e0e5de;border-radius:10px;background:#fbfcfa;padding:9px 12px;font-size:12px;color:#333;box-sizing:border-box;transition:.15s}
.ex-chat-start .ex-chat-field input:focus{background:#fff;border-color:#5bbc2e;box-shadow:0 0 0 3px rgba(91,188,46,.10)}
#ex-chat-start-btn{margin-top:8px!important;height:44px!important;border-radius:10px!important;font-size:13px!important;box-shadow:0 5px 14px rgba(91,188,46,.16)}
.ex-chat-login-note{max-width:310px}
#ex-chat-closed{flex:0 0 auto}
.ex-chat-closed-card{margin:10px 12px 4px;padding:11px 12px;background:#fff9eb;border:1px solid #f0dca9;border-radius:11px;text-align:left;color:#735b20;display:flex;align-items:center;gap:9px}
.ex-closed-icon{flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:#fff0c8;color:#d39b18;font-size:14px}
.ex-chat-closed-card>div:nth-child(2){flex:1;min-width:0}
.ex-chat-closed-card strong{display:block;font-size:12px;color:#5f4c1f}
.ex-chat-closed-card span{display:block;font-size:9px;color:#927b48;line-height:1.35;margin-top:2px}
.ex-chat-closed-card button{flex:0 0 auto;border:0;background:#5bbc2e;color:#fff;border-radius:8px;padding:7px 9px;font-size:10px;font-weight:700;cursor:pointer;margin:0}
@media(max-width:480px){.ex-chat-field{max-width:100%}.ex-chat-start p{margin-bottom:14px}.ex-chat-closed-card{margin-left:9px;margin-right:9px}}

/* ================================================================
   Premium Guest Start Screen + Centered Closed State
   ================================================================ */
#ex-chat-start{
  position:relative;
  box-sizing:border-box;
  padding:34px 26px 28px;
  text-align:center;
  align-items:center;
  justify-content:flex-start;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdf9 100%);
}
#ex-chat-start:before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,#49ad20,#79d34b,#49ad20);
}
.ex-chat-guest-badge{
  padding:7px 13px;
  border:1px solid #dff1d6;
  border-radius:999px;
  background:#f4faef;
  color:#55a637;
  font-size:10px;
  letter-spacing:.2px;
  box-shadow:0 3px 12px rgba(66,160,35,.06);
  margin-bottom:16px;
}
.ex-chat-welcome-icon{
  width:76px;height:76px;
  margin:0 auto 15px;
  border-radius:24px;
  background:linear-gradient(145deg,#eefbea,#e1f5d9);
  color:#55bd2d;
  border:1px solid #e0f2d8;
  box-shadow:0 10px 25px rgba(78,175,39,.12), inset 0 1px 0 rgba(255,255,255,.8);
  font-size:31px;
}
.ex-chat-start h4{
  margin:0 0 7px;
  font-size:23px;
  line-height:1.2;
  letter-spacing:-.3px;
  color:#1e271c;
}
.ex-chat-start>p{
  margin:0 auto 21px;
  max-width:340px;
  color:#8a9387;
  font-size:12px;
  line-height:1.6;
}
.ex-chat-field{
  width:100%;
  max-width:350px;
  margin:0 auto 12px;
  text-align:left;
}
.ex-chat-field label{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 7px 3px;
  color:#3f493d;
  font-size:11px;
  font-weight:700;
}
.ex-chat-field label i{
  width:22px;height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  background:#eff9eb;
  color:#5cba39;
  font-size:11px;
}
.ex-chat-field label em{
  color:#a5ada2;
  font-size:9px;
  margin-left:1px;
}
.ex-chat-start .ex-chat-field input{
  width:100%;
  height:48px;
  margin:0;
  border:1px solid #dfe7db;
  border-radius:13px;
  background:#fff;
  padding:11px 14px;
  font-size:13px;
  color:#263025;
  outline:none;
  box-sizing:border-box;
  box-shadow:0 4px 14px rgba(39,76,27,.045);
  transition:border-color .18s,box-shadow .18s,transform .18s;
}
.ex-chat-start .ex-chat-field input::placeholder{color:#b1b8af}
.ex-chat-start .ex-chat-field input:focus{
  border-color:#63bd43;
  box-shadow:0 0 0 4px rgba(91,188,46,.11),0 6px 18px rgba(39,76,27,.06);
  transform:translateY(-1px);
  background:#fff;
}
#ex-chat-start-btn{
  width:100%!important;
  max-width:350px!important;
  height:50px!important;
  margin:5px auto 0!important;
  border:0!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#51b92a,#69c83b)!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:800!important;
  letter-spacing:.1px;
  box-shadow:0 9px 22px rgba(76,183,40,.23)!important;
  transition:transform .18s,box-shadow .18s,filter .18s!important;
}
#ex-chat-start-btn i{margin-right:7px}
#ex-chat-start-btn:hover{
  background:linear-gradient(135deg,#4aaa25,#61bf35)!important;
  transform:translateY(-1px);
  box-shadow:0 11px 25px rgba(76,183,40,.28)!important;
  filter:saturate(1.04);
}
#ex-chat-start-btn:active{transform:translateY(1px)}
.ex-chat-login-note{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:5px;
  max-width:350px;
  margin:13px auto 0!important;
  color:#a5ada2;
  font-size:9px;
}
.ex-chat-login-note i{color:#7fba6b}
.ex-chat-response-note{
  margin-top:11px;
  color:#a0a9a0;
  font-size:9px;
}

/* Closed conversation: centered, clean and visually balanced */
#ex-chat-closed{
  flex:0 0 auto;
  background:#fff;
  padding:18px 18px 6px;
  box-sizing:border-box;
}
.ex-chat-closed-card{
  width:100%;
  max-width:500px;
  box-sizing:border-box;
  margin:0 auto!important;
  padding:22px 18px 20px!important;
  background:linear-gradient(180deg,#fffaf0 0%,#fffdf8 100%)!important;
  border:1px solid #f0dfb6!important;
  border-radius:16px!important;
  text-align:center!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  color:#735b20;
  box-shadow:0 5px 18px rgba(139,107,38,.06);
}
.ex-closed-icon{
  flex:0 0 auto!important;
  width:52px!important;height:52px!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,#fff3cd,#ffe9ad)!important;
  color:#d39b18!important;
  border:1px solid #f5dfaa;
  box-shadow:0 7px 18px rgba(210,157,28,.10);
  font-size:19px!important;
}
.ex-chat-closed-card>div:nth-child(2){
  flex:none!important;
  min-width:0;
  width:100%;
}
.ex-chat-closed-card strong{
  display:block!important;
  color:#58471d!important;
  font-size:16px!important;
  line-height:1.3;
  font-weight:800;
  text-align:center!important;
}
.ex-chat-closed-card span{
  display:block!important;
  max-width:360px;
  margin:5px auto 0!important;
  color:#98835a!important;
  font-size:10px!important;
  line-height:1.5!important;
  text-align:center!important;
}
.ex-chat-closed-card button{
  flex:none!important;
  min-width:165px;
  height:40px;
  margin:8px 0 0!important;
  padding:0 17px!important;
  border:0!important;
  border-radius:11px!important;
  background:linear-gradient(135deg,#51b92a,#69c83b)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:800!important;
  box-shadow:0 7px 16px rgba(76,183,40,.20);
  cursor:pointer;
}
.ex-chat-closed-card button:hover{filter:brightness(.97);transform:translateY(-1px)}

@media(max-width:480px){
  #ex-chat-start{padding:28px 18px 22px}
  .ex-chat-field,#ex-chat-start-btn{max-width:100%!important}
  .ex-chat-welcome-icon{width:70px;height:70px;border-radius:21px}
  .ex-chat-start h4{font-size:21px}
  .ex-chat-start>p{font-size:11px;margin-bottom:18px}
  #ex-chat-closed{padding:14px 10px 5px}
  .ex-chat-closed-card{padding:19px 13px 18px!important;border-radius:14px!important}
}

/* ================================================================
   FINAL GUEST CHAT UI - Centered / Modern / Premium
   ================================================================ */
#ex-chat-start{
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding:30px 22px 24px!important;
  overflow-y:auto;
}

#ex-chat-start .ex-chat-guest-badge{
  margin-left:auto!important;
  margin-right:auto!important;
}

#ex-chat-start .ex-chat-welcome-icon{
  margin-left:auto!important;
  margin-right:auto!important;
}

#ex-chat-start h4,
#ex-chat-start > p{
  text-align:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

#ex-chat-start > p{
  max-width:315px!important;
  margin-bottom:20px!important;
}

/* Center the complete guest form, not only the inputs */
#ex-chat-start .ex-chat-field{
  width:100%!important;
  max-width:330px!important;
  margin:0 auto 14px!important;
  text-align:center!important;
}

#ex-chat-start .ex-chat-field label{
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
  margin:0 auto 7px!important;
  color:#4b5549!important;
  font-size:11px!important;
  font-weight:700!important;
}

#ex-chat-start .ex-chat-field label i{
  width:24px!important;
  height:24px!important;
  border-radius:8px!important;
  background:linear-gradient(145deg,#eef9e9,#e4f5de)!important;
  color:#56b536!important;
  box-shadow:0 3px 8px rgba(71,157,39,.08)!important;
}

#ex-chat-start .ex-chat-field label em{
  color:#9ca59a!important;
  font-size:9px!important;
}

#ex-chat-start .ex-chat-field input{
  display:block!important;
  width:100%!important;
  height:50px!important;
  margin:0 auto!important;
  padding:0 16px!important;
  border:1px solid #dce6d8!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#ffffff,#fbfdfb)!important;
  color:#273125!important;
  text-align:center!important;
  font-size:13px!important;
  box-shadow:0 5px 18px rgba(40,77,31,.055)!important;
  transition:all .18s ease!important;
}

#ex-chat-start .ex-chat-field input::placeholder{
  color:#aeb7ac!important;
  opacity:1!important;
  text-align:center!important;
}

#ex-chat-start .ex-chat-field input:focus{
  border-color:#62bf40!important;
  background:#fff!important;
  transform:translateY(-1px)!important;
  box-shadow:0 0 0 4px rgba(91,188,46,.10),0 8px 22px rgba(40,77,31,.08)!important;
}

#ex-chat-start-btn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:330px!important;
  height:51px!important;
  margin:4px auto 0!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,#4fba28 0%,#6aca3e 100%)!important;
  box-shadow:0 10px 24px rgba(76,183,40,.25)!important;
  font-size:14px!important;
  font-weight:800!important;
  letter-spacing:.1px!important;
  text-align:center!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease!important;
}

#ex-chat-start-btn i{
  margin-right:8px!important;
  font-size:14px!important;
}

#ex-chat-start-btn:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 13px 28px rgba(76,183,40,.30)!important;
  filter:saturate(1.04)!important;
}

#ex-chat-start-btn:active{
  transform:translateY(0)!important;
}

#ex-chat-start .ex-chat-login-note{
  width:100%!important;
  max-width:330px!important;
  justify-content:center!important;
  text-align:center!important;
  margin:14px auto 0!important;
  line-height:1.5!important;
}

#ex-chat-start .ex-chat-response-note{
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
  margin:10px auto 0!important;
}

/* Closed card stays perfectly centered */
#ex-chat-closed{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  padding:18px 14px 8px!important;
  box-sizing:border-box!important;
}

#ex-chat-closed .ex-chat-closed-card{
  width:100%!important;
  max-width:330px!important;
  margin:0 auto!important;
  align-items:center!important;
  text-align:center!important;
  border-radius:17px!important;
}

@media(max-width:480px){
  #ex-chat-start{
    padding:27px 18px 22px!important;
  }
  #ex-chat-start > p{
    max-width:300px!important;
  }
  #ex-chat-start .ex-chat-field,
  #ex-chat-start-btn{
    max-width:330px!important;
  }
  #ex-chat-start .ex-chat-field input{
    height:49px!important;
  }
  #ex-chat-start-btn{
    height:50px!important;
  }
}


/* ================================================================
   Final Guest Start Screen - full-height, centered and scrollable
   ================================================================ */
#ex-chat-box{
  width:390px;
  height:min(680px, calc(100dvh - 55px));
  min-height:500px;
}
#ex-chat-start{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  padding:30px 24px 26px;
  justify-content:center;
  align-items:center;
  text-align:center;
}
#ex-chat-start::-webkit-scrollbar{width:5px}
#ex-chat-start::-webkit-scrollbar-thumb{background:#d9ead2;border-radius:10px}
#ex-chat-start::-webkit-scrollbar-track{background:transparent}
#ex-chat-start > *{flex-shrink:0}
.ex-chat-guest-badge{margin-bottom:14px}
.ex-chat-welcome-icon{width:82px;height:82px;border-radius:26px;margin-bottom:14px;font-size:33px}
.ex-chat-start h4{font-size:24px;margin-bottom:8px}
.ex-chat-start>p{max-width:335px;margin-bottom:20px;font-size:12.5px}
.ex-chat-field{max-width:350px;width:100%;margin:0 auto 13px;text-align:center}
.ex-chat-field label{
  justify-content:center;
  margin:0 0 7px;
  font-size:11px;
  text-align:center;
}
.ex-chat-field label i{width:24px;height:24px;border-radius:8px}
.ex-chat-start .ex-chat-field input{
  height:50px;
  text-align:center;
  border:1px solid #dfe8da;
  border-radius:14px;
  padding:11px 16px;
  font-size:13px;
  box-shadow:0 5px 18px rgba(44,87,31,.055);
}
.ex-chat-start .ex-chat-field input::placeholder{text-align:center;color:#adb6aa}
#ex-chat-start-btn{
  max-width:350px!important;
  height:52px!important;
  margin:6px auto 0!important;
  border-radius:16px!important;
  font-size:15px!important;
  box-shadow:0 10px 25px rgba(76,183,40,.25)!important;
}
.ex-chat-benefits{
  width:100%;
  max-width:350px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  margin:14px auto 0;
}
.ex-chat-benefits span{
  flex:1;
  min-width:0;
  padding:8px 5px;
  border:1px solid #e5f0df;
  background:#f8fcf6;
  color:#698065;
  border-radius:11px;
  font-size:9px;
  font-weight:700;
  white-space:nowrap;
}
.ex-chat-benefits i{color:#5bbc2e;margin-right:3px}
.ex-chat-login-note{margin-top:11px!important}
.ex-chat-response-note{margin-top:9px}

/* Closed notice is always centered */
#ex-chat-closed{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  display:none;
  padding:24px 18px;
  box-sizing:border-box;
  align-items:center;
  justify-content:center;
  background:#fff;
}
#ex-chat-closed .ex-chat-closed-card{
  width:100%;
  max-width:430px;
  margin:auto!important;
}

/* After creating a new chat, no closed-card/Start New Chat residue */
#ex-chat-closed:empty{display:none!important}

@media(max-width:480px){
  #ex-chat-box{
    width:calc(100vw - 16px);
    height:calc(100dvh - 72px);
    min-height:0;
    max-height:none;
    border-radius:17px;
  }
  #ex-chat-start{
    padding:28px 18px 24px;
  }
  .ex-chat-welcome-icon{width:78px;height:78px}
  .ex-chat-start h4{font-size:22px}
  .ex-chat-start>p{max-width:320px}
  .ex-chat-field,#ex-chat-start-btn,.ex-chat-benefits{max-width:340px}
  .ex-chat-benefits{gap:5px}
  .ex-chat-benefits span{font-size:8px;padding:8px 3px}
}

/* On very short screens the start page becomes naturally scrollable */
@media(max-height:650px){
  #ex-chat-start{justify-content:flex-start;padding-top:22px;padding-bottom:22px}
}
