/* "Need help?" / Report a problem widget. Shared by the returns and warranty portals: keep both
   copies identical (see help-widget.js). Light storefront look; inherits the portal's font. */
.phw-root {
  --phw-ink: #171a1d; --phw-surface: #fff; --phw-soft: #f1f3f5; --phw-secondary: #58616b; --phw-muted: #69727c;
  --phw-border: #dee3e7; --phw-strong: #b5bfc8; --phw-focus: #84a9f5;
  --phw-success-bg: #edf7f0; --phw-success-ink: #21663d; --phw-danger-ink: #913a2c; --phw-info-bg: #edf3fc; --phw-info-ink: #275c99;
  font-size: 15px; line-height: 1.5; color: var(--phw-ink);
}
:where(.phw-root) *, :where(.phw-root) *::before, :where(.phw-root) *::after { box-sizing: border-box; }
:where(.phw-root) :where(button, input, textarea) { font: inherit; color: inherit; }
.phw-root :focus-visible { outline: 3px solid var(--phw-focus); outline-offset: 2px; }
:where(.phw-root) [hidden] { display: none !important; }
:where(.phw-root) svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.phw-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + var(--phw-lift, 0px)); z-index: 2147483000;
  display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 999px; background: var(--phw-ink); color: #fff;
  padding: 11px 17px 11px 15px; font-weight: 650; font-size: 14px; cursor: pointer; box-shadow: 0 6px 20px rgba(23, 26, 29, .22);
}
.phw-fab:hover { background: #2b3036; }
.phw-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ccf75; box-shadow: 0 0 0 3px rgba(60, 207, 117, .25); }
.phw-scrim { position: fixed; inset: 0; background: rgba(23, 26, 29, .28); z-index: 2147483001; }
.phw-panel {
  position: fixed; z-index: 2147483002; right: 18px; bottom: 18px; width: 380px; max-width: calc(100vw - 24px); max-height: min(640px, calc(100dvh - 36px));
  background: var(--phw-surface); border-radius: 14px; box-shadow: 0 18px 50px rgba(23, 26, 29, .28); display: flex; flex-direction: column; overflow: hidden;
}
@media (max-width: 600px) {
  .phw-panel { right: 0; left: 0; bottom: 0; width: auto; max-width: none; border-radius: 18px 18px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  html.phw-open, html.phw-open body { overflow: hidden; }
}
.phw-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--phw-border); }
.phw-title { flex: 1; margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phw-icon { border: 0; background: var(--phw-soft); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; flex: none; }
.phw-icon:hover { background: var(--phw-border); }
.phw-back { visibility: hidden; }
.phw-back.on { visibility: visible; }
.phw-body { padding: 16px; overflow-y: auto; display: grid; gap: 14px; align-content: start; overscroll-behavior: contain; }
.phw-body p { margin: 0; }
.phw-lede { color: var(--phw-secondary); font-size: 14px; }
.phw-progress { display: flex; gap: 4px; }
.phw-progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--phw-border); }
.phw-progress i.on { background: var(--phw-ink); }
.phw-choices { display: grid; gap: 8px; }
.phw-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; width: 100%;
  border: 1px solid var(--phw-border); background: var(--phw-surface); border-radius: 10px; padding: 12px 13px; cursor: pointer; min-height: 48px;
}
.phw-choice:hover { border-color: var(--phw-strong); background: var(--phw-soft); }
.phw-choice-text { display: grid; gap: 1px; }
.phw-choice b { font-weight: 600; font-size: 15px; }
.phw-choice small { font-size: 13px; color: var(--phw-muted); }
.phw-chev { color: var(--phw-muted); }
.phw-field { display: grid; gap: 6px; }
.phw-field label { font-size: 13px; font-weight: 650; }
.phw-field input, .phw-field textarea { border: 1px solid var(--phw-strong); border-radius: 9px; padding: 11px 12px; background: var(--phw-surface); width: 100%; font-size: 16px; }
.phw-field textarea { min-height: 104px; resize: vertical; }
.phw-field [aria-invalid="true"] { border-color: var(--phw-danger-ink); }
.phw-upload { border: 1px dashed var(--phw-strong); border-radius: 9px; padding: 11px 12px; font-size: 14px; color: var(--phw-secondary); display: flex; gap: 10px; align-items: center; cursor: pointer; }
.phw-upload:hover { background: var(--phw-soft); }
.phw-upload:focus-within { outline: 3px solid var(--phw-focus); outline-offset: 2px; }
.phw-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.phw-ctx { background: var(--phw-info-bg); color: var(--phw-info-ink); border-radius: 10px; padding: 11px 13px; font-size: 13px; display: grid; gap: 4px; justify-items: start; }
.phw-ctx b { font-weight: 650; }
.phw-ctx ul { margin: 0; padding-left: 18px; overflow-wrap: anywhere; }
.phw-link { background: none; border: 0; padding: 0; font-weight: 650; text-decoration: underline; cursor: pointer; color: inherit; font-size: 13px; }
.phw-err { color: var(--phw-danger-ink); font-size: 13px; }
.phw-foot { padding: 12px 16px 14px; border-top: 1px solid var(--phw-border); display: grid; gap: 8px; }
.phw-btn { border: 0; background: var(--phw-ink); color: #fff; border-radius: 9px; padding: 13px 18px; font-weight: 650; cursor: pointer; width: 100%; font-size: 15px; }
.phw-btn:hover { background: #2b3036; }
.phw-btn:disabled { opacity: .55; cursor: progress; }
.phw-btn.phw-secondary { background: var(--phw-surface); color: var(--phw-ink); border: 1px solid var(--phw-strong); }
.phw-btn.phw-secondary:hover { background: var(--phw-soft); }
.phw-note { margin: 0; text-align: center; font-size: 13px; color: var(--phw-muted); }
.phw-done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 8px 0 4px; }
.phw-done h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.phw-done p { color: var(--phw-secondary); }
.phw-tick { width: 52px; height: 52px; border-radius: 50%; background: var(--phw-success-bg); color: var(--phw-success-ink); display: grid; place-items: center; }
.phw-tick svg { width: 26px; height: 26px; stroke-width: 2.4; }
.phw-ref { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--phw-ink); background: var(--phw-soft); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.phw-ways { margin: 0; font-size: 13px; color: var(--phw-muted); text-align: center; }
.phw-ways a { color: var(--phw-ink); font-weight: 600; text-decoration: underline; }
.phw-faq { display: grid; border: 1px solid var(--phw-border); border-radius: 10px; overflow: hidden; }
.phw-q + .phw-q { border-top: 1px solid var(--phw-border); }
.phw-q-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: var(--phw-surface); padding: 12px 13px; cursor: pointer; font-weight: 600; min-height: 48px; }
.phw-q-btn:hover { background: var(--phw-soft); }
.phw-q-btn .phw-chev { transform: rotate(90deg); transition: transform .15s; }
.phw-q.open .phw-q-btn .phw-chev { transform: rotate(-90deg); }
.phw-a { margin: 0; padding: 0 13px 13px; color: var(--phw-secondary); font-size: 14px; }
.phw-broken { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; width: 100%; border: 1px solid var(--phw-border); background: var(--phw-soft); border-radius: 10px; padding: 12px 13px; cursor: pointer; }
.phw-broken:hover { border-color: var(--phw-strong); }
.phw-broken b { font-weight: 600; font-size: 15px; }
.phw-broken small { font-size: 13px; color: var(--phw-muted); }
/* A portal's error message: "Tell us about this" */
.phw-report-link { background: none; border: 0; padding: 0; margin-top: 4px; font: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; color: inherit; display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .phw-panel { animation: phw-in .18s ease-out; }
  @keyframes phw-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
