/* ====== PHÒNG CHAT CSKH (Option A) ====== */

.cskh-fab{
    position: fixed;
    right: 20px;
    bottom: 70px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size: 22px;
    z-index: 9999;
    background: linear-gradient(135deg, #00bcd4, #7c4dff);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
  
  .cskh-widget{
    position: fixed;
    right: 20px;
    bottom: 125px;
    width: 330px;
    height: 450px;
    background: rgba(15,15,20,0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    overflow: hidden;
    z-index: 9999;
    display: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
  }
  
  .cskh-top{
    height: 60px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  
  .cskh-title{
    display:flex;
    gap: 10px;
    align-items:center;
  }
  
  .cskh-dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 12px rgba(0,230,118,0.8);
  }
  
  .cskh-name{
    color:#fff;
    font-weight: 700;
    font-size: 14px;
  }
  
  .cskh-sub{
    color: rgba(255,255,255,0.65);
    font-size: 12px;
  }
  
  .cskh-close{
    border: 0;
    outline: none;
    cursor:pointer;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color:#fff;
  }
  
  .cskh-body{
    height: calc(450px - 60px - 75px);
    padding: 10px;
    overflow-y: auto;
  }
  
  .cskh-note{
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 8px;
  }
  
  .cskh-bottom{
    height: 75px;
    display:flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  
  .cskh-bottom textarea{
    flex: 1;
    resize: none;
    border: 0;
    outline: none;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    color:#fff;
    font-size: 13px;
  }
  
  .cskh-send{
    width: 70px;
    border: 0;
    cursor: pointer;
    border-radius: 14px;
    background: linear-gradient(135deg, #00bcd4, #7c4dff);
    color:#fff;
    font-weight: 700;
  }
  
  .cskh-send:disabled{
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  /* bubble */
  .cskh-msg{
    display: flex;
    margin: 6px 0;
  }
  
  .cskh-msg.user{
    justify-content: flex-end;
  }
  
  .cskh-msg.admin{
    justify-content: flex-start;
  }
  
/* Bubble chat gọn theo chữ */
.cskh-bubble{
    display: inline-block;
    max-width: 78%;
    padding: 7px 10px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
  }
  
  /* User / Admin màu khác nhau */
  .cskh-msg.user .cskh-bubble{
    background: rgba(0, 200, 255, 0.23);
    border: 1px solid rgba(0, 200, 255, 0.35);
    border-bottom-right-radius: 6px; /* đẹp kiểu messenger */
    color: #fff;
  }
  
  .cskh-msg.admin .cskh-bubble{
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom-left-radius: 6px; /* đẹp kiểu messenger */
    color: #fff;
  }
  
  /* Time nhỏ gọn */
  .cskh-time{
    margin-top: 3px;
    font-size: 10px;
    opacity: .55;
  }
  
  