/* AccountPlasco - Online Support Chat Widget */

.ap-chat-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #0f3a8f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.ap-chat-fab:active{ transform: translateY(1px); }
.ap-chat-fab svg{ width: 26px; height: 26px; fill: #fff; }

.ap-chat-panel{
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
  display: none;
}
.ap-chat-panel.is-open{ display: block; }

.ap-chat-header{
  height: 74px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #123f9b 0%, #0f3a8f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ap-chat-header-title{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ap-chat-header-title .t1{ font-weight: 800; font-size: 16px; }
.ap-chat-header-title .t2{ font-size: 12px; opacity: .92; }

.ap-chat-close{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}
.ap-chat-close:hover{ background: rgba(255,255,255,.22); }

.ap-chat-body{
  height: calc(100% - 74px - 62px);
  background: #f4f6fb;
  overflow: auto;
  padding: 12px;
}

.ap-chat-hint{
  text-align: center;
  font-size: 12px;
  color: #5a6482;
  margin: 8px 0 12px;
}

.ap-msg{
  display: flex;
  margin: 10px 0;
}
.ap-msg.visitor{ justify-content: flex-end; }
.ap-msg.admin{ justify-content: flex-start; }

.ap-bubble{
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  white-space: pre-wrap;
  word-break: break-word;
}
.ap-msg.admin .ap-bubble{
  background: #fff;
  border: 1px solid #e2e7f2;
  color: #1c2440;
}
.ap-msg.visitor .ap-bubble{
  background: #0f3a8f;
  color: #fff;
  border: none;
}

.ap-chat-footer{
  height: 62px;
  border-top: 1px solid #e2e7f2;
  background: #fff;
  display: flex;
  gap: 10px;
  padding: 10px 10px;
  align-items: center;
}

.ap-chat-input{
  flex: 1;
  border: 1px solid #d8ddea;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
}
.ap-chat-send{
  border: none;
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  background: #0f3a8f;
  color: #fff;
  height: 42px;
}
.ap-chat-send:active{ transform: translateY(1px); }

.ap-chat-fallback{
  background: #fff3f3;
  border: 1px solid #ffd1d1;
  color: #8a1f1f;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}
.ap-chat-fallback a{ color: #0f3a8f; font-weight: 700; }
