.hcd-widget-root,
.hcd-widget-root *,
.hcd-widget-root *::before,
.hcd-widget-root *::after{
    box-sizing:border-box!important;
}

.hcd-widget-root{
    --hcd-primary:#F39AB7;
    --hcd-secondary:#74C6F2;
    --hcd-text:#324255;
    --hcd-radius:18px;
    --hcd-font:Poppins;
    position:fixed;
    bottom:24px;
    z-index:999999;
    font-family:var(--hcd-font),Poppins,Arial,sans-serif!important;
    color:var(--hcd-text)!important;
    line-height:1.45!important;
    letter-spacing:-.02em!important;
    text-align:left!important;
    isolation:isolate!important;
}

.hcd-widget-root.hcd-pos-left{left:24px}
.hcd-widget-root.hcd-pos-right{right:24px}
.hcd-shortcode-mode{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:1!important}

.hcd-widget-root :where(div,span,p,small,b,strong,label,form,input,button,svg,i){
    font-family:var(--hcd-font),Poppins,Arial,sans-serif!important;
}

.hcd-widget-root :where(button,input,textarea,select){
    appearance:none!important;
    -webkit-appearance:none!important;
    outline:none!important;
    text-shadow:none!important;
    text-transform:none!important;
    box-shadow:none!important;
}

.hcd-widget-root :where(button){
    border:0!important;
    margin:0!important;
    padding:0!important;
    background:none!important;
}

.hcd-widget-root :where(input){
    margin:0!important;
}

.hcd-widget-root :where(a){
    text-decoration:none!important;
}

.hcd-widget-root i.fa-solid,
.hcd-widget-root i.fa-regular{
    font-family:"Font Awesome 6 Free"!important;
    font-weight:900!important;
    font-style:normal!important;
    speak:none!important;
}

.hcd-widget-root i.fa-regular{
    font-weight:400!important;
}

.hcd-widget-root i.fa-brands{
    font-family:"Font Awesome 6 Brands"!important;
    font-weight:400!important;
    font-style:normal!important;
    speak:none!important;
}

.hcd-widget-root :where(input)::placeholder{
    color:#94a3b8!important;
    opacity:1!important;
}

.hcd-widget-root .hcd-float-button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:14px!important;
    width:auto!important;
    min-width:178px!important;
    height:74px!important;
    padding:0 24px 0 18px!important;
    border-radius:999px!important;
    background:linear-gradient(135deg,var(--hcd-primary) 0%, #c27fd1 48%, var(--hcd-secondary) 100%)!important;
    color:#fff!important;
    cursor:pointer!important;
    position:relative!important;
    overflow:hidden!important;
    box-shadow:0 18px 45px rgba(116,198,242,.28), 0 12px 28px rgba(243,154,183,.24)!important;
    transition:transform .25s ease, box-shadow .25s ease!important;
    border:1px solid rgba(255,255,255,.18)!important;
}

.hcd-widget-root .hcd-float-button::before{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at 20% 20%, rgba(255,255,255,.34), transparent 34%);
    pointer-events:none;
}

.hcd-widget-root .hcd-float-button:hover,
.hcd-widget-root .hcd-float-button:focus{
    transform:translateY(-3px)!important;
    box-shadow:0 24px 62px rgba(116,198,242,.34), 0 14px 34px rgba(243,154,183,.28)!important;
    color:#fff!important;
}

.hcd-widget-root .hcd-float-icon{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border-radius:50%!important;
    display:grid!important;
    place-items:center!important;
    background:rgba(255,255,255,.12)!important;
    color:#fff!important;
    position:relative!important;
    z-index:1!important;
}

.hcd-widget-root .hcd-float-icon i{
    font-size:22px!important;
    line-height:1!important;
    color:#fff!important;
}

.hcd-widget-root .hcd-float-text{
    display:block!important;
    width:auto!important;
    max-width:none!important;
    white-space:nowrap!important;
    color:#fff!important;
    font-size:18px!important;
    font-weight:600!important;
    line-height:1.1!important;
    position:relative!important;
    z-index:1!important;
    letter-spacing:-.03em!important;
}

