/**
 * Ledgr Chat Widget Styles
 * Production-ready CSS for chat interface and escalation modal
 * Supports dark mode, mobile responsive, accessibility
 */

/* ================================
   VARIABLES & THEME
   ================================ */

:root {
  --primary: #FF5C00;
  --primary-dark: #cc4a00;
  --primary-light: #ffbe99;
  --bg-light: #f9f9f9;
  --bg-lighter: #ffffff;
  --text-primary: #191919;
  --text-secondary: #4a4a4a;
  --text-tertiary: #999999;
  --border-color: #e0e0e0;
  --success: #34c759;
  --error: #ff405d;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
.ledgr-chat-widget.dark {
  --bg-light: #1a1a1a;
  --bg-lighter: #242424;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-tertiary: #999999;
  --border-color: #333333;
}

/* ================================
   CHAT WIDGET FLOATING BUTTON
   ================================ */

.ledgr-chat-widget {
  position: fixed;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
}

.ledgr-chat-widget.bottom-right {
  bottom: 24px;
  right: 24px;
}

.ledgr-chat-widget.bottom-left {
  bottom: 24px;
  left: 24px;
}

/* Toggle Button */
.chat-toggle-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  color: white;
  z-index: 1000;
}

.chat-toggle-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(255, 92, 0, 0.3);
}

.chat-toggle-btn:active {
  transform: scale(0.95);
}

.chat-toggle-btn .chat-icon {
  width: 24px;
  height: 24px;
}

.unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--error);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
}

.unread-badge.show {
  opacity: 1;
  transform: scale(1);
}

/* ================================
   CHAT CONTAINER
   ================================ */

.chat-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 420px;
  height: 600px;
  background: var(--bg-lighter);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideInUp 0.3s ease-out;
  overflow: hidden;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-container.minimized {
  height: 0;
  overflow: hidden;
  animation: slideOutDown 0.3s ease-out forwards;
}

@keyframes slideOutDown {
  from {
    height: 80px;
    opacity: 1;
  }
  to {
    height: 0;
    opacity: 0;
  }
}

.ledgr-chat-widget.closed .chat-container {
  display: none;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .chat-container {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
    border-radius: 0 !important;
    max-height: 100vh;
  }

  .ledgr-chat-widget.bottom-right,
  .ledgr-chat-widget.bottom-left {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
  }

  .chat-toggle-btn {
    bottom: 16px;
    right: 16px;
  }
}

/* ================================
   CHAT HEADER
   ================================ */

.chat-header {
  padding: 16px;
  background: linear-gradient(135deg, var(--bg-lighter), var(--bg-light));
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chat-header-content {
  flex: 1;
  min-width: 0;
}

.chat-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-subtitle {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.chat-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.header-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.header-btn:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.header-btn svg {
  width: 18px;
  height: 18px;
}

/* ================================
   CHAT MAIN (Sidebar + Messages)
   ================================ */

.chat-main {
  display: flex;
  flex: 1;
  min-height: 0;
  background: var(--bg-lighter);
}

/* Sidebar */
.chat-sidebar {
  width: 200px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  overflow: hidden;
}

.sidebar-header {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-tertiary);
  flex: 1;
  min-width: 0;
}

.new-chat-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}

.new-chat-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.new-chat-btn svg {
  width: 16px;
  height: 16px;
}

.sidebar-search {
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-search-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 12px;
  background: var(--bg-lighter);
  color: var(--text-primary);
  transition: var(--transition);
}

.sidebar-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-lighter);
}

.sessions-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.session-item {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-item:hover {
  background: rgba(255, 92, 0, 0.1);
}

.session-item.active {
  background: var(--primary);
  color: white;
}

.session-title {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-date {
  font-size: 10px;
  opacity: 0.7;
}

/* Hide sidebar on mobile */
@media (max-width: 640px) {
  .chat-sidebar {
    display: none;
  }
}

/* ================================
   MESSAGES AREA
   ================================ */

.chat-messages-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-lighter);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  gap: 8px;
  animation: fadeInMessage 0.3s ease-out;
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.assistant {
  justify-content: flex-start;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.message-avatar.user {
  background: rgba(255, 92, 0, 0.1);
}

.message-avatar.assistant {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
}

.message-body {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-content {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.user .message-content {
  background: var(--primary);
  color: white;
  margin-right: 8px;
}

.assistant .message-content {
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  margin-left: 8px;
}

.message-content code {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 12px;
}

.message-content strong {
  font-weight: 600;
}

.message-content em {
  font-style: italic;
}

/* Citations */
.message-citations {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 8px;
}

.citation-link {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary);
  transition: var(--transition);
}

.citation-link:hover {
  color: var(--primary-dark);
  border-bottom-style: solid;
}

/* Message Actions */
.message-actions {
  display: flex;
  gap: 4px;
  padding: 0 8px;
  opacity: 0;
  transition: var(--transition);
  align-items: center;
  flex-wrap: wrap;
}

.chat-message:hover .message-actions {
  opacity: 1;
}

.action-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: var(--bg-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}

.action-btn:hover {
  background: var(--border-color);
  color: var(--primary);
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

.rating-group {
  display: flex;
  gap: 2px;
}

.rating-btn.active {
  background: var(--primary);
  color: white;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  background: var(--bg-light);
  border-radius: 8px;
  width: fit-content;
  margin-left: 8px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-8px);
  }
}

/* ================================
   INPUT AREA
   ================================ */

.chat-input-wrapper {
  padding: 12px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-lighter);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.chat-input-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-lighter);
  color: var(--text-primary);
  resize: none;
  max-height: 100px;
  transition: var(--transition);
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.1);
}

