/* Page feedback widget (injected via feedback.js). Scoped under
   .doc-feedback only so it cannot affect any Material layout. */

.md-typeset .doc-feedback {
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.md-typeset .doc-feedback__widget {
  background: #fafbfd;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
}

.md-typeset .doc-feedback__prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.md-typeset .doc-feedback__question {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.md-typeset .doc-feedback__buttons {
  display: inline-flex;
  gap: 8px;
}
.md-typeset .doc-feedback__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.md-typeset .doc-feedback__btn:hover {
  border-color: #7f77dd;
  color: #534AB7;
  background: #f5f3ff;
}
.md-typeset .doc-feedback__btn.is-selected {
  border-color: #7f77dd;
  background: #EEEDFE;
  color: #3C3489;
}
.md-typeset .doc-feedback__btn svg { display: block; }

.md-typeset .doc-feedback__form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e5e7eb;
}
.md-typeset .doc-feedback__form[hidden] { display: none; }

.md-typeset .doc-feedback__form-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.md-typeset .doc-feedback__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.md-typeset .doc-feedback__chip {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.md-typeset .doc-feedback__chip:hover {
  border-color: #7f77dd;
  color: #534AB7;
}
.md-typeset .doc-feedback__chip.is-active {
  border-color: #7f77dd;
  background: #EEEDFE;
  color: #3C3489;
}

.md-typeset .doc-feedback__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 6px;
}
.md-typeset .doc-feedback__text {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  resize: vertical;
  box-sizing: border-box;
}
.md-typeset .doc-feedback__text:focus {
  outline: none;
  border-color: #7f77dd;
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.18);
}

.md-typeset .doc-feedback__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.md-typeset .doc-feedback__cancel,
.md-typeset .doc-feedback__submit {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.md-typeset .doc-feedback__cancel {
  color: #6b7280;
  background: transparent;
  border-color: #d1d5db;
}
.md-typeset .doc-feedback__cancel:hover {
  background: #f3f4f6;
  color: #374151;
}
.md-typeset .doc-feedback__submit {
  color: #ffffff;
  background: #534AB7;
  border-color: #534AB7;
}
.md-typeset .doc-feedback__submit:hover {
  background: #3C3489;
  border-color: #3C3489;
}

.md-typeset .doc-feedback__thanks {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  color: #14532d;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
}
.md-typeset .doc-feedback__thanks[hidden] { display: none; }
