.btn {
  font-size: 16px;
  padding: 10px 16px;
  text-align: center;
  line-height: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  border: 1px solid #9a9a9a;
  background-color: transparent;
  cursor: pointer;
}
.btn.text-white {
  color: #fff;
}
.white-border-button {
  font-size: 16px;
  padding: 10px 15px;
  min-width: 200px;
  text-align: center;
  line-height: 26px;
  color: #fff;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
  border: 2px solid hsla(0, 0%, 100%, 0.15);
  background-color: transparent;
  cursor: pointer;
}
.white-border-button:hover {
  color: white;
  text-decoration: none;
}
.black-border-button {
  font-size: 16px;
  padding: 12px 15px;
  min-width: 200px;
  text-align: center;
  line-height: 26px;
  color: #000;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transform: translateZ(0);
  border: 1px solid hsl(0deg 0% 0% / 15%);
  background-color: transparent;
  cursor: pointer;
}
.black-border-button:hover {
  color: #000000;
  text-decoration: none;
}
.white-border-button span,
.black-border-button span {
  display: -webkit-box;
}
.white-btn {
  justify-content: space-between;
  background: #fff;
}
.red-button {
  font-size: 16px;
  padding: 10px 20px;
  min-width: 210px;
  text-align: center;
  line-height: 26px;
  color: #fff;
  width: 100%;
  background: #f22e5f;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transform: translateZ(0);
  border: 1px solid hsl(0deg 0% 0% / 15%);
  cursor: pointer;
}
.btn--tertiary-line-top,
.btn--tertiary-line-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.btn--tertiary-line-top:before,
.btn--tertiary-line-top:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  transform: scaleX(0) translateZ(0);
}
.black-border-button .btn--tertiary-line-top:before,
.black-border-button .btn--tertiary-line-top:after,
.black-border-button .btn--tertiary-line-bottom:before,
.black-border-button .btn--tertiary-line-bottom:after {
  background: #000;
}
.btn--tertiary-line-top:before {
  content: "";
  height: 2px;
  width: 100%;
  transform-origin: right;
  transition: transform 0.15s linear 0.7s;
}
.btn--tertiary-line-top:after {
  content: "";
  height: 100%;
  width: 2px;
  transform-origin: top;
  transition: transform 0.1s linear 0.6s;
}
.btn--tertiary:hover .btn--tertiary-line-top:after {
  transition: transform 0.2s linear 0.4s;
  transform: scaleY(1) translateZ(0);
}
.btn--tertiary:hover .btn--tertiary-line-top:before {
  transform: scaleX(1) translateZ(0);
}
.btn--tertiary-line-bottom:after,
.btn--tertiary:hover .btn--tertiary-line-top:before {
  transition: transform 0.4s cubic-bezier(0.895, 0.03, 0.685, 0.22) 0s;
}
.btn--tertiary-line-bottom:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: #fff;
  -webkit-transform-origin: left;
  transform-origin: left;
  -webkit-transform: scaleX(0) translateZ(0);
  transform: scaleX(0) translateZ(0);
  transition: -webkit-transform 0.2s linear 0.4s;
  transition: transform 0.2s linear 0.4s;
  transition: transform 0.2s linear 0.4s, -webkit-transform 0.2s linear 0.4s;
}
.btn--tertiary:hover .btn--tertiary-line-bottom:before {
  transition: -webkit-transform 0.2s linear 0.6s;
  transition: transform 0.2s linear 0.6s;
  transition: transform 0.2s linear 0.6s, -webkit-transform 0.2s linear 0.6s;
  -webkit-transform: scaleX(1) translateZ(0);
  transform: scaleX(1) translateZ(0);
}
.btn--tertiary:hover .btn--tertiary-line-bottom:after {
  transition: -webkit-transform 0.1s linear 0.8s;
  transition: transform 0.1s linear 0.8s;
  transition: transform 0.1s linear 0.8s, -webkit-transform 0.1s linear 0.8s;
  -webkit-transform: scaleY(1) translateZ(0);
  transform: scaleY(1) translateZ(0);
}

