/* ====== container ====== */
.oc-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* toggle button (если у тебя есть) */
.oc-chat__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 44px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}

/* window */
.oc-chat__window {
  width: 340px;
  height: 480px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  overflow: hidden;
  display: none;
}

.oc-chat.is-open .oc-chat__window {
  display: block;
}

/* header */
.oc-chat__header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: #2f80ed;
  color: #fff;
  font-weight: 600;
}

.oc-chat__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* body */
.oc-chat__body {
  height: 360px;
  padding: 12px;
  background: #f5f7fb;
  overflow-y: auto;
}

/* message row */
.oc-chat__msg {
  display: flex;
  margin: 10px 0;
}

/* operator LEFT */
.oc-chat__msg.is-them {
  justify-content: flex-start;
}

/* client RIGHT */
.oc-chat__msg.is-me {
  justify-content: flex-end;
}

/* bubble */
.oc-chat__bubble {
  max-width: 76%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.35;
  font-size: 14px;
  word-break: break-word;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

/* operator bubble */
.oc-chat__msg.is-them .oc-chat__bubble {
  background: #ffffff;
  border: 1px solid #e6e9f2;
  color: #111;
  border-bottom-left-radius: 6px;
}

/* client bubble */
.oc-chat__msg.is-me .oc-chat__bubble {
  background: #e6f2ff;
  border: 1px solid #cfe4ff;
  color: #111;
  border-bottom-right-radius: 6px;
}

/* time */
.oc-chat__time {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #6d778a;
  opacity: 0.9;
}

/* footer */
.oc-chat__footer {
  height: 76px;
  padding: 10px;
  border-top: 1px solid #eef1f7;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
}

.oc-chat__input {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #dfe5f0;
  padding: 0 10px;
  outline: none;
}

.oc-chat__input:focus {
  border-color: #2f80ed;
}

.oc-chat__send {
  height: 40px;
  min-width: 74px;
  border-radius: 8px;
  border: 0;
  background: #2f80ed;
  color: #fff;
  cursor: pointer;
}

.oc-chat__send:disabled {
  opacity: .6;
  cursor: default;
}

/* responsive */
@media (max-width: 480px) {
  .oc-chat {
    right: 10px;
    bottom: 10px;
  }
  .oc-chat__window {
    width: calc(100vw - 20px);
  }
}
