body:has(> .project-preview-return) {
  --project-action-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.project-preview-return {
  position: fixed;
  z-index: 40;
  bottom: var(--project-action-bottom);
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  display: inline-flex;
  min-width: 88px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #9166ee;
  border-radius: 10px;
  background: #19152b;
  color: #fff;
  box-shadow: 0 4px 16px #0006;
  font: 600 16px/1.3 system-ui, sans-serif;
  text-decoration: none;
}

.project-preview-return:hover {
  border-color: #40c9ff;
  background: #29213f;
}

.project-preview-return:focus-visible {
  outline: 2px solid #40c9ff;
  outline-offset: 4px;
}

body:has(> .project-preview-return) > .ijanicki-quick-call {
  z-index: 40;
  bottom: var(--project-action-bottom);
}

@media (max-width: 560px) {
  body:has(> .project-preview-return) > .ijanicki-quick-call.is-expanded {
    bottom: calc(var(--project-action-bottom) + 56px);
  }
}

body:has(.page-header.is-menu-open) > :is(.project-preview-return, .ijanicki-quick-call) {
  visibility: hidden;
}