.hcd-widget-root .hcd-panel{
    position:absolute!important;
    bottom:90px!important;
    width:320px!important;
    background:#fff!important;
    border:1px solid rgba(145,161,182,.16)!important;
    border-radius:var(--hcd-radius)!important;
    box-shadow:0 26px 80px rgba(50,66,85,.16)!important;
    overflow:hidden!important;
    opacity:0!important;
    visibility:hidden!important;
    transform:translateY(14px) scale(.98)!important;
    transition:opacity .24s ease, transform .24s ease, visibility .24s ease!important;
}

.hcd-pos-left .hcd-panel{left:0!important}
.hcd-pos-right .hcd-panel{right:0!important}
.hcd-widget-root .hcd-panel.is-open{opacity:1!important;visibility:visible!important;transform:translateY(0) scale(1)!important}

.hcd-widget-root .hcd-panel-head{
    min-height:62px!important;
    padding:0 14px!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    background:linear-gradient(135deg,var(--hcd-primary) 0%, #c27fd1 48%, var(--hcd-secondary) 100%)!important;
    color:#fff!important;
}

.hcd-widget-root .hcd-panel-head strong{
    flex:1!important;
    color:#fff!important;
    margin:0!important;
    font-size:17px!important;
    font-weight:600!important;
    letter-spacing:-.03em!important;
}

.hcd-widget-root .hcd-close,
.hcd-widget-root .hcd-back{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    border-radius:50%!important;
    background:rgba(255,255,255,.14)!important;
    color:#fff!important;
    display:grid!important;
    place-items:center!important;
    cursor:pointer!important;
    font-size:21px!important;
    transition:background .2s ease, transform .2s ease!important;
}

.hcd-widget-root .hcd-close:hover,
.hcd-widget-root .hcd-back:hover{background:rgba(255,255,255,.22)!important;transform:translateY(-1px)!important}
.hcd-widget-root .hcd-close i,
.hcd-widget-root .hcd-back i{font-size:14px!important;line-height:1!important;color:#fff!important}
.hcd-widget-root .hcd-back{display:none!important;font-size:24px!important}
.hcd-widget-root .hcd-panel[data-step="form"] .hcd-back,
.hcd-widget-root .hcd-panel[data-step="chat"] .hcd-back{display:grid!important}

.hcd-widget-root .hcd-screen{display:none!important;padding:16px!important}
.hcd-widget-root .hcd-screen.is-active{display:block!important}

.hcd-widget-root .hcd-option{
    width:100%!important;
    min-height:84px!important;
    display:flex!important;
    align-items:center!important;
    gap:14px!important;
    padding:14px!important;
    margin:0 0 12px!important;
    border:1px solid rgba(145,161,182,.18)!important;
    border-radius:16px!important;
    background:#fff!important;
    color:var(--hcd-text)!important;
    text-align:left!important;
    cursor:pointer!important;
    box-shadow:0 10px 24px rgba(50,66,85,.05)!important;
    transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease!important;
}

.hcd-widget-root .hcd-option:hover,
.hcd-widget-root .hcd-option:focus{
    transform:translateY(-2px)!important;
    border-color:rgba(116,198,242,.34)!important;
    box-shadow:0 14px 28px rgba(50,66,85,.09)!important;
}

.hcd-widget-root .hcd-option:disabled{
    opacity:.58!important;
    cursor:not-allowed!important;
    transform:none!important;
}

.hcd-widget-root .hcd-option-icon{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    border-radius:50%!important;
    display:grid!important;
    place-items:center!important;
    color:#fff!important;
    flex:0 0 52px!important;
}

.hcd-widget-root .hcd-option-icon i{
    font-size:24px!important;
    line-height:1!important;
    color:#fff!important;
}

.hcd-widget-root .hcd-wa-icon{background:#34C759!important}
.hcd-widget-root .hcd-live-icon{background:linear-gradient(135deg,var(--hcd-primary) 0%, #c27fd1 48%, var(--hcd-secondary) 100%)!important}

.hcd-widget-root .hcd-option span:not(.hcd-option-icon){flex:1 1 auto!important;min-width:0!important}
.hcd-widget-root .hcd-option b{display:block!important;font-size:14px!important;font-weight:600!important;line-height:1.25!important;color:var(--hcd-text)!important}
.hcd-widget-root .hcd-option small{display:block!important;margin-top:4px!important;font-size:11px!important;font-weight:400!important;line-height:1.45!important;color:#75869a!important}
.hcd-widget-root .hcd-option > i{margin-left:auto!important;font-size:16px!important;color:#91a1b6!important}

.hcd-widget-root .hcd-privacy{
    margin:16px 0 2px!important;
    text-align:center!important;
    color:#7b8ca0!important;
    font-size:11px!important;
    font-weight:500!important;
}

.hcd-widget-root .hcd-privacy i{
    margin-right:4px!important;
    color:var(--hcd-secondary)!important;
}

.hcd-widget-root .hcd-form-intro{
    text-align:center!important;
    padding:4px 0 14px!important;
}

.hcd-widget-root .hcd-mini-icon{
    width:50px!important;
    height:50px!important;
    margin:0 auto 10px!important;
    border-radius:50%!important;
    display:grid!important;
    place-items:center!important;
    background:linear-gradient(135deg, rgba(243,154,183,.16), rgba(116,198,242,.16))!important;
    color:#b47ed4!important;
}

.hcd-widget-root .hcd-mini-icon i{font-size:22px!important;line-height:1!important}
.hcd-widget-root .hcd-form-intro b{display:block!important;font-size:15px!important;font-weight:600!important;color:var(--hcd-text)!important}
.hcd-widget-root .hcd-form-intro small{display:block!important;margin-top:4px!important;font-size:11px!important;color:#7b8ca0!important}

.hcd-widget-root .hcd-start-form label{
    display:block!important;
    width:100%!important;
    margin:0 0 10px!important;
    color:var(--hcd-text)!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1.35!important;
}

.hcd-widget-root .hcd-start-form input,
.hcd-widget-root .hcd-message-form input{
    width:100%!important;
    max-width:100%!important;
    border:1px solid rgba(145,161,182,.22)!important;
    background:#fff!important;
    color:var(--hcd-text)!important;
    font-size:12px!important;
    font-weight:400!important;
}

.hcd-widget-root .hcd-start-form input{
    display:block!important;
    height:44px!important;
    margin:6px 0 0!important;
    padding:0 13px!important;
    border-radius:12px!important;
}

.hcd-widget-root .hcd-start-form input:focus,
.hcd-widget-root .hcd-message-form input:focus{
    border-color:rgba(116,198,242,.65)!important;
    box-shadow:0 0 0 3px rgba(116,198,242,.16)!important;
}

.hcd-widget-root .hcd-primary-btn{
    width:100%!important;
    height:46px!important;
    min-height:46px!important;
    margin:10px 0 0!important;
    border-radius:12px!important;
    background:linear-gradient(135deg,var(--hcd-primary) 0%, #c27fd1 48%, var(--hcd-secondary) 100%)!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:600!important;
    line-height:46px!important;
    text-align:center!important;
    cursor:pointer!important;
    box-shadow:0 12px 28px rgba(116,198,242,.18)!important;
}

.hcd-widget-root .hcd-primary-btn:hover,
.hcd-widget-root .hcd-primary-btn:focus{transform:translateY(-1px)!important;color:#fff!important}
.hcd-widget-root .hcd-primary-btn.is-loading{opacity:.75!important;pointer-events:none!important}

.hcd-widget-root .hcd-screen-chat{padding:0!important}

.hcd-widget-root .hcd-agent-bar{
    min-height:60px!important;
    padding:12px 14px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    border-bottom:1px solid rgba(145,161,182,.14)!important;
    background:#fff!important;
}

.hcd-widget-root .hcd-agent-meta{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    min-width:0!important;
}

.hcd-widget-root .hcd-agent-avatar{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    border-radius:50%!important;
    display:grid!important;
    place-items:center!important;
    background:linear-gradient(135deg,var(--hcd-primary) 0%, #c27fd1 48%, var(--hcd-secondary) 100%)!important;
    color:#fff!important;
    font-size:11px!important;
    font-weight:600!important;
}

.hcd-widget-root .hcd-agent-bar b{display:block!important;font-size:13px!important;font-weight:600!important;color:var(--hcd-text)!important}
.hcd-widget-root .hcd-agent-bar small{display:flex!important;align-items:center!important;gap:5px!important;font-size:10px!important;color:#7b8ca0!important}
.hcd-widget-root .hcd-agent-bar small i{width:7px!important;height:7px!important;border-radius:50%!important;background:#22c55e!important;display:inline-block!important}

.hcd-widget-root .hcd-end-chat-btn{
    display:inline-flex!important;
    align-items:center!important;
    gap:6px!important;
    height:34px!important;
    padding:0 12px!important;
    border:1px solid rgba(243,154,183,.28)!important;
    border-radius:999px!important;
    background:#fff5f8!important;
    color:#d85b8b!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1!important;
    cursor:pointer!important;
    white-space:nowrap!important;
}

.hcd-widget-root .hcd-end-chat-btn i{
    font-size:12px!important;
    color:#d85b8b!important;
}

.hcd-widget-root .hcd-end-chat-btn:hover,
.hcd-widget-root .hcd-end-chat-btn:focus{
    background:#ffeef4!important;
    border-color:rgba(243,154,183,.45)!important;
}

.hcd-widget-root .hcd-messages{
    height:270px!important;
    overflow:auto!important;
    padding:14px!important;
    background:linear-gradient(180deg,#fff 0%, #f9fbfe 100%)!important;
}

.hcd-widget-root .hcd-message{
    display:flex!important;
    margin-bottom:10px!important;
}

.hcd-widget-root .hcd-message span{
    max-width:80%!important;
    padding:10px 12px!important;
    border-radius:15px!important;
    font-size:12px!important;
    font-weight:400!important;
    line-height:1.48!important;
    white-space:pre-wrap!important;
    word-break:break-word!important;
    box-shadow:0 7px 18px rgba(50,66,85,.05)!important;
}

.hcd-widget-root .hcd-message small{display:block!important;margin-top:4px!important;font-size:9px!important;opacity:.7!important}
.hcd-widget-root .hcd-message.agent{justify-content:flex-start!important}
.hcd-widget-root .hcd-message.agent span{background:#fff!important;color:var(--hcd-text)!important;border:1px solid rgba(145,161,182,.14)!important;border-bottom-left-radius:6px!important}
.hcd-widget-root .hcd-message.visitor{justify-content:flex-end!important}
.hcd-widget-root .hcd-message.visitor span{background:linear-gradient(135deg,#93d5f7 0%, #5eaef0 100%)!important;color:#fff!important;border-bottom-right-radius:6px!important}

.hcd-widget-root .hcd-typing{display:none!important;padding:0 14px 8px!important;color:#7b8ca0!important;font-size:10px!important;background:#fff!important}

.hcd-widget-root .hcd-message-form{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    padding:10px!important;
    border-top:1px solid rgba(145,161,182,.14)!important;
    background:#fff!important;
}

.hcd-widget-root .hcd-message-form input{
    flex:1 1 auto!important;
    min-width:0!important;
    height:42px!important;
    padding:0 14px!important;
    border-radius:999px!important;
}

.hcd-widget-root .hcd-message-form button{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border-radius:50%!important;
    display:grid!important;
    place-items:center!important;
    background:linear-gradient(135deg,var(--hcd-primary) 0%, #c27fd1 48%, var(--hcd-secondary) 100%)!important;
    color:#fff!important;
    cursor:pointer!important;
    box-shadow:0 10px 24px rgba(116,198,242,.20)!important;
}

.hcd-widget-root .hcd-message-form button i{font-size:16px!important;line-height:1!important;color:#fff!important;margin-left:1px!important}

.hcd-widget-root .hcd-powered{
    display:block!important;
    padding:0 0 12px!important;
    text-align:center!important;
    color:#7b8ca0!important;
    font-size:10px!important;
    font-weight:500!important;
    background:#fff!important;
}

.hcd-hidden{display:none!important}

@media (max-width:640px){
    .hcd-widget-root{left:16px!important;right:auto!important;bottom:16px!important}
    .hcd-widget-root[data-mobile-disabled="1"]{display:none!important}
    .hcd-widget-root .hcd-panel{width:calc(100vw - 32px)!important;bottom:84px!important}
    .hcd-widget-root .hcd-float-button{min-width:156px!important;height:66px!important;padding:0 20px 0 16px!important;gap:12px!important}
    .hcd-widget-root .hcd-float-icon{width:38px!important;height:38px!important;min-width:38px!important}
    .hcd-widget-root .hcd-float-icon i{font-size:20px!important}
    .hcd-widget-root .hcd-float-text{font-size:15px!important}
    .hcd-widget-root .hcd-end-chat-btn{padding:0 10px!important;height:32px!important}
    .hcd-widget-root .hcd-end-chat-btn span{display:none!important}
    .hcd-widget-root .hcd-messages{height:245px!important}
}
