/* =========================================================
PAKJHONLABS - LIVE CHAT MODAL
DESKTOP / TABLET / MOBILE
========================================================= */

#modalpesan .modal-dialog.pj-chat-modal-dialog{width:100%;max-width:500px;margin:0 auto;display:flex;align-items:center;min-height:calc(100vh - 30px)}
#modalpesan .pj-chat-modal{width:100%;margin:15px 0;border:0!important;border-radius:22px!important;overflow:hidden!important;background:#fff;box-shadow:0 20px 60px rgba(0,0,0,.22)}
#modalpesan .pj-chat-header{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 18px;border:0;background:#60af00;color:#fff}
#modalpesan .pj-chat-header-info{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
#modalpesan .pj-chat-avatar{width:44px;height:44px;display:flex;align-items:center;justify-content:center;flex:0 0 44px;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:19px}
#modalpesan .pj-chat-title{margin:0;color:#fff;font-size:17px;font-weight:700;line-height:1.2}
#modalpesan .pj-chat-status{display:flex;align-items:center;gap:6px;margin-top:4px;color:rgba(255,255,255,.9);font-size:11px}
#modalpesan .pj-chat-status-dot{width:7px;height:7px;border-radius:50%;background:#dfff9a;box-shadow:0 0 0 3px rgba(255,255,255,.12)}
#modalpesan .pj-chat-close{position:relative!important;z-index:10!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0!important;padding:7px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.18)!important;color:#fff!important;opacity:1!important;filter:none!important;outline:0!important;box-shadow:none!important;cursor:pointer!important;transition:.2s ease}
#modalpesan .pj-chat-close i{display:block!important;width:16px;height:16px;color:#fff!important;font-size:16px;line-height:16px;opacity:1!important}
#modalpesan .pj-chat-close svg{display:block!important;width:16px!important;height:16px!important;color:#fff!important;fill:currentColor!important;opacity:1!important}
#modalpesan .pj-chat-close:hover{background:rgba(255,255,255,.3)!important;transform:rotate(90deg)}
#modalpesan .pj-chat-close:focus{outline:0!important;box-shadow:none!important}

#modalpesan .pj-chat-body{height:430px;padding:16px;overflow-y:auto;overflow-x:hidden;background:#f5f7f6;scroll-behavior:auto}
#modalpesan .pj-chat-body::-webkit-scrollbar{width:5px}
#modalpesan .pj-chat-body::-webkit-scrollbar-track{background:transparent}
#modalpesan .pj-chat-body::-webkit-scrollbar-thumb{border-radius:10px;background:#cfd5d1}

#modalpesan .pj-chat-welcome{max-width:310px;margin:3px auto 18px;padding:16px;text-align:center;border:1px solid #edf0ee;border-radius:15px;background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.04)}
#modalpesan .pj-chat-welcome-icon{width:45px;height:45px;display:flex;align-items:center;justify-content:center;margin:0 auto 9px;border-radius:50%;background:#eef8e7;color:#60af00;font-size:18px}
#modalpesan .pj-chat-welcome h6{margin:0 0 5px;color:#222;font-size:14px;font-weight:700}
#modalpesan .pj-chat-welcome p{margin:0;color:#777;font-size:11px;line-height:1.6}

#modalpesan .pj-chat-row{display:flex;align-items:flex-end;gap:8px;width:100%;margin-bottom:13px}
#modalpesan .pj-chat-admin{justify-content:flex-start}
#modalpesan .pj-chat-customer{flex-direction:row-reverse;justify-content:flex-start}
#modalpesan .pj-chat-avatar-small{width:30px;height:30px;display:flex;align-items:center;justify-content:center;flex:0 0 30px;border-radius:50%;background:#eaf5e3;color:#60af00;font-size:11px}
#modalpesan .pj-chat-customer .pj-chat-avatar-small{background:#e4f2dc}
#modalpesan .pj-chat-message{max-width:78%;min-width:0}
#modalpesan .pj-chat-customer .pj-chat-message{display:flex;flex-direction:column;align-items:flex-end}
#modalpesan .pj-chat-sender{margin:0 0 4px 4px;color:#777;font-size:10px;font-weight:700}
#modalpesan .pj-chat-customer .pj-chat-sender{margin-right:4px}

#modalpesan .pj-chat-bubble{padding:9px 11px 6px;border:1px solid #e9edeb;border-radius:14px 14px 14px 5px;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.04)}
#modalpesan .pj-chat-customer .pj-chat-bubble{border:0;border-radius:14px 14px 5px 14px;background:#60af00;box-shadow:0 2px 7px rgba(96,175,0,.16)}
#modalpesan .pj-chat-text{color:#333;font-size:13px;line-height:1.5;word-break:break-word;overflow-wrap:anywhere}
#modalpesan .pj-chat-customer .pj-chat-text{color:#fff}
#modalpesan .pj-chat-meta{display:flex;align-items:center;justify-content:flex-end;gap:4px;margin-top:5px;color:#a0a5a2;font-size:9px;line-height:1}
#modalpesan .pj-chat-customer .pj-chat-meta{color:#121312ea}
#modalpesan .pj-chat-customer .pj-chat-meta .fa-check-double{color:#e3f7d8}

#modalpesan .pj-chat-date{display:flex;align-items:center;justify-content:center;margin:14px 0}
#modalpesan .pj-chat-date span{padding:5px 10px;border-radius:20px;background:#e7ebe8;color:#7d837f;font-size:10px}

