.napb-popup[hidden],
.napb-popup-launcher[hidden] {
  display: none !important;
}

body.napb-popup-open {
  overflow: hidden;
}

.napb-popup {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: Montserrat, sans-serif;
}

.napb-popup,
.napb-popup * {
  box-sizing: border-box;
}

.napb-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 21, 46, 0.68);
}

.napb-popup__dialog {
  position: relative;
  width: min(100%, var(--napb-popup-width, 620px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  color: #333f55;
  box-shadow: 0 24px 80px rgba(31, 21, 46, 0.28);
  outline: none;
  overscroll-behavior: contain;
}

.napb-popup .napb-popup__close {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 12px 12px -56px 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #333f55;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(31, 21, 46, 0.16);
}

.napb-popup .napb-popup__close svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.napb-popup__content {
  min-width: 0;
}

.napb-popup__content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 560px;
  border: 0;
}

.napb-popups-root .napb-popup-launcher {
  position: fixed;
  z-index: 99999;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  display: grid;
  flex: none;
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #f7ccb5 0%, #fff0e7 100%);
  color: #57308b;
  cursor: pointer;
  box-shadow: 0 0 7px rgba(111, 111, 111, 0.55), 0 12px 28px rgba(43, 23, 68, 0.22);
  animation: napb-launcher-in 0.55s cubic-bezier(.2, .75, .25, 1) both;
}

.napb-popups-root .napb-popup-launcher svg {
  display: block;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@keyframes napb-launcher-in {
  from { opacity: 0; transform: scale(.72); }
  65% { opacity: 1; transform: scale(1.07); }
  to { opacity: 1; transform: scale(1); }
}

.napb-popup__close:focus-visible,
.napb-popup-launcher:focus-visible {
  outline: 3px solid #7042d2;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .napb-popup {
    padding: 10px;
  }

  .napb-popup__dialog {
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }

  .napb-popups-root .napb-popup-launcher {
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;
  }

  .napb-popups-root .napb-popup-launcher svg {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .napb-popups-root .napb-popup-launcher {
    animation: none;
  }
}
