.optionspeek-feedback-modal[hidden] {
  display: none;
}

.optionspeek-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #0f172a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.optionspeek-feedback-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
}

.optionspeek-feedback-dialog {
  position: relative;
  width: min(100%, 448px);
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  padding: 16px;
  text-align: left;
}

.optionspeek-feedback-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.optionspeek-feedback-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.optionspeek-feedback-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.optionspeek-feedback-dialog button {
  font: inherit;
}

.optionspeek-feedback-close {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.optionspeek-feedback-close:hover {
  background: #f1f5f9;
  color: #475569;
}

.optionspeek-feedback-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.optionspeek-feedback-types button {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  padding: 6px 12px;
}

.optionspeek-feedback-types button[aria-pressed="true"] {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
}

.optionspeek-feedback-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  outline: none;
}

.optionspeek-feedback-dialog textarea {
  min-height: 132px;
  resize: vertical;
}

.optionspeek-feedback-dialog textarea:focus {
  border-color: #64748b;
}

.optionspeek-feedback-status {
  margin-top: 12px;
  font-size: 14px;
  color: #0369a1;
}

.optionspeek-feedback-status[data-error="true"] {
  color: #be123c;
}

.optionspeek-feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.optionspeek-feedback-actions span {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
}

.optionspeek-feedback-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.optionspeek-feedback-action-buttons button {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.optionspeek-feedback-action-buttons button[type="submit"] {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.optionspeek-feedback-action-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

@media (max-width: 420px) {
  .optionspeek-feedback-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .optionspeek-feedback-action-buttons {
    justify-content: flex-end;
  }
}
