.support-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
}
.support-chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.support-chat-button .chat-icon {
  font-size: 24px;
  color: white;
}
.support-chat-button .unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
}
.support-chat-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 640px) {
  .support-chat-container {
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
    bottom: 80px;
    right: 10px;
    left: 10px;
  }
}
.support-chat-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
}
.chat-header {
  background:
    linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 100%);
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.chat-subtitle {
  margin: 4px 0 0 0;
  font-size: 12px;
  opacity: 0.9;
}
.close-button {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}
.close-button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.chat-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8f9fa;
}
.empty-messages {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6c757d;
  font-size: 14px;
}
.support-chat-message {
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 12px;
}
.sender-name {
  font-weight: 600;
  color: #495057;
}
.message-time {
  color: #6c757d;
}
.message-content {
  background: white;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.user-message .message-content {
  background: #667eea;
  color: white;
}
.user-message .sender-name,
.user-message .message-time {
  color: rgba(255, 255, 255, 0.9);
}
.message-text {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.message-image {
  margin-top: 8px;
}
.chat-image {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 8px;
}
.chat-input-area {
  border-top: 1px solid #e9ecef;
  padding: 12px;
  background: white;
}
.image-preview {
  position: relative;
  margin-bottom: 8px;
  display: inline-block;
}
.image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}
.remove-image {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.attach-button,
.send-button {
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.attach-button:hover,
.send-button:hover:not(:disabled) {
  background: #5568d3;
}
.attach-button:disabled,
.send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.message-input {
  flex: 1;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  font-family: inherit;
}
.message-input:focus {
  outline: none;
  border-color: #667eea;
}
.support-chat-init-form {
  padding: 20px;
}
.form-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #212529;
}
.form-subtitle {
  font-size: 14px;
  color: #6c757d;
  margin: 0 0 24px 0;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}
.form-group input.error,
.form-group select.error {
  border-color: #ef4444;
}
.error-message {
  display: block;
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}
.submit-button {
  width: 100%;
  padding: 12px;
  background:
    linear-gradient(
      135deg,
      #667eea 0%,
      #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 8px;
}
.submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
}
.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.support-chat-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}
.support-chat-modal {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}
.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-body {
  padding: 20px;
}
.modal-body p {
  margin: 0 0 16px 0;
  color: #495057;
}
.modal-checkbox {
  margin-bottom: 16px;
}
.modal-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.modal-input {
  margin-top: 12px;
}
.modal-input label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}
.modal-input input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
}
.modal-footer {
  padding: 20px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.button-primary,
.button-secondary {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.button-primary {
  background: #667eea;
  color: white;
}
.button-primary:hover {
  background: #5568d3;
}
.button-secondary {
  background: #f8f9fa;
  color: #495057;
}
.button-secondary:hover {
  background: #e9ecef;
}
