#customer-chat-widget {
  bottom: 140px;
  position: fixed;
  right: 24px;
  z-index: 1040;
}

.customer-chat-launcher {
  align-items: center;
  background: #185abd;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  color: #fff;
  display: flex;
  gap: 9px;
  padding: 13px 18px;
}

.customer-chat-launcher i {
  font-size: 1.15rem;
}

.customer-chat-launcher .customer-chat-launcher-presence {
  border: 1px solid rgba(255, 255, 255, .9);
  flex: 0 0 9px;
  height: 9px;
  margin-left: 2px;
  width: 9px;
}

.customer-chat-launcher .customer-chat-launcher-presence.is-online {
  background: #75e09a;
}

.customer-chat-panel {
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  bottom: 62px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
  height: min(480px, calc(100vh - 110px));
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(360px, calc(100vw - 32px));
}

.customer-chat-panel[hidden] {
  display: none;
}

.customer-chat-header {
  align-items: center;
  background: #185abd;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
}

.customer-chat-header span {
  display: block;
  font-size: .75rem;
  margin-top: 2px;
  opacity: .8;
}

.customer-chat-header .customer-chat-presence {
  align-items: center;
  display: flex;
  gap: 6px;
}

.customer-chat-presence-dot {
  background: #adb5bd;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 8px;
  height: 8px;
  width: 8px;
}

.customer-chat-presence-dot.is-online {
  background: #28a745;
}

.customer-chat-presence-dot.is-offline,
.customer-chat-presence-dot.is-unknown {
  background: #adb5bd;
}

.customer-chat-header small {
  display: block;
  font-size: .68rem;
  margin-top: 2px;
  opacity: .7;
}

.customer-chat-header button {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
}

.customer-chat-messages {
  background: #f7f8fa;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 14px;
}

.customer-chat-message {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e6e9ed;
  border-radius: 12px 12px 12px 2px;
  max-width: 85%;
  overflow-wrap: anywhere;
  padding: 8px 11px;
}

.customer-chat-message.mine {
  align-self: flex-end;
  background: #dcecff;
  border-color: #dcecff;
  border-radius: 12px 12px 2px 12px;
}

.customer-chat-message small {
  color: #6c757d;
  display: block;
  font-size: .68rem;
  margin-top: 4px;
  text-align: right;
}

.customer-chat-form {
  border-top: 1px solid #e6e9ed;
  display: flex;
  gap: 8px;
  padding: 10px;
}

.customer-chat-form input {
  border: 1px solid #d9dee4;
  border-radius: 20px;
  flex: 1;
  min-width: 0;
  padding: 9px 13px;
}

.customer-chat-form button {
  background: #185abd;
  border: 0;
  border-radius: 50%;
  color: #fff;
  height: 40px;
  width: 40px;
}

@media (max-width: 575px) {
  #customer-chat-widget {
    bottom: 130px;
    right: 16px;
  }
}
