.pathway-match-sticky-bar {
  --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.65rem 0.75rem 0.65rem 1.15rem;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(31, 35, 56, 0.23), 0 2px 7px rgba(31, 35, 56, 0.16);
  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-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;
}

.pathway-match-sticky-dismiss:focus-visible {
  outline: 2px solid #176d57;
  outline-offset: 3px;
}

.rpk-sticky-content {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.rpk-sticky-copy { display: grid; gap: 0.15rem; line-height: 1.3; }
:is(.rpk-sticky-label, .rpk-sticky-owned-title) { color: #224936; font-size: 1.125rem; font-weight: 700; }
.rpk-sticky-description { color: #425c50; font-size: 0.875rem; }
.rpk-sticky-owned-title { display: none; }
.rpk-sticky-content .pathway-start-button { flex-shrink: 0; }

@media (width > 760px) {
  .rpk-sticky-content:has(.pathway-continue-link) .rpk-sticky-copy { display: none; }
  .rpk-sticky-content:has(.pathway-continue-link) .rpk-sticky-owned-title { display: block; }
}

@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;
  }

  .rpk-sticky-copy { display: none; }
  .rpk-sticky-content .pathway-start-button { width: 100%; padding-inline: 0.55rem; }
  .pathway-match-sticky-dismiss { width: 2.75rem; height: 2.75rem; }
}

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

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