.product-help-launch {
  position: fixed; z-index: 15; right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom)); min-height: 46px;
  padding: 0 20px; border: 1px solid #252522; border-radius: 999px;
  color: var(--paper); background: var(--ink); font: inherit; font-size: 14px; cursor: pointer;
  box-shadow: 0 4px 14px #19191826;
}
.product-help-dialog {
  position: fixed; inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto;
  margin: 0; width: min(410px, calc(100vw - 40px)); max-height: calc(100dvh - 40px);
  height: 560px; padding: 0; border: 1px solid var(--panel-line); border-radius: 24px;
  color: var(--ink); background: var(--canvas); font: inherit; box-shadow: 0 16px 40px rgba(35,33,24,.12);
}
.product-help-dialog[open] { display: flex; flex-direction: column; }
.product-help-dialog::backdrop { background: #19191830; }
.product-help-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--panel-line);
}
.product-help-header h2 { margin: 0; font: inherit; font-size: 16px; line-height: 24px; font-weight: 600; }
.product-help-close, .product-help-send {
  display: grid; place-items: center; padding: 0;
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--panel-line);
  background: var(--paper); color: var(--ink); font: inherit; cursor: pointer;
}
.product-help-messages { flex: 1; min-height: 0; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.product-help-bubble {
  max-width: 90%; align-self: flex-start; padding: 8px 12px; border-radius: 20px;
  background: var(--warm); font-size: 18px; line-height: 26px; overflow-wrap: anywhere; white-space: pre-wrap;
}
.product-help-bubble.user { align-self: flex-end; background: var(--buyer); color: var(--paper); }
.product-help-bubble a { display: block; width: fit-content; margin-top: 6px; text-decoration: underline; }
.product-help-form {
  display: flex; align-items: center; flex: none; gap: 8px; margin: 10px 12px 12px; padding: 4px 5px 4px 14px;
  background: var(--paper); border: 1px solid var(--panel-line); border-radius: 999px;
}
.product-help-form textarea { min-width: 0; flex: 1; min-height: 44px; padding: 10px 2px; border: 0; background: transparent; resize: none; font: inherit; font-size: 16px; }
.product-help-send { background: var(--ink); color: var(--paper); }
.product-help-send:disabled { background: var(--warm); color: var(--secondary); cursor: default; }
.product-help-error { flex: none; padding: 0 16px; font-size: 14px; }
.product-help-error p { margin: 4px 0; }
.product-help-error a { text-decoration: underline; }
@media (max-width: 560px) {
  .product-help-bubble { font-size: 16px; line-height: 24px; }
  .product-help-dialog { inset: auto 8px max(8px,env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: calc(100dvh - 20px); }
  .product-help-launch { right: max(12px,env(safe-area-inset-right)); bottom: max(12px,env(safe-area-inset-bottom)); }
}
