.coveo-rga-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-height: 300px;
  overflow: hidden;
}

.expand-collapse-button {
  background: none;
  border: none;
  color: #5b4fcf;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.rga-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rga-icon {
  color: #5b4fcf;
  font-weight: 600;
  font-size: 0.95rem;
}

.rga-content {
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.rga-content p {
  margin: 0 0 0.75rem 0;
}

.rga-citations-section h4 {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.rga-citations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.citation-pill {
  display: inline-block;
  border: 1px solid #c0bce8;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  color: #3d3a6b;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s;
}

.citation-pill:hover {
  background: #f0eeff;
}

.rga-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  border-top: 1px solid #f0f0f0;
  padding-top: 0.75rem;
}

.rga-actions-left {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.action-btn:hover {
  background: #f0eeff;
}

.rga-disclaimer {
  font-size: 0.75rem;
  color: #999;
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

.rotate-180 {
  transform: rotate(180deg);
}

.active-like {
  color: #22c55e;
}

.active-dislike {
  color: #ef4444;
}

.active-copy {
  color: #22c55e;
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-container {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25rem 1.5rem 2rem;
}

.modal-title {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #888;
  cursor: pointer;
  padding: 0;
}

.modal-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 0 1.5rem;
}

.modal-body {
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.modal-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.75rem;
}

.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  gap: 2rem;
}

.modal-row:last-of-type {
  border-bottom: none;
}

.modal-question {
  font-size: 13px;
  color: #1a1a1a;
  flex: 1;
}

.required {
  color: #e53e3e;
}

.modal-options {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.option-btn {
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  padding: 4px 14px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: all 0.15s;
}

.option-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.option-btn--selected {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

.modal-input,
.modal-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1a1a1a;
  outline: none;
  font-family: inherit;
}

.modal-input:focus,
.modal-textarea:focus {
  border-color: #2563eb;
}

.modal-textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.modal-required-note {
  font-size: 12px;
  color: #888;
}

.modal-footer-actions {
  display: flex;
  gap: 8px;
}

.btn-skip {
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  padding: 6px 18px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.btn-skip:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.btn-send {
  border: none;
  border-radius: 8px;
  background: #2563eb;
  padding: 6px 18px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
}

.btn-send:hover {
  background: #1d4ed8;
}