.pathway-match-sticky-bar {
  --match-green: #176d57;
  --match-green-dark: #105744;
  --match-green-soft: #e8f4ee;
  --match-navy: #10233f;
  --pathway-match-sticky-top: 4.25rem;
  position: fixed;
  top: var(--pathway-match-sticky-top);
  left: 50%;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(68rem, calc(100% - 5.5rem));
  min-height: 3.7rem;
  padding: 0.55rem 0.65rem 0.55rem 0.75rem;
  border: 1px solid rgba(23, 109, 87, 0.5);
  border-left: 5px solid #4f9368;
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 12%, rgba(79, 147, 104, 0.15), transparent 29%),
    linear-gradient(118deg, rgba(246, 251, 248, 0.98) 0%, rgba(255, 255, 255, 0.98) 57%, rgba(240, 247, 244, 0.98) 100%);
  box-shadow: 0 14px 34px rgba(31, 35, 56, 0.16), 0 2px 8px rgba(23, 109, 87, 0.08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -0.5rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.pathway-match-sticky-bar.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.pathway-match-sticky-result {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  margin-right: auto;
}

.pathway-match-sticky-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--match-green-soft);
  color: var(--match-green);
  font-size: 0.9rem;
  font-weight: 800;
}

.pathway-match-sticky-mark svg {
  width: 1.1rem;
  height: 1.1rem;
}

.pathway-match-sticky-copy {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  min-width: 0;
}

.pathway-match-sticky-copy strong {
  flex: 0 0 auto;
  color: var(--match-navy);
  font-size: 0.88rem;
  font-weight: 750;
}

.pathway-match-sticky-pathway {
  overflow: hidden;
  max-width: 24rem;
  color: #647169;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pathway-match-sticky-sales {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
  color: #53685e;
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.pathway-match-sticky-sales-question {
  color: #2d473a;
  font-weight: 750;
}

.pathway-match-sticky-sales-label {
  font-weight: 400;
}

.pathway-match-sticky-mobile-label {
  display: none;
}

.pathway-match-sticky-bar:not(.is-consideration) .pathway-match-sticky-copy {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
}

.pathway-match-sticky-bar:not(.is-consideration) .pathway-match-sticky-sales {
  flex: 0 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.05rem 0.35rem;
  margin-left: 0.5rem;
  padding-right: 0.9rem;
  border-right: 1px solid rgba(23, 109, 87, 0.2);
  text-align: center;
}

/* Blue distinguishes this unassessed invitation from a green match result. */
.pathway-match-sticky-bar.is-consideration {
  --match-green: #426d98;
  --match-green-soft: #eaf1f8;
  border-color: rgba(66, 109, 152, 0.48);
  border-left-color: #6f91b4;
  background:
    radial-gradient(circle at 92% 12%, rgba(111, 145, 180, 0.14), transparent 29%),
    linear-gradient(118deg, rgba(247, 250, 253, 0.98) 0%, rgba(255, 255, 255, 0.98) 57%, rgba(241, 246, 251, 0.98) 100%);
  box-shadow: 0 14px 34px rgba(31, 48, 70, 0.16), 0 2px 8px rgba(66, 109, 152, 0.09);
}

.pathway-match-sticky-bar.is-consideration .pathway-match-sticky-result {
  flex: 1 1 auto;
}

.pathway-match-sticky-bar.is-consideration .pathway-match-sticky-copy {
  flex: 1 1 auto;
}

.pathway-match-sticky-bar.is-consideration .pathway-match-sticky-copy strong {
  flex: 1 1 auto;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.pathway-match-sticky-start {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.45rem;
  padding: 0.38rem 0.9rem 0.38rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: linear-gradient(100deg, #3f8a5f 0%, #16826f 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 130, 111, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, filter 0.15s, transform 0.15s;
}

.pathway-match-sticky-start:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(100deg, #367a55 0%, #117260 100%);
  box-shadow: 0 12px 26px rgba(22, 130, 111, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.pathway-match-sticky-start::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -35%;
  z-index: -1;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg) translateX(-120%);
  transition: transform 0.55s ease;
}

.pathway-match-sticky-start:hover::after {
  transform: skewX(-18deg) translateX(430%);
}

.pathway-match-sticky-action-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.27), rgba(255, 255, 255, 0.09));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pathway-match-sticky-action-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.pathway-match-sticky-start:focus-visible,
.pathway-match-sticky-dismiss:focus-visible {
  outline: 3px solid rgba(23, 109, 87, 0.22);
  outline-offset: 2px;
}

.pathway-match-sticky-dismiss {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #d8ddd9;
  border-radius: 999px;
  background: #f0f2f0;
  color: #68716b;
  cursor: pointer;
}

.pathway-match-sticky-dismiss:hover {
  border-color: #c8ceca;
  background: #e7eae8;
  color: #37413b;
}

.pathway-match-sticky-dismiss svg {
  width: 0.9rem;
  height: 0.9rem;
}

@media (max-width: 760px) {
  .pathway-match-sticky-bar {
    top: auto;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.75rem;
    gap: 0.55rem 0.65rem;
    width: calc(100% - 1.25rem);
    min-height: 0;
    padding: 0.65rem;
  }

  .pathway-match-sticky-result {
    grid-column: 1;
    grid-row: 1;
    margin-right: 0;
  }

  .pathway-match-sticky-sales {
    display: none;
  }

  .pathway-match-sticky-copy {
    display: none;
  }

  .pathway-match-sticky-mobile-label {
    display: block;
    color: var(--match-navy);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .pathway-match-sticky-start {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    filter: none;
    transform: none;
  }

  .pathway-match-sticky-start:hover {
    border: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
    transform: none;
  }

  .pathway-match-sticky-start > *,
  .pathway-match-sticky-start::after {
    display: none;
  }

  .pathway-match-sticky-result {
    position: relative;
    z-index: 1;
    pointer-events: none;
  }

  .pathway-match-sticky-dismiss {
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 1;
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (max-width: 1040px) {
  .pathway-match-sticky-bar:not(.is-consideration) .pathway-match-sticky-sales {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.08rem;
    margin-left: 0.2rem;
    padding-right: 0.65rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 520px) {
  .pathway-match-sticky-bar {
    border-radius: 11px;
  }

  .pathway-match-sticky-result {
    gap: 0.45rem;
  }

  .pathway-match-sticky-mark {
    width: 1.75rem;
    height: 1.75rem;
  }

  .pathway-match-sticky-mobile-label {
    font-size: 0.8rem;
  }

  .pathway-match-sticky-pathway {
    font-size: 0.72rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .pathway-match-sticky-bar,
  .pathway-match-sticky-start,
  .pathway-match-sticky-start::after {
    transition: none;
  }

  .pathway-match-sticky-start:hover {
    transform: none;
  }
}
