/* Optical treatment is deliberately limited to the two header navigation links. */
:is(.collection-page, .social-readonly) .catalog-return-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 13px;
  min-height: 40px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #21465e;
  border: 1px solid #b7cbd7;
  background: linear-gradient(145deg, #ffffffea, #eaf4f94a 56%, #dbeef55c);
  box-shadow:
    inset 0 2px 1px #fff,
    inset 1px 0 2px #fff,
    inset 0 -2px 2px #759bb52b,
    0 3px 5px -4px #21465e55;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
  touch-action: manipulation;
}
.catalog-return-link::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 3px 5px 48%;
  border-top: 1px solid #fff;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffffffc4, #ffffff00);
}
:is(.collection-page, .social-readonly) .catalog-return-link:focus-visible {
  outline: 3px solid #467c9d;
  outline-offset: 3px;
}
@media (hover: hover) {
  :is(.collection-page, .social-readonly) .catalog-return-link:hover {
    border-color: #7da9c5;
    box-shadow:
      inset 0 2px 1px #fff,
      inset 0 -2px 2px #759bb54f,
      0 5px 9px -5px #21465e55;
  }
}
.catalog-return-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.catalog-return-link span {
  white-space: nowrap;
}
@media (max-width: 640px) {
  :is(.collection-page, .social-readonly) .catalog-return-link {
    font-size: 12px;
    min-height: 44px;
    padding: 10px 8px;
    gap: 6px;
  }
  .catalog-return-link svg {
    width: 19px;
    height: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.collection-page, .social-readonly) .catalog-return-link {
    transition: none;
  }
}
