#wplac-widget {
  position: fixed;
  z-index: 99999;
  font-family: Arial, sans-serif;
}
#wplac-widget.wplac-position-bottom-right { right: 20px; bottom: 20px; }
#wplac-widget.wplac-position-bottom-left { left: 20px; bottom: 20px; }
#wplac-widget.wplac-position-top-right { right: 20px; top: 20px; }
#wplac-widget.wplac-position-top-left { left: 20px; top: 20px; }
#wplac-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.wplac-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 10px;
}
.wplac-online { background: #22c55e; }
.wplac-offline { background: #9ca3af; }
#wplac-panel {
  width: 340px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 18px;
  margin-top: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.16);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.wplac-hidden { display: none !important; }
.wplac-header {
  padding: 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wplac-header-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; }
.wplac-thread {
  padding: 14px;
  min-height: 100px;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
}
.wplac-msg {
  margin-bottom: 10px;
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.4;
  font-size: 14px;
  word-break: break-word;
}
.wplac-msg-visitor { background: #111827; color: #fff; margin-left: auto; }
.wplac-msg-admin { background: #f3f4f6; color: #111827; }
#wplac-form, #wplac-live-form { padding: 14px; border-top: 1px solid #e5e7eb; }
.wplac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#wplac-form input, #wplac-form textarea, #wplac-live-form textarea {
  width: 100%;
  margin-bottom: 8px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  box-sizing: border-box;
}
#wplac-form button, #wplac-live-form button {
  width: 100%;
  border: 0;
  background: #111827;
  color: #fff;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
}
.wplac-feedback {
  padding: 0 14px 14px;
  margin: 0;
  color: #374151;
  font-size: 13px;
}
