.styled-back-wrapper {
  width: 76px;
  height: 76px;
}

.styled-back-wrapper.global-back {
  margin-bottom: 18px;
}

.styled-back-button {
  position: relative;
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #263b35;
  cursor: pointer;
  text-decoration: none;
}

.styled-back-button::before,
.styled-back-button::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
}

.styled-back-button::before {
  border: 3px solid currentColor;
  background: rgba(255, 255, 255, 0); 
  box-shadow: 0 7px 20px rgba(17, 39, 33, .12);
  transition: opacity .4s cubic-bezier(.77, 0, .175, 1) 80ms,
              transform .5s cubic-bezier(.455, .03, .515, .955) 80ms;
}

.styled-back-button::after {
  border: 4px solid #599a53;
  background: rgba(255, 255, 255, 0);
  opacity: 0;
  transform: scale(1.3);
  transition: opacity .4s cubic-bezier(.165, .84, .44, 1),
              transform .5s cubic-bezier(.25, .46, .45, .94);
}

.styled-back-button:hover::before,
.styled-back-button:focus-visible::before {
  opacity: 0;
  transform: scale(.7);
}

.styled-back-button:hover::after,
.styled-back-button:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.styled-back-button:focus-visible {
  outline: 3px solid rgba(89, 154, 83, .35);
  outline-offset: 2px;
}

.styled-back-box {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: flex;
  transition: transform .4s ease;
}

.styled-back-elem {
  display: grid;
  flex: 0 0 69px;
  place-items: center;
  width: 69px;
  height: 76px;
}

.styled-back-elem svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.styled-back-button:hover .styled-back-box,
.styled-back-button:focus-visible .styled-back-box {
  transform: translateX(-69px);
}

@media (max-width: 640px) {
  .styled-back-wrapper,
  .styled-back-button {
    width: 64px;
    height: 64px;
  }

  .styled-back-wrapper.global-back {
    margin-bottom: 12px;
  }

  .styled-back-elem {
    flex-basis: 57px;
    width: 57px;
    height: 64px;
  }

  .styled-back-elem svg {
    width: 26px;
    height: 26px;
  }

  .styled-back-button:hover .styled-back-box,
  .styled-back-button:focus-visible .styled-back-box {
    transform: translateX(-57px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .styled-back-button::before,
  .styled-back-button::after,
  .styled-back-box {
    transition: none;
  }
}