#modalpesan .pj-chat-product{display:flex;gap:10px;width:270px;max-width:100%;padding:8px;border:1px solid #e4e9e5;border-radius:13px;background:#fff;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.04);transition:.2s ease}
#modalpesan .pj-chat-product:hover{transform:translateY(-1px);box-shadow:0 5px 15px rgba(0,0,0,.08)}
#modalpesan .pj-chat-product-image{width:62px;height:62px;flex:0 0 62px;overflow:hidden;border-radius:10px;background:#f3f5f3}
#modalpesan .pj-chat-product-image img{width:100%;height:100%;display:block;object-fit:cover}
#modalpesan .pj-chat-product-info{min-width:0;flex:1}
#modalpesan .pj-chat-product-name{color:#333;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#modalpesan .pj-chat-product-price{margin-top:4px;color:#60af00;font-size:12px;font-weight:700}
#modalpesan .pj-chat-product-stock{margin-top:4px;color:#999;font-size:9px}
#modalpesan .pj-chat-product-stock i{margin-right:3px;color:#60af00}

#modalpesan .pj-chat-empty{padding:40px 20px;text-align:center}
#modalpesan .pj-chat-empty-icon{width:50px;height:50px;display:flex;align-items:center;justify-content:center;margin:0 auto 10px;border-radius:50%;background:#eef8e7;color:#60af00;font-size:19px}
#modalpesan .pj-chat-empty-title{color:#555;font-size:13px;font-weight:700}
#modalpesan .pj-chat-empty-text{margin-top:3px;color:#999;font-size:11px}

#modalpesan .pj-chat-footer{padding:11px 13px 9px;border-top:1px solid #edf0ee;background:#fff}
#modalpesan .pj-chat-input-wrap{display:flex;align-items:center;gap:7px;padding:4px;border:1px solid #dfe5e1;border-radius:14px;background:#f8faf9;transition:.2s ease}
#modalpesan .pj-chat-input-wrap:focus-within{border-color:#60af00;background:#fff;box-shadow:0 0 0 3px rgba(96,175,0,.08)}
#modalpesan .pj-chat-input{height:40px;padding:0 10px;border:0;outline:0;background:transparent;box-shadow:none!important;font-size:13px}
#modalpesan .pj-chat-input:focus{border:0;box-shadow:none!important}
#modalpesan .pj-chat-send{width:40px;height:40px;display:flex;align-items:center;justify-content:center;flex:0 0 40px;border:0;border-radius:11px;background:#60af00;color:#fff;font-size:14px;cursor:pointer;transition:.2s ease}
#modalpesan .pj-chat-send:hover{background:#4f9700;transform:translateY(-1px)}
#modalpesan .pj-chat-send:active{transform:scale(.96)}
#modalpesan .pj-chat-send:disabled{opacity:.6;cursor:not-allowed;transform:none}
#modalpesan .pj-chat-footer-info{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:6px;color:#9a9f9c;font-size:9px}
#modalpesan .pj-chat-footer-info i{color:#60af00;font-size:8px}

#modalpesan .pesanwrap.center{display:flex;justify-content:center}
#modalpesan .isipesan{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:20px;background:#fff;color:#777;font-size:11px;box-shadow:0 2px 8px rgba(0,0,0,.04)}


/* TABLET */

@media (min-width:576px) and (max-width:991.98px){
#modalpesan .modal-dialog.pj-chat-modal-dialog{width:100%;max-width:460px;min-height:calc(100vh - 24px);margin:0 auto}
#modalpesan .pj-chat-modal{margin:12px 0;border-radius:21px!important}
#modalpesan .pj-chat-body{height:400px}
}

/* MOBILE */

@media (max-width:575.98px){
#modalpesan .modal-dialog.pj-chat-modal-dialog{width:calc(100% - 20px);max-width:none;min-height:calc(100vh - 20px);margin:0 auto}
#modalpesan .pj-chat-modal{margin:10px 0;border-radius:18px!important}
#modalpesan .pj-chat-header{padding:13px 14px}
#modalpesan .pj-chat-avatar{width:40px;height:40px;flex:0 0 40px;font-size:17px}
#modalpesan .pj-chat-title{font-size:15px}
#modalpesan .pj-chat-status{font-size:10px}
#modalpesan .pj-chat-close{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;flex-basis:32px!important;padding:6px!important}
#modalpesan .pj-chat-close i{width:15px;height:15px;font-size:15px;line-height:15px}
#modalpesan .pj-chat-body{height:55vh;min-height:300px;max-height:480px;padding:13px}
#modalpesan .pj-chat-message{max-width:84%}
#modalpesan .pj-chat-text{font-size:12px}
#modalpesan .pj-chat-product{width:250px}
#modalpesan .pj-chat-footer{padding:9px 10px 8px}
}

/* MOBILE KECIL */

@media (max-width:380px){
#modalpesan .modal-dialog.pj-chat-modal-dialog{width:calc(100% - 12px);min-height:calc(100vh - 12px)}
#modalpesan .pj-chat-modal{margin:6px 0;border-radius:16px!important}
#modalpesan .pj-chat-header{padding:12px}
#modalpesan .pj-chat-body{height:52vh;min-height:270px}
#modalpesan .pj-chat-message{max-width:87%}
#modalpesan .pj-chat-product{width:235px}
#modalpesan .pj-chat-product-image{width:55px;height:55px;flex-basis:55px}
#modalpesan .pj-chat-welcome{max-width:270px;padding:14px}
}

/* LAYAR PENDEK */

@media (max-height:650px) and (min-width:576px){
#modalpesan .pj-chat-body{height:330px}
}

@media (max-height:600px) and (max-width:575.98px){
#modalpesan .pj-chat-body{height:48vh;min-height:230px}
}