.input-widget {
  width: 100%;
}

// ── Text / standard ───────────────────────────────────────────────────────

.text-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.text-input {
  flex: 1;
  border: 1px solid #DFE1E6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  resize: none;
  outline: none;
  line-height: 1.5;
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
  font-family: inherit;
  transition: border-color 0.15s;

  &:focus { border-color: #0052CC; }
  &:disabled { background: #F4F5F7; color: #97A0AF; }
}

.send-btn {
  width: 40px;
  height: 40px;
  background: #0052CC;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;

  &:hover:not(:disabled) { background: #0747A6; }
  &:disabled { background: #C1C7D0; cursor: default; }
}

// ── Rating ────────────────────────────────────────────────────────────────

.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rating-label {
  font-size: 13px;
  color: #6B778C;
}

.stars {
  display: flex;
  gap: 4px;
}

.star {
  background: none;
  border: none;
  font-size: 28px;
  color: #DFE1E6;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.1s, transform 0.1s;

  &.filled { color: #FFAB00; }
  &:hover:not(:disabled) { transform: scale(1.15); }
  &:disabled { cursor: default; }
}

// ── Action buttons ────────────────────────────────────────────────────────

.action-row {
  display: flex;
  justify-content: center;
}

.action-btn {
  width: 100%;
  padding: 12px;
  background: #0052CC;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s;

  &:hover:not(:disabled) { background: #0747A6; }
  &:active:not(:disabled) { transform: scale(0.98); }
  &:disabled { background: #C1C7D0; cursor: default; }
}

// ── QR scanner overlay ──────────────────────────────────────────────────────

.qr-scanner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.qr-scanner-panel {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

.qr-scanner-close {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-size: 18px;
  color: #6B778C;
  z-index: 1;
}
