
/* Mundo em 12X - Webchat independente */

.m12-chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 9998;
  border: 0;
  border-radius: 999px;
  background: #087cbd;
  color: #fff;
  padding: 15px 22px;
  font: 600 15px Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
}

.m12-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 9999;
  width: min(370px, calc(100vw - 24px));
  height: min(560px, calc(100dvh - 110px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 45px rgba(0,0,0,.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: #18324a;
}

.m12-chat-panel[hidden],
.m12-chat-toggle[hidden] {
  display: none !important;
}

.m12-chat-header {
  background: #087cbd;
  color: #fff;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m12-chat-header strong {
  font-size: 16px;
}

.m12-chat-close {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 25px;
  cursor: pointer;
}

.m12-chat-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  background: #f5f8fc;
}

.m12-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m12-chat-message {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 13px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.45;
}

.m12-chat-message.visitor {
  align-self: flex-end;
  background: #d9efff;
}

.m12-chat-message.agent {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e0e7ef;
}

.m12-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e1e7ee;
}

.m12-chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 11px;
  font: 14px Arial, sans-serif;
}

.m12-chat-submit {
  border: 0;
  border-radius: 9px;
  background: #087cbd;
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}

.m12-chat-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.m12-chat-status {
  padding: 7px 12px;
  font-size: 12px;
  color: #52657b;
}

@media (max-width: 480px) {
  .m12-chat-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .m12-chat-toggle {
    right: 14px;
    bottom: 88px;
  }
}


/* M12 WEBCHAT END BUTTONS V1 */

.m12-chat-end,
.m12-chat-new {
  display: block;
  align-self: stretch;
  margin: 4px 12px 8px;
  padding: 10px 12px;
  border-radius: 9px;
  font: 600 13px Arial, sans-serif;
  cursor: pointer;
}

.m12-chat-end {
  background: #fff;
  color: #b42318;
  border: 1px solid #e6b4af;
}

.m12-chat-end:hover {
  background: #fff1f0;
}

.m12-chat-new {
  background: #087cbd;
  color: #fff;
  border: 1px solid #087cbd;
}

.m12-chat-end[hidden],
.m12-chat-new[hidden] {
  display: none !important;
}

.m12-chat-end:disabled,
.m12-chat-new:disabled {
  opacity: .55;
  cursor: not-allowed;
}
