.quote-action-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.quote-action-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.quote-action-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.quote-action-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-primary, #fff);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light, #e2e8f0);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.quote-action-modal-overlay.active .quote-action-modal {
  transform: translateY(0) scale(1);
}

.quote-action-modal-header {
  padding: 1.5rem 1.5rem 0.75rem;
  text-align: center;
}

.quote-action-modal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.quote-action-modal-icon--reject {
  background: #fee2e2;
  color: #b91c1c;
}

.quote-action-modal-icon--confirm {
  background: #d1fae5;
  color: #047857;
}

.quote-action-modal-icon--star {
  background: #fef3c7;
  color: #d97706;
}

.quote-action-modal-icon--warning {
  background: #ffedd5;
  color: #c2410c;
}

.quote-action-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.quote-action-modal-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
}

.quote-action-modal-body {
  padding: 0.75rem 1.5rem 1rem;
}

.quote-action-modal-label {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}

.quote-reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.quote-reason-chip {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--border-light, #e2e8f0);
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #0f172a);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quote-reason-chip:hover {
  border-color: #fca5a5;
  background: #fef2f2;
}

.quote-reason-chip.selected {
  border-color: #ef4444;
  background: #fee2e2;
  color: #991b1b;
}

.quote-action-modal-field {
  display: block;
}

.quote-action-modal-field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary, #64748b);
}

.quote-reason-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  resize: vertical;
  min-height: 80px;
  color: var(--text-primary, #0f172a);
  background: var(--bg-primary, #fff);
  box-sizing: border-box;
}

.quote-reason-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.quote-action-modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-light, #e2e8f0);
}

.quote-action-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.quote-action-btn:active {
  transform: scale(0.98);
}

.quote-action-btn--secondary {
  background: var(--bg-secondary, #f1f5f9);
  color: var(--text-primary, #334155);
}

.quote-action-btn--secondary:hover {
  background: #e2e8f0;
}

.quote-action-btn--danger {
  background: #dc2626;
  color: #fff;
}

.quote-action-btn--danger:hover {
  background: #b91c1c;
}

.quote-action-btn--primary {
  background: #2563eb;
  color: #fff;
}

.quote-action-btn--primary:hover {
  background: #1d4ed8;
}

.quote-action-btn--success {
  background: #059669;
  color: #fff;
}

.quote-action-btn--success:hover {
  background: #047857;
}

.quote-action-btn--ghost {
  background: transparent;
  color: var(--text-secondary, #64748b);
  border: 1px solid transparent;
}

.quote-action-btn--ghost:hover {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #334155);
}

.quote-action-modal-footer--stack {
  flex-direction: column;
  gap: 0.5rem;
}

.quote-action-modal-footer--stack .quote-action-btn {
  flex: none;
  width: 100%;
}

@media (max-width: 640px) {
  .quote-action-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .quote-action-modal {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }

  .quote-action-modal-footer {
    flex-direction: column-reverse;
  }

  .quote-action-modal-footer--stack {
    flex-direction: column;
  }
}
