.nsc-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1050;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 28px;
  background: #911b33;
  color: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nsc-chat-launcher:hover,
.nsc-chat-launcher:focus-visible {
  background: #74152a;
}

.nsc-chat-launcher-icon {
  font-size: 22px;
  line-height: 1;
}

.nsc-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 1050;
  display: flex;
  width: min(380px, calc(100vw - 32px));
  height: min(540px, calc(100vh - 120px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 36px rgba(0, 0, 0, .2);
  font-family: inherit;
  direction: rtl;
}

.nsc-chat-panel[hidden] {
  display: none;
}

.nsc-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #911b33;
  color: #fff;
}

.nsc-chat-header h2 {
  margin: 0;
  color: inherit;
  font-size: 17px;
  font-weight: 700;
}

.nsc-chat-header p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
}

.nsc-chat-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.nsc-chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
  background: #f7f8fa;
}

.nsc-chat-message {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.nsc-chat-message a {
  color: #911b33;
  font-weight: 700;
  text-decoration: underline;
}

.nsc-chat-message-user {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #911b33;
  color: #fff;
}

.nsc-chat-message-bot {
  align-self: flex-end;
  border: 1px solid #e5e7eb;
  border-bottom-right-radius: 4px;
  background: #fff;
  color: #273244;
}

.nsc-chat-quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 12px 10px;
  background: #f7f8fa;
}

.nsc-chat-quick-questions button {
  padding: 6px 10px;
  border: 1px solid #d9dce2;
  border-radius: 18px;
  background: #fff;
  color: #6e1a2d;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.nsc-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e8eaee;
  background: #fff;
}

.nsc-chat-input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d9dce2;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
}

.nsc-chat-input:focus {
  border-color: #911b33;
  outline: 2px solid rgba(145, 27, 51, .15);
}

.nsc-chat-send {
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: #911b33;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nsc-chat-send:disabled,
.nsc-chat-input:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 480px) {
  .nsc-chat-launcher {
    right: 16px;
    bottom: 16px;
  }

  .nsc-chat-panel {
    right: 16px;
    bottom: 76px;
    height: min(540px, calc(100vh - 100px));
  }
}
