/**
 * @file
 * Styles for the "Quick communication" live chat block (sp/quick-chat).
 *
 * Markup is produced by \Drupal\sp\Plugin\Block\QuickChatBlock and
 * \Drupal\sp\Form\QuickChatForm.
 */

.sp-quick-chat-block {
  max-inline-size: 360px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sp-quick-chat__header {
  padding: 0.875rem 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #28217f;
}

.sp-quick-chat {
  padding: 1rem;
}

.sp-quick-chat .form-item {
  margin-block: 0 0.625rem;
}

.sp-quick-chat input[type="text"],
.sp-quick-chat input[type="email"],
.sp-quick-chat textarea {
  inline-size: 100%;
  box-sizing: border-box;
  padding: 0.625rem 0.75rem;
  font: inherit;
  border: 1px solid #d5d5e0;
  border-radius: 8px;
}

.sp-quick-chat__message {
  resize: vertical;
  min-block-size: 3.5rem;
}

.sp-quick-chat input:focus,
.sp-quick-chat textarea:focus {
  outline: none;
  border-color: #28217f;
  box-shadow: 0 0 0 2px rgba(40, 33, 127, 0.2);
}

.sp-quick-chat .form-actions {
  margin-block: 0.5rem 0;
}

.sp-quick-chat .button,
.sp-quick-chat input[type="submit"] {
  inline-size: 100%;
  padding: 0.625rem 1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background-color: #28217f;
}

.sp-quick-chat .button:hover,
.sp-quick-chat input[type="submit"]:hover {
  background-color: #1f1a63;
}

.sp-quick-chat__status:empty {
  display: none;
}

.sp-quick-chat__status .messages {
  margin-block: 0 0.75rem;
}
