/* Floating bottom-right Help & Onboarding Assistant (templates/_help_widget.html, static/help.js) */
.pg-wiz .rm-help,
.adm-page .rm-help,
.rm-help.is-dismissed {
  display: none !important;
}

.rm-help {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 950;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #16140F;
}

.rm-help-pill {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  background: #16140F;
  color: #FAF7F2;
  border: 1px solid rgba(250, 247, 242, 0.16);
  box-shadow: 0 10px 26px rgba(22, 20, 15, 0.24), 0 2px 6px rgba(22, 20, 15, 0.14);
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.rm-help-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(22, 20, 15, 0.30);
}

.rm-help-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px 0 13px;
  background: transparent;
  color: #FAF7F2;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.rm-help-fab:hover,
.rm-help-fab:focus-visible {
  background: #29251D;
  outline: none;
}

.rm-help-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 44px;
  padding: 0 10px 0 8px;
  border-left: 1px solid rgba(250, 247, 242, 0.18);
  color: #C7C0B3;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.rm-help-dismiss:hover,
.rm-help-dismiss:focus-visible {
  background: #29251D;
  color: #FAF7F2;
  outline: none;
}

.rm-help-fab__q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FAF7F2;
  color: #16140F;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
}

.rm-help-fab__txt {
  letter-spacing: -0.01em;
}

.rm-help-fab__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: #C84B31;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

.rm-help-drawer {
  position: fixed;
  right: 18px;
  bottom: 74px;
  width: min(390px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  background: #FAF7F2;
  color: #16140F;
  border: 1px solid #D8D1C5;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(22, 20, 15, 0.24), 0 4px 12px rgba(22, 20, 15, 0.10);
  overflow: hidden;
}

.rm-help-drawer[hidden] {
  display: none !important;
}

.rm-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #16140F;
  color: #FAF7F2;
}

.rm-help-head__title {
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: #FAF7F2;
}

.rm-help-head__sub {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #D6CFC2;
}

.rm-help-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -6px -8px -6px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #FAF7F2;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.rm-help-close:hover,
.rm-help-close:focus-visible {
  background: rgba(250, 247, 242, 0.14);
}

.rm-help-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #F1ECE2;
  border-bottom: 1px solid #E2DBD0;
}

.rm-help-tab {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #5C574F;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.rm-help-tab.is-active {
  color: #16140F;
  background: #FAF7F2;
  border-bottom-color: #16140F;
}

.rm-help-pane {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.rm-help-pane[hidden] {
  display: none !important;
}

.rm-help-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rm-help-status {
  padding: 12px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2DBD0;
  font-size: 13px;
  line-height: 1.45;
}

.rm-help-status__head {
  margin: 0 0 6px;
  font-weight: 600;
  color: #16140F;
}

.rm-help-status__steps {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rm-help-status__step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #FAF7F2;
  font-size: 12px;
}

.rm-help-status__step a {
  color: #16140F;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.rm-help-msg {
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}

.rm-help-msg--bot {
  background: #FFFFFF;
  border: 1px solid #E5DFD3;
  color: #16140F;
}

.rm-help-msg--user {
  align-self: flex-end;
  background: #16140F;
  color: #FAF7F2;
  max-width: 88%;
}

.rm-help-msg__p {
  margin: 0;
}

.rm-help-msg__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6B655B;
}

.rm-help-msg__list {
  margin: 8px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.45;
}

.rm-help-msg__links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rm-help-msg__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 7px;
  background: #16140F;
  color: #FAF7F2 !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
}

.rm-help-msg__link:hover {
  background: #2C2820;
}

.rm-help-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rm-help-chip {
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #16140F;
  border: 1px solid #D5CEC0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.rm-help-chip:hover,
.rm-help-chip:focus-visible {
  background: #EFEAE0;
  border-color: #16140F;
}

.rm-help-ask {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #F4EFE6;
  border-top: 1px solid #E2DBD0;
}

.rm-help-ask__in {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #CFC7B8;
  background: #FFFFFF;
  color: #16140F;
  font-size: 14px;
}

.rm-help-ask__btn {
  min-width: 60px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: #16140F;
  color: #FAF7F2;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.rm-help-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rm-help-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rm-help-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #16140F;
}

.rm-help-input,
.rm-help-textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #CFC7B8;
  background: #FFFFFF;
  color: #16140F;
  font-family: inherit;
  font-size: 14px;
}

.rm-help-textarea {
  min-height: 96px;
  resize: vertical;
}

.rm-help-feedback {
  margin: 0;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.4;
}

.rm-help-feedback.is-ok {
  background: #E8F3EC;
  color: #1B4D2E;
  border: 1px solid #B7DBC4;
}

.rm-help-feedback.is-err {
  background: #FDF0ED;
  color: #8E2814;
  border: 1px solid #EBC2B9;
}

.rm-help-submit {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  background: #16140F;
  color: #FAF7F2;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 480px) {
  .rm-help {
    right: 12px;
    bottom: 12px;
  }
  .rm-help-drawer {
    right: 12px;
    left: 12px;
    bottom: 66px;
    width: auto;
    max-height: calc(100vh - 82px);
  }
}
