.rrrn-resource-action--has-help .rrrn-resource-action__eyebrow {
  padding-right: 42px;
}

.rrrn-resource-help-wrap {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: 17px;
  margin: 0 !important;
}

.rrrn-resource-action > .rrrn-resource-help-wrap {
  margin-bottom: 0;
}

.rrrn-resource-help {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(127, 48, 40, 0.28);
  border-radius: 50%;
  background: #fffaf3;
  color: var(--rrrn-red-dark);
  box-shadow: 0 5px 14px rgba(23, 21, 20, 0.08);
  font-size: 0;
  line-height: 1;
  place-items: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.rrrn-resource-help::before {
  font-family: dashicons;
  font-size: 21px;
  line-height: 1;
  content: "\f223";
}

.rrrn-resource-help:hover {
  border-color: var(--rrrn-red-dark);
  background: var(--rrrn-red-dark);
  color: var(--rrrn-white);
  transform: translateY(-1px);
}

.rrrn-resource-help:focus-visible {
  outline: 3px solid var(--rrrn-gold);
  outline-offset: 3px;
}

.rrrn-resource-help-modal[hidden] {
  display: none;
}

.rrrn-resource-help-modal {
  position: fixed;
  z-index: 100010;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
}

.rrrn-resource-help-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 51, 0.74);
  backdrop-filter: blur(5px);
}

.rrrn-resource-help-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(127, 48, 40, 0.18);
  border-top: 6px solid var(--rrrn-red);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 28px 80px rgba(7, 26, 51, 0.28);
}

.rrrn-resource-help-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(7, 26, 51, 0.14);
  border-radius: 50%;
  background: var(--rrrn-white);
  color: var(--rrrn-lava);
  cursor: pointer;
  place-items: center;
}

.rrrn-resource-help-modal__close:hover {
  background: var(--rrrn-lava);
  color: var(--rrrn-white);
}

.rrrn-resource-help-modal__close:focus-visible,
.rrrn-resource-help-modal__action:focus-visible {
  outline: 3px solid var(--rrrn-gold);
  outline-offset: 3px;
}

.rrrn-resource-help-modal__close .dashicons {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

.rrrn-resource-help-modal__kicker {
  margin: 0 54px 10px 0;
  color: var(--rrrn-red-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rrrn-resource-help-modal h2 {
  margin: 0;
  color: var(--rrrn-green);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.04;
}

.rrrn-resource-help-modal__intro {
  margin: 16px 0 0;
  color: var(--rrrn-muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.rrrn-resource-help-modal__steps {
  display: grid;
  gap: 13px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rrrn-help-step;
}

.rrrn-resource-help-modal__steps li {
  position: relative;
  min-height: 34px;
  padding-left: 48px;
  color: var(--rrrn-text);
  line-height: 1.5;
  counter-increment: rrrn-help-step;
}

.rrrn-resource-help-modal__steps li::before {
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(214, 168, 79, 0.2);
  color: var(--rrrn-red-dark);
  content: counter(rrrn-help-step);
  font-weight: 900;
  place-items: center;
}

.rrrn-resource-help-modal__notice {
  margin: 24px 0 0;
  padding: 15px 17px;
  border-left: 4px solid var(--rrrn-gold);
  background: #f7f2e9;
  color: var(--rrrn-muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.rrrn-resource-help-modal__action {
  display: inline-flex;
  min-height: 46px;
  margin-top: 24px;
  padding: 0.75rem 1.05rem;
  align-items: center;
  border-radius: 7px;
  background: var(--rrrn-red-dark);
  color: var(--rrrn-white);
  font-weight: 850;
  text-decoration: none;
}

.rrrn-resource-help-modal__action:hover {
  background: var(--rrrn-green);
  color: var(--rrrn-white);
}

html.rrrn-resource-help-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .rrrn-resource-help-modal {
    align-items: end;
    padding: 12px;
  }

  .rrrn-resource-help-modal__dialog {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: 30px 22px 24px;
    border-radius: 16px;
  }

  .rrrn-resource-help-modal h2 {
    font-size: 2rem;
  }

  .rrrn-resource-help-modal__action {
    width: 100%;
    justify-content: center;
  }
}
