.menu-help-workflow {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #f1c4d6;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8fb 0%, #fff 100%);
}

.menu-help-workflow-heading {
  display: flex;
  align-items: center !important;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.menu-help-workflow-heading > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c5165b;
}

.menu-help-workflow-current { color: #667085; font-size: 11px; font-weight: 400; }
.menu-help-workflow-track { display: flex; align-items: stretch; width: 100%; }

.menu-help-workflow-stage {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 7px;
  border: 1px solid #e7eaf0;
  border-radius: 9px;
  background: #fff;
  color: #475467;
  text-align: center;
}

.menu-help-workflow-number {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fce8f0;
  color: #c5165b;
  font-size: 12px;
  font-weight: 800;
}

.menu-help-workflow-label { font-size: 11px; font-weight: 650; line-height: 1.35; }

.menu-help-workflow-arrow {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  color: #d7a0b6;
  font-size: 10px;
}

.menu-help-workflow-stage.is-complete { border-color: #b7e4d0; background: #f2fbf7; color: #18794e; }
.menu-help-workflow-stage.is-complete .menu-help-workflow-number { background: #d8f3e7; color: #18794e; }
.menu-help-workflow-stage.is-active { border-color: #e61e6e; background: #fff0f6; color: #a81350; box-shadow: 0 5px 14px rgba(230, 30, 110, .13); }
.menu-help-workflow-stage.is-active .menu-help-workflow-number { background: #e61e6e; color: #fff; }
.menu-help-workflow-stage.is-upcoming { opacity: .68; }

.menu-help-content > p:first-child { margin-bottom: 18px; color: #475467; font-size: 13.5px; line-height: 1.55; }
.menu-help-content p { color: #475467; font-size: 13px; line-height: 1.55; }
.menu-help-content b,
.menu-help-content strong { color: #344054; font-weight: 700; }
.menu-help-content ol { margin-left: 0; padding: 0 !important; list-style: none; counter-reset: help-step; }

.menu-help-content ol li {
  position: relative;
  min-height: 34px;
  margin-bottom: 8px !important;
  padding: 8px 10px 8px 42px;
  border-left: 2px solid #f3bfd4;
  border-radius: 0 8px 8px 0;
  background: #fafbfc;
  counter-increment: help-step;
}

.menu-help-content ol li::before {
  position: absolute;
  top: 7px;
  left: 9px;
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e61e6e;
  color: #fff;
  content: counter(help-step);
  font-size: 10px;
  font-weight: 800;
}

/*
 * Global Tips button
 *
 * `#btnHint` is used by both modal and inline help throughout Kasair. Keep the
 * visual language here so feature pages do not need to define their own Tips
 * button treatment.
 */
.kasair-page-title-row {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex: 0 1 auto !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
}

.kasair-page-title-row > :first-child {
  min-width: 0;
  width: auto !important;
  max-width: calc(100% - 90px);
  flex: 0 1 auto !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}

.kasair-page-title-row > .kasair-page-title::after {
  display: none !important;
  content: none !important;
}

.kasair-page-title-row[data-helper]::after {
  display: block;
  flex: 1 0 100%;
  order: 3;
  max-width: 720px;
  margin-top: -5px;
  color: #69758a;
  content: attr(data-helper);
  font-family: "Satoshi-Regular", "Satoshi-Variable", sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

#btnHint.kasair-tips-button,
[data-target="#modalHint"].kasair-tips-button {
  position: relative;
  display: inline-flex !important;
  min-width: auto !important;
  min-height: 40px !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 14px 0 8px !important;
  overflow: hidden;
  border: 1px solid #f0b8cf !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #fff 0%, #fff3f8 100%) !important;
  box-shadow: 0 3px 10px rgba(166, 24, 83, .08) !important;
  color: #a81350 !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease,
    box-shadow 160ms ease, color 160ms ease !important;
}

.kasair-page-title-row > #btnHint.kasair-tips-button {
  align-self: center !important;
  margin: 0 !important;
}

#btnHint.kasair-tips-button .kasair-tips-button__icon,
[data-target="#modalHint"].kasair-tips-button .kasair-tips-button__icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f24b91 0%, #c5165b 100%);
  box-shadow: 0 3px 8px rgba(197, 22, 91, .22);
  color: #fff;
  font-size: 12px;
}

#btnHint.kasair-tips-button .kasair-tips-button__label,
[data-target="#modalHint"].kasair-tips-button .kasair-tips-button__label {
  display: inline-block !important;
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
}

#btnHint.kasair-tips-button:hover,
[data-target="#modalHint"].kasair-tips-button:hover {
  border-color: #e61e6e !important;
  background: linear-gradient(135deg, #fff8fb 0%, #ffe8f2 100%) !important;
  box-shadow: 0 6px 16px rgba(166, 24, 83, .16) !important;
  color: #8e0f43 !important;
  transform: translateY(-1px);
}

#btnHint.kasair-tips-button:focus,
#btnHint.kasair-tips-button.focus,
[data-target="#modalHint"].kasair-tips-button:focus,
[data-target="#modalHint"].kasair-tips-button.focus {
  border-color: #e61e6e !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(230, 30, 110, .18), 0 5px 14px rgba(166, 24, 83, .12) !important;
}

#btnHint.kasair-tips-button:active,
#btnHint.kasair-tips-button.is-active,
#btnHint.kasair-tips-button[aria-expanded="true"],
[data-target="#modalHint"].kasair-tips-button:active,
[data-target="#modalHint"].kasair-tips-button.is-active {
  border-color: #c5165b !important;
  background: #fce8f0 !important;
  box-shadow: 0 2px 6px rgba(166, 24, 83, .12) !important;
  color: #8e0f43 !important;
  transform: translateY(0);
}

#btnHint.kasair-tips-button:disabled,
#btnHint.kasair-tips-button.disabled,
[data-target="#modalHint"].kasair-tips-button:disabled,
[data-target="#modalHint"].kasair-tips-button.disabled {
  opacity: .52;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none;
}

#btnHint.kasair-tips-button.menu-help-floating-trigger,
[data-target="#modalHint"].kasair-tips-button.menu-help-floating-trigger {
  position: fixed !important;
  right: 24px !important;
  right: max(24px, env(safe-area-inset-right)) !important;
  bottom: 24px !important;
  bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  z-index: 1025;
  width: auto !important;
  margin: 0 !important;
  box-shadow: 0 10px 28px rgba(52, 64, 84, .18) !important;
}

@media (max-width: 767.98px) {
  .menu-help-workflow-heading { align-items: flex-start; flex-direction: column; }
  .menu-help-workflow-track { flex-direction: column; }
  .menu-help-workflow-stage { width: 100%; flex: none; flex-direction: row; justify-content: flex-start; text-align: left; }
  .menu-help-workflow-arrow { width: 100%; height: 22px; flex: 0 0 22px; transform: rotate(90deg); }
  #btnHint.kasair-tips-button.menu-help-floating-trigger,
  [data-target="#modalHint"].kasair-tips-button.menu-help-floating-trigger {
    right: 16px !important;
    right: max(16px, env(safe-area-inset-right)) !important;
    bottom: 80px !important;
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
  }
  #btnHint.kasair-tips-button.menu-help-floating-trigger .kasair-tips-button__label,
  [data-target="#modalHint"].kasair-tips-button.menu-help-floating-trigger .kasair-tips-button__label { display: none !important; }
}

@media (max-width: 575.98px) {
  .kasair-page-title-row { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #btnHint.kasair-tips-button,
  [data-target="#modalHint"].kasair-tips-button {
    transition: none !important;
  }
}
