:root {
  --help-green: #10b981;
  --help-green-dark: #078b62;
  --help-ink: #142019;
  --help-muted: #66756d;
  --help-line: #e2eae5;
  --help-soft: #f3faf6;
}

.commerce-help-trigger {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147482000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(16, 185, 129, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #087554;
  box-shadow: 0 12px 34px rgba(18, 38, 28, .16);
  backdrop-filter: blur(12px);
  font: 650 14px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.commerce-help-trigger:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(18, 82, 54, .2); }
.commerce-help-trigger svg { width: 18px; height: 18px; }

.commerce-brand-version-anchor {
  position: relative !important;
  width: fit-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.commerce-brand-version {
  position: absolute;
  left: calc(100% + 6px);
  bottom: 1px;
  display: inline-block;
  color: #669472;
  font: 650 9px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .015em;
  white-space: nowrap;
  opacity: .82;
  pointer-events: none;
}

.commerce-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 17, 13, .58);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.commerce-help-backdrop.is-open { opacity: 1; visibility: visible; }

.commerce-help-dialog {
  width: min(1080px, 100%);
  height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  background: #fff;
  color: var(--help-ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .3);
  transform: translateY(16px) scale(.988);
  transition: transform .22s ease;
}

.commerce-help-backdrop.is-open .commerce-help-dialog { transform: translateY(0) scale(1); }

.commerce-help-header {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 12px 76px 12px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 84% -30%, rgba(255, 255, 255, .24), transparent 40%),
    linear-gradient(128deg, #087957 0%, #12b981 60%, #60d4a4 100%);
}

.commerce-help-eyebrow { margin: 0 0 3px; font-size: 10px; font-weight: 800; letter-spacing: .12em; opacity: .78; }
.commerce-help-header h2 { margin: 0; color: inherit; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.08; }
.commerce-help-progress { flex: 0 0 auto; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 11px; font-weight: 700; }

.commerce-help-close {
  position: absolute;
  top: 13px;
  right: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  font-size: 21px;
  cursor: pointer;
}

.commerce-help-layout { min-height: 0; flex: 1 1 auto; display: grid; grid-template-columns: 248px minmax(0, 1fr); }

.commerce-help-nav {
  min-height: 0;
  overflow-y: auto;
  padding: 20px 14px;
  border-right: 1px solid var(--help-line);
  background: #f8fbf9;
}

.commerce-help-nav-label { margin: 0 10px 10px; color: #8a9891; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.commerce-help-nav-list { display: grid; gap: 6px; }

.commerce-help-nav-button {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #526159;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.commerce-help-nav-button:hover { background: #edf6f1; }
.commerce-help-nav-button.is-active { border-color: #c8eddd; color: #087755; background: #e9f9f2; box-shadow: 0 5px 16px rgba(15, 117, 82, .08); }
.commerce-help-nav-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #e7eeea; font-size: 11px; font-weight: 800; }
.commerce-help-nav-button.is-active .commerce-help-nav-number { color: #fff; background: var(--help-green); }
.commerce-help-nav-title { display: block; font-size: 13px; font-weight: 750; }
.commerce-help-nav-subtitle { display: block; margin-top: 3px; color: #8a9790; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.commerce-help-main { min-height: 0; overflow-y: auto; scroll-behavior: smooth; }
.commerce-help-article { max-width: 780px; margin: 0 auto; padding: 30px 34px 34px; }
.commerce-help-kicker { margin: 0 0 7px; color: #0b8d65; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.commerce-help-article h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.25; }
.commerce-help-lead { margin: 0 0 24px; color: var(--help-muted); font-size: 14px; line-height: 1.75; }

.commerce-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 24px; }
.commerce-help-card { padding: 17px 18px; border: 1px solid var(--help-line); border-radius: 16px; background: linear-gradient(180deg, #fff, #fbfdfc); }
.commerce-help-card.is-accent { border-color: #bcebd8; background: var(--help-soft); }
.commerce-help-card h4 { margin: 0 0 7px; font-size: 14px; }
.commerce-help-card p { margin: 0; color: var(--help-muted); font-size: 12px; line-height: 1.7; }
.commerce-tutorial-card { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.commerce-tutorial-card:hover { transform: translateY(-2px); border-color: #9fddc3; box-shadow: 0 10px 24px rgba(22, 105, 72, .09); }
.commerce-tutorial-card.is-selected { border-color: #61c99c; background: #effaf5; box-shadow: 0 0 0 3px rgba(16, 185, 129, .09); }
.commerce-tutorial-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.commerce-tutorial-card-top i { flex: 0 0 auto; color: #0a8a62; font-size: 10px; font-style: normal; font-weight: 800; }
.commerce-tutorial-detail { scroll-margin-top: 18px; margin: 4px 0 26px; overflow: hidden; border: 1px solid #cce9dc; border-radius: 18px; background: #fbfefc; }
.commerce-tutorial-detail[hidden] { display: none; }
.commerce-tutorial-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 19px; color: #fff; background: linear-gradient(120deg, #087957, #20b980); }
.commerce-tutorial-detail-head span { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; opacity: .78; }
.commerce-tutorial-detail-head h4 { margin: 0; font-size: 17px; }
.commerce-tutorial-detail-head b { padding: 6px 9px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: 10px; white-space: nowrap; }
.commerce-tutorial-steps { display: grid; gap: 0; margin: 0; padding: 5px 19px 8px; list-style: none; }
.commerce-tutorial-steps li { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid #e4eee8; }
.commerce-tutorial-steps li:last-child { border-bottom: 0; }
.commerce-tutorial-step-number { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #087755; background: #ddf7ec; font-size: 12px; font-weight: 850; }
.commerce-tutorial-steps h5 { margin: 1px 0 6px; color: #183026; font-size: 14px; }
.commerce-tutorial-steps p { margin: 0; color: #607168; font-size: 12px; line-height: 1.75; }
.commerce-tutorial-steps em { display: block; margin-top: 7px; padding: 7px 9px; border-radius: 8px; color: #6c7d74; background: #f1f7f4; font-size: 11px; font-style: normal; line-height: 1.6; }
.commerce-tutorial-shot { margin: 12px 0 0; overflow: hidden; border: 1px solid #dbe9e1; border-radius: 13px; background: #fff; box-shadow: 0 8px 22px rgba(31, 70, 48, .07); }
.commerce-tutorial-shot img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #f7faf8; }
.commerce-tutorial-shot figcaption { padding: 8px 11px; color: #718078; background: #fbfdfc; font-size: 10px; line-height: 1.5; }
.commerce-tutorial-pending { padding: 24px; text-align: center; }
.commerce-tutorial-pending b { display: block; margin-bottom: 7px; color: #147651; font-size: 16px; }
.commerce-tutorial-pending p { margin: 0; color: #718078; font-size: 12px; }

.commerce-help-list { display: grid; gap: 10px; margin: 18px 0 24px; padding: 0; list-style: none; }
.commerce-help-list li { position: relative; padding: 13px 15px 13px 46px; border: 1px solid var(--help-line); border-radius: 14px; color: #526159; font-size: 13px; line-height: 1.65; }
.commerce-help-list li > b:first-child { position: absolute; top: 12px; left: 13px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: #087755; background: #ddf7ec; font-size: 11px; }

.commerce-help-flow { display: grid; gap: 8px; margin: 18px 0 24px; }
.commerce-help-flow-row { display: grid; grid-template-columns: 120px 22px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #f7faf8; }
.commerce-help-flow-row strong { font-size: 13px; }
.commerce-help-flow-arrow { color: var(--help-green); font-weight: 900; }
.commerce-help-flow-row span:last-child { color: var(--help-muted); font-size: 12px; line-height: 1.55; }

.commerce-help-callout { margin: 20px 0; padding: 16px 18px; border-left: 4px solid var(--help-green); border-radius: 4px 14px 14px 4px; color: #496158; background: #effaf5; font-size: 13px; line-height: 1.7; }
.commerce-help-version-panel { margin: 22px 0 24px; padding: 19px; border: 1px solid #bcebd8; border-radius: 17px; background: linear-gradient(135deg, #effbf6, #fbfefd); }
.commerce-help-version-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.commerce-help-version-head span { color: #708078; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.commerce-help-version-head strong { color: #087755; font-size: 19px; }
.commerce-help-version-panel h4 { margin: 0 0 8px; font-size: 14px; }
.commerce-help-version-panel p { margin: 0; color: var(--help-muted); font-size: 12px; line-height: 1.75; }
.commerce-help-version-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.commerce-help-version-point { padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, .86); }
.commerce-help-version-point b { display: block; margin-bottom: 4px; color: #0b7f5b; font-size: 13px; }
.commerce-help-version-point span { color: #718078; font-size: 11px; line-height: 1.5; }
.commerce-help-inline-title { margin: 26px 0 10px; font-size: 16px; }
.commerce-help-bullets { margin: 0 0 22px; padding-left: 20px; color: var(--help-muted); font-size: 13px; line-height: 1.85; }

.commerce-help-action { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border: 0; border-radius: 12px; color: #fff; background: var(--help-green); font-weight: 750; cursor: pointer; }
.commerce-help-action:hover { background: var(--help-green-dark); }
.commerce-help-status { min-height: 18px; margin: 10px 0 0; color: #c16f18; font-size: 12px; }

.commerce-credit-title { margin: 28px 0 14px; color: #15261d; font-size: 18px; }
.commerce-credit-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.commerce-credit-package { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 17px 15px 15px; border: 1px solid #dbe7df; border-radius: 17px; background: linear-gradient(180deg, #fff, #fbfdfc); box-shadow: 0 10px 26px rgba(31, 70, 48, .055); }
.commerce-credit-package.is-recommended { border-color: #b9dc00; box-shadow: 0 13px 30px rgba(145, 183, 0, .1); }
.commerce-credit-package header h5 { margin: 0 0 4px; color: #182a21; font-size: 17px; }
.commerce-credit-package header p { margin: 0; color: #8a9b91; font-size: 11px; }
.commerce-credit-badge { position: absolute; top: 13px; right: 13px; padding: 5px 8px; border-radius: 999px; color: #5f7d12; background: #edf6b8; font-size: 10px; font-weight: 800; }
.commerce-credit-price { display: flex; align-items: baseline; gap: 3px; margin: 18px 0 13px; color: #162920; }
.commerce-credit-price span { font-size: 14px; font-weight: 800; }
.commerce-credit-price strong { font-size: 33px; line-height: 1; letter-spacing: -.04em; }
.commerce-credit-points { display: flex; align-items: baseline; gap: 6px; padding-bottom: 15px; border-bottom: 1px solid #e4ebe7; }
.commerce-credit-points strong { color: #25754a; font-size: 20px; }
.commerce-credit-points span { color: #8a9890; font-size: 10px; }
.commerce-credit-estimate { display: grid; gap: 4px; margin-top: 13px; padding: 10px; border: 1px solid #dce9e1; border-radius: 11px; color: #34734f; background: #f3f8f5; }
.commerce-credit-estimate b { font-size: 10px; line-height: 1.45; }
.commerce-credit-rate { margin: 12px 0; color: #84948b; font-size: 10px; }
.commerce-credit-contact { margin-top: auto; padding: 10px 8px; border-radius: 10px; color: #fff; background: linear-gradient(90deg, #5baa19, #2e9143); text-align: center; font-size: 11px; font-weight: 800; }
.commerce-credit-package.is-recommended .commerce-credit-contact { color: #19310e; background: linear-gradient(90deg, #d6f000, #bae719); }

.commerce-help-trigger:focus-visible,
.commerce-help-close:focus-visible,
.commerce-help-nav-button:focus-visible,
.commerce-help-action:focus-visible,
.commerce-tutorial-card:focus-visible { outline: 3px solid rgba(16, 185, 129, .24); outline-offset: 2px; }

body.commerce-help-open { overflow: hidden; }

@media (max-width: 760px) {
  .commerce-help-backdrop { padding: 0; align-items: end; }
  .commerce-help-dialog { width: 100%; height: 94vh; border-radius: 22px 22px 0 0; }
  .commerce-help-header { min-height: 72px; padding: 11px 56px 11px 18px; }
  .commerce-help-progress { display: none; }
  .commerce-help-close { top: 12px; right: 14px; }
  .commerce-help-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .commerce-help-nav { overflow-x: auto; overflow-y: hidden; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--help-line); }
  .commerce-help-nav-label { display: none; }
  .commerce-help-nav-list { display: flex; width: max-content; gap: 7px; }
  .commerce-help-nav-button { width: auto; grid-template-columns: 26px auto; padding: 7px 10px; }
  .commerce-help-nav-number { width: 25px; height: 25px; }
  .commerce-help-nav-subtitle { display: none; }
  .commerce-help-article { padding: 24px 18px 30px; }
  .commerce-help-article h3 { font-size: 22px; }
  .commerce-help-grid { grid-template-columns: 1fr; }
  .commerce-help-version-points { grid-template-columns: 1fr; }
  .commerce-credit-packages { grid-template-columns: 1fr; }
  .commerce-tutorial-detail-head { padding: 15px; }
  .commerce-tutorial-steps { padding: 4px 15px 7px; }
  .commerce-tutorial-steps li { grid-template-columns: 27px minmax(0, 1fr); gap: 9px; }
  .commerce-tutorial-shot { margin-top: 10px; border-radius: 10px; }
  .commerce-help-flow-row { grid-template-columns: 92px 16px minmax(0, 1fr); }
  .commerce-help-trigger { right: 14px; bottom: 14px; height: 40px; padding: 0 13px; }
  .commerce-brand-version { left: calc(100% + 4px); bottom: 0; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .commerce-help-trigger, .commerce-help-backdrop, .commerce-help-dialog { transition: none; }
}