.chat-input::placeholder {
  color: var(--text-tertiary);
}

.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.send-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.send-btn:active {
  transform: scale(0.95);
}

.send-btn svg {
  width: 20px;
  height: 20px;
}

/* Suggested Prompts */
.suggested-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prompts-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.prompts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.prompt-btn {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-light);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: var(--transition);
}

.prompt-btn:hover {
  background: rgba(255, 92, 0, 0.1);
  border-color: var(--primary);
}

.prompt-btn span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Toast Notifications */
.chat-toast {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  padding: 12px 16px;
  background: var(--text-primary);
  color: var(--bg-lighter);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 1001;
}

.chat-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   ESCALATION MODAL
   ================================ */

.escalation-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: 10000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.escalation-modal {
  background: var(--bg-lighter);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideInUp 0.3s ease-out;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  z-index: 1;
}

.modal-close-btn:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-content {
  padding: 32px 24px 24px;
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 92, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}

.modal-icon svg {
  width: 28px;
  height: 28px;
}

.modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-lighter);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.1);
}

.form-input.textarea {
  resize: vertical;
  min-height: 80px;
}

.form-input.select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23191919' d='M1 4l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.form-hint {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Priority Options */
.priority-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.radio-option:hover {
  background: var(--bg-light);
}

.radio-option input[type="radio"] {
  margin: 0 12px 0 0;
  cursor: pointer;
}

.radio-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.priority-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.priority-desc {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Contact Methods */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.contact-method-btn {
  padding: 12px 8px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.contact-method-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

.contact-method-btn.active {
  background: rgba(255, 92, 0, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.contact-method-btn svg {
  width: 20px;
  height: 20px;
}

.contact-info-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 92, 0, 0.05);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.contact-info-hint svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 92, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 92, 0, 0.05);
  border-color: var(--primary);
}

.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-loader svg {
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Success State */
.modal-success {
  text-align: center;
  padding: 40px 24px 24px;
}

.success-icon {
  width: 56px;
  height: 56px;
  background: rgba(52, 199, 89, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--success);
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.modal-success h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-success p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

#ticket-number {
  font-weight: 600;
  color: var(--primary);
  font-size: 16px;
}

.success-message {
  color: var(--text-tertiary);
  font-size: 13px;
}

.next-steps {
  background: var(--bg-light);
  border-radius: 6px;
  padding: 16px;
  text-align: left;
  margin: 20px 0;
}

.next-steps h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.next-steps ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-steps li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.next-steps li:last-child {
  border-bottom: none;
}

/* ================================
   ACCESSIBILITY & KEYBOARD NAV
   ================================ */

/* Focus visible for keyboard navigation */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ================================
   SCROLLBAR STYLING
   ================================ */

.chat-messages::-webkit-scrollbar,
.sessions-list::-webkit-scrollbar,
.escalation-modal::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.sessions-list::-webkit-scrollbar-track,
.escalation-modal::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.sessions-list::-webkit-scrollbar-thumb,
.escalation-modal::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.sessions-list::-webkit-scrollbar-thumb:hover,
.escalation-modal::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ================================
   PRINT STYLES
   ================================ */

@media print {
  .ledgr-chat-widget,
  .escalation-modal-overlay {
    display: none !important;
  }
}

/* ================================
   HIGH CONTRAST MODE
   ================================ */

@media (prefers-contrast: more) {
  .chat-message.user .message-content {
    border: 2px solid var(--primary);
  }

  .assistant .message-content {
    border: 2px solid var(--border-color);
  }

  .action-btn {
    border: 1px solid var(--border-color);
  }
}

/* ================================
   REDUCED MOTION
   ================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
