/* Button */
@keyframes aab-button-ripple {
  70% {
    box-shadow: 0 0 0 15px currentColor;
    opacity: 0.25;
  }
  100% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0;
  }
}

@keyframes aab-spinner {
  to {
    transform: rotateZ(360deg);
  }
}

.aab-popup-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  color: #fff;
  gap: 10px;
  line-height: 1;
  height: 60px;
  width: 60px;
  border-radius: 100%;
  border: 0;
  text-align: center;
  transition: all 0.3s;
  z-index: 1;
  cursor: pointer;
}

.aab-popup-btn .spinner-image {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  animation: aab-spinner 4s infinite linear;
}

.aab-popup-btn.ripple::after,
.aab-popup-btn.ripple::before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: dodgerblue;
  border-radius: 100%;
  box-shadow: 0 0 0 0 currentColor;
  animation: aab-button-ripple 3s infinite ease-out;
  opacity: 0.6;
  z-index: -1;
}

.aab-popup-btn.ripple::before {
  animation-delay: 0.9s;
}

.aab-popup-btn.ripple::after {
  animation-delay: 0.3s;
}

.aab-popup-btn svg {
  width: 1em;
  height: 1em;
}

/* Popup Overlay */
.aab-popup-video-wrapper {
  position: fixed;
  left: -1px;
  top: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(11, 11, 11, 0.9);
  transform: scaleY(0) translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transform-origin: center;
  z-index: 9999;
}

.aab-popup-video {
  position: relative;
  transform: scaleY(0);
  opacity: 0;
  visibility: hidden;
  max-width: 900px;
  width: 100%;
  height: 520px;
}

.aab-popup-content-container {
  height: 100%;
  width: 100%;
}

.aab-popup-video iframe {
  height: 100%;
  width: 100%;
  border: 1px solid #222;
  border-radius: 3px;
}

.aab-popup-close {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  opacity: 0.7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.aab-popup-close:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 767px) {
  .aab-popup-video {
    max-width: 90%;
    height: 300px;
  }

  .aab-popup-close {
    right: 0;
    top: -50px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .aab-popup-video {
    max-width: 80%;
    height: 480px;
  }

  .aab-popup-close {
    right: 0;
    top: -50px;
  }
}
