html.vp-popup-open,
body.vp-popup-open {
  overflow: hidden !important;
}

body.vp-popup-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.vp-popup {
  position: fixed !important;
  inset: 0 !important;
  display: block;
  box-sizing: border-box;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
  background: transparent;
  z-index: 200000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .35s;
}

.vp-popup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--vp-popup-overlay, rgba(0, 0, 0, 0.65));
  opacity: 0;
  transition: opacity .18s ease;
}

.vp-popup.vp-popup--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.vp-popup.vp-popup--open::before {
  opacity: 1;
}

.vp-popup__dialog {
  position: fixed !important;
  z-index: 200001;
}

.vp-popup__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
  max-width: min(calc(100dvw - var(--vp-popup-margin-left, 24px) - var(--vp-popup-margin-right, 24px)), 100%);
  max-height: calc(100dvh - var(--vp-popup-margin-top, 24px) - var(--vp-popup-margin-bottom, 24px));
  opacity: 1;
  transform: none;
  transform-origin: center center;
  will-change: transform, opacity;
}

.vp-popup--has-animation .vp-popup__panel {
  opacity: 0;
  transition: transform .34s cubic-bezier(.2,.8,.2,1), opacity .24s ease;
}

.vp-popup--has-animation.vp-popup--animating-in .vp-popup__panel,
.vp-popup--has-animation.vp-popup--open .vp-popup__panel {
  opacity: 1;
}

.vp-popup--has-animation.vp-popup--animating-in .vp-popup__panel {
  transition-delay: .10s;
}

.vp-popup--anim-fade .vp-popup__panel { transform: none; }
.vp-popup--anim-scale-up .vp-popup__panel { transform: scale(.85); }
.vp-popup--anim-scale-down .vp-popup__panel { transform: scale(1.12); }
.vp-popup--anim-shake .vp-popup__panel { transform: translateX(-18px); }

.vp-popup--has-animation.vp-popup--animating-in.vp-popup--anim-shake .vp-popup__panel {
  animation: vpPopupShake .48s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes vpPopupShake {
  0% { transform: translateX(-18px); opacity: 0; }
  18% { transform: translateX(12px); opacity: 1; }
  36% { transform: translateX(-8px); opacity: 1; }
  54% { transform: translateX(5px); opacity: 1; }
  72% { transform: translateX(-3px); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
.vp-popup--anim-slide-top .vp-popup__panel { transform: translateY(-36px); }
.vp-popup--anim-slide-bottom .vp-popup__panel { transform: translateY(36px); }
.vp-popup--anim-slide-left .vp-popup__panel { transform: translateX(-36px); }
.vp-popup--anim-slide-right .vp-popup__panel { transform: translateX(36px); }
.vp-popup--anim-scale .vp-popup__panel { transform: scale(.92) translateY(10px); }
.vp-popup--anim-kenburns .vp-popup__panel { transform: scale(1.08); }

.vp-popup--has-animation.vp-popup--open .vp-popup__panel {
  transform: none;
}

.vp-popup__content,
.vp-popup__content > .uk-section,
.vp-popup__content > div:first-child {
  position: relative;
}

.vp-popup--internal-scroll .vp-popup__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vp-popup:not(.vp-popup--internal-scroll) .vp-popup__content {
  overflow: visible;
}

.vp-popup__content > .uk-section {
  margin: 0 !important;
  padding-top: var(--vp-popup-content-margin-top, initial) !important;
  padding-right: var(--vp-popup-content-margin-right, initial) !important;
  padding-bottom: var(--vp-popup-content-margin-bottom, initial) !important;
  padding-left: var(--vp-popup-content-margin-left, initial) !important;
}

.vp-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(17, 17, 17, 0.92);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.vp-popup__close:hover,
.vp-popup__close:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  color: #000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
  outline: none;
}

.vp-popup__close:active {
  transform: scale(.98);
}

.vp-popup--mobile-fullscreen {
  padding: 0 !important;
}

.vp-popup--mobile-fullscreen .vp-popup__panel {
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  .vp-popup,
  .vp-popup::before,
  .vp-popup__panel {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 640px) {
  .vp-popup__panel {
    width: calc(100dvw - 24px) !important;
    max-width: calc(100dvw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .vp-popup--mobile-fullscreen .vp-popup__dialog {
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }

  .vp-popup--mobile-fullscreen .vp-popup__panel {
    width: 100dvw !important;
    max-width: 100dvw;
    height: 100dvh !important;
    max-height: 100dvh;
    margin: 0 !important;
    border-radius: 0;
  }
}
