:root {
  --feedback-primary: #f6821f;
  --feedback-primary-hover: #e87416;
  --feedback-border: #e5e7eb;
  --feedback-text: #1f2937;
  --feedback-muted: #6b7280;
  --feedback-bg: #ffffff;
}

.askmoli-feedback-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9988;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #ffd8b5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #9a4f12;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.askmoli-feedback-launcher:hover {
  background: #fff8f1;
}

.askmoli-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.askmoli-feedback-card {
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
  border: 1px solid var(--feedback-border);
  border-radius: 18px;
  background: var(--feedback-bg);
  color: var(--feedback-text);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.20);
  padding: 22px;
}

.askmoli-feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.askmoli-feedback-title {
  margin: 0;
  font-size: 1.22rem;
  color: var(--feedback-text);
}

.askmoli-feedback-subtitle {
  margin: 5px 0 0;
  color: var(--feedback-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.askmoli-feedback-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--feedback-border);
  border-radius: 9px;
  background: #fff;
  color: #667085;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.askmoli-feedback-field {
  margin-top: 13px;
}

.askmoli-feedback-field label,
.askmoli-feedback-legend {
  display: block;
  margin-bottom: 6px;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 750;
}

.askmoli-feedback-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.askmoli-feedback-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--feedback-border);
  border-radius: 10px;
  background: #fff;
  color: #4b5563;
  font-size: 0.8rem;
  cursor: pointer;
}

.askmoli-feedback-option:has(input:checked) {
  border-color: #f6821f;
  background: #fff8f1;
  color: #9a4f12;
}

.askmoli-feedback-select,
.askmoli-feedback-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: var(--feedback-text);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.askmoli-feedback-select {
  min-height: 42px;
  padding: 9px 11px;
}

.askmoli-feedback-textarea {
  min-height: 120px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.5;
}

.askmoli-feedback-select:focus,
.askmoli-feedback-textarea:focus {
  border-color: #f6821f;
  box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.12);
}

.askmoli-feedback-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.45;
  cursor: pointer;
}

.askmoli-feedback-check input {
  margin-top: 3px;
}

.askmoli-feedback-note {
  margin-top: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f8fafc;
  color: #667085;
  font-size: 0.75rem;
  line-height: 1.45;
}

.askmoli-feedback-message {
  display: none;
  margin-top: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.askmoli-feedback-message.error {
  display: block;
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #fecaca;
}

.askmoli-feedback-message.success {
  display: block;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.askmoli-feedback-submit {
  width: 100%;
  margin-top: 13px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--feedback-primary);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.askmoli-feedback-submit:hover {
  background: var(--feedback-primary-hover);
}

.askmoli-feedback-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 640px) {
  .askmoli-feedback-launcher {
    right: 10px;
    bottom: 10px;
  }

  .askmoli-feedback-card {
    padding: 18px 15px;
    border-radius: 15px;
  }

  .askmoli-feedback-options {
    grid-template-columns: 1fr;
  }
}