.btn--tertiary-line-bottom:after,
.btn--tertiary:hover .btn--tertiary-line-top:before {
  transition: -webkit-transform 0.4s cubic-bezier(0.895, 0.03, 0.685, 0.22) 0s;
  transition: transform 0.4s cubic-bezier(0.895, 0.03, 0.685, 0.22) 0s;
  transition: transform 0.4s cubic-bezier(0.895, 0.03, 0.685, 0.22) 0s,
    -webkit-transform 0.4s cubic-bezier(0.895, 0.03, 0.685, 0.22) 0s;
}
.btn--tertiary-line-bottom:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 2px;
  background: #fff;
  -webkit-transform-origin: bottom;
  transform-origin: bottom;
  -webkit-transform: scaleY(0) translateZ(0);
  transform: scaleY(0) translateZ(0);
}
.btn--tertiary-arrow {
  position: relative;
  display: flex !important;
  margin-left: 20px;
}
.btn--tertiary-arrow-1,
.btn--tertiary-arrow-2 {
  transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1),
    -webkit-transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1),
    -webkit-transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.btn--tertiary-arrow-1 {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  -webkit-transform: translateX(-20px) translateY(0);
  transform: translateX(-20px) translateY(0);
}
.btn--tertiary:hover .btn--tertiary-arrow-1 {
  opacity: 1;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.btn--tertiary:hover .btn--tertiary-arrow-2 {
  opacity: 0;
  -webkit-transform: translateX(20px) translateY(0);
  transform: translateX(20px) translateY(0);
}

.bubbly-button {
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;
}
.bubbly-button:focus {
  outline: 0;
}
.bubbly-button:before,
.bubbly-button:after {
  position: absolute;
  content: "";
  display: block;
  width: 140%;
  height: 100%;
  left: -20%;
  z-index: -1000;
  transition: all ease-in-out 0.5s;
  background-repeat: no-repeat;
}
.bubbly-button:before {
  display: none;
  top: -75%;
  background-image: radial-gradient(circle, #dbe3db 20%, transparent 20%),
    radial-gradient(circle, transparent 20%, #dbe3db 20%, transparent 30%),
    radial-gradient(circle, #dbe3db 20%, transparent 20%),
    radial-gradient(circle, #dbe3db 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #dbe3db 15%, transparent 20%),
    radial-gradient(circle, #dbe3db 20%, transparent 20%),
    radial-gradient(circle, #dbe3db 20%, transparent 20%),
    radial-gradient(circle, #dbe3db 20%, transparent 20%),
    radial-gradient(circle, #dbe3db 20%, transparent 20%);
  background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%,
    10% 10%, 18% 18%;
}
.bubbly-button:after {
  display: none;
  bottom: -75%;
  background-image: radial-gradient(circle, #dbe3db 20%, transparent 20%),
    radial-gradient(circle, #dbe3db 20%, transparent 20%),
    radial-gradient(circle, transparent 10%, #dbe3db 15%, transparent 20%),
    radial-gradient(circle, #dbe3db 20%, transparent 20%),
    radial-gradient(circle, #dbe3db 20%, transparent 20%),
    radial-gradient(circle, #dbe3db 20%, transparent 20%),
    radial-gradient(circle, #dbe3db 20%, transparent 20%);
  background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 10% 10%, 20% 20%;
}
.bubbly-button:active {
  transform: scale(0.9);
  background-color: #dbe3db;
  box-shadow: 0 2px 25px rgba(255, 0, 130, 0.2);
}
.bubbly-button.animate:before {
  display: block;
  animation: topBubbles ease-in-out 0.75s forwards;
}
.bubbly-button.animate:after {
  display: block;
  animation: bottomBubbles ease-in-out 0.75s forwards;
}

@keyframes topBubbles {
  0% {
    background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%,
      40% 90%, 55% 90%, 70% 90%;
  }
  50% {
    background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%,
      50% 50%, 65% 20%, 90% 30%;
  }
  100% {
    background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%,
      50% 40%, 65% 10%, 90% 20%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}
@keyframes bottomBubbles {
  0% {
    background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%,
      70% -10%, 70% 0%;
  }
  50% {
    background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%,
      105% 0%;
  }
  100% {
    background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%,
      110% 10%;
    background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
  }
}
@media screen and (max-width: 991px) {
  .black-border-button,
  .white-border-button {
    padding: 8px 10px;
    min-width: 180px;
    font-size: 14px;
  }
}
@media screen and (max-width: 375px) {
  .black-border-button,
  .white-border-button {
    font-size: 12px;
  }
}
