.impopup-layer {
  pointer-events: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
}

.impopup {
  pointer-events: auto;
  position: fixed;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #ffffff;
  color: #222222;
  border: 1px solid #e6e6e6;
  border-bottom: 4px solid #e4d300;
  border-radius: 0;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  font-family: 'Roboto', 'Exo', 'Open Sans', Arial, sans-serif;
  padding: 22px 24px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.impopup.is-ready {
  opacity: 1;
  visibility: visible;
}

.impopup:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, #63bc46 0%, #68b32e 62%, #ff6e07 62%, #ff6e07 100%);
}

.impopup-top_left {
  top: 16px;
  left: 16px;
}

.impopup-top_right {
  top: 16px;
  right: 16px;
}

.impopup-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.impopup-bottom_left {
  bottom: 16px;
  left: 16px;
}

.impopup-bottom_right {
  right: 16px;
  bottom: 16px;
}

.impopup-title {
  margin: 4px 30px 10px;
  color: #ff6e07;
  font-family: 'Exo', 'Open Sans', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.impopup-content {
  color: #222222;
  font-size: 13px;
  line-height: 1.55;
}

.impopup-content a {
  color: #63bc46;
  font-weight: 700;
  text-decoration: none;
}

.impopup-content a:hover,
.impopup-content a:focus {
  color: #ff6e07;
  text-decoration: underline;
}

.impopup-content strong,
.impopup-content b {
  color: #111111;
}

.impopup-content p:last-child {
  margin-bottom: 0;
}

.impopup-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eeeeee;
}

.impopup-view {
  display: inline-block;
  min-width: 170px;
  border: 0;
  border-bottom: 3px solid #e4d300;
  border-radius: 0;
  background: #ff6e07;
  color: #ffffff;
  font-family: 'Exo', 'Open Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 110, 7, 0.22);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.impopup-view:hover,
.impopup-view:focus {
  background: #e45f00;
  box-shadow: 0 6px 16px rgba(255, 110, 7, 0.3);
  color: #ffffff;
  outline: none;
  text-decoration: none;
  transform: translateY(-1px);
}

.impopup-dismiss {
  min-width: 170px;
  border: 0;
  border-bottom: 3px solid #ff6e07;
  border-radius: 0;
  background: #63bc46;
  color: #ffffff;
  font-family: 'Exo', 'Open Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  padding: 7px 12px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 188, 70, 0.28);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.impopup-dismiss:hover,
.impopup-dismiss:focus {
  background: #68b32e;
  box-shadow: 0 6px 16px rgba(99, 188, 70, 0.34);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.impopup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
  background: #f9f9f9;
  color: #555555;
  font-size: 22px;
  line-height: 27px;
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.impopup-close:hover,
.impopup-close:focus {
  border-color: #ff6e07;
  background: #ffffff;
  color: #ff6e07;
  outline: none;
}

.impopup.is-minimized {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.impopup-dock {
  pointer-events: none;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

.impopup-reopen {
  pointer-events: auto;
  display: block;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #63bc46;
  color: #ffffff;
  border-bottom: 3px solid #ff6e07;
  box-shadow: 0 10px 26px rgba(99, 188, 70, 0.32);
  font-size: 24px;
  line-height: 52px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease, background 160ms ease;
}

.impopup-alert {
  display: block;
  color: #FFFFFF;
  font-family: 'Exo', 'Open Sans', Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 49px;
}

.impopup-reopen.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  animation: impopup-party-hop 4s ease-in-out infinite;
}

.impopup-reopen:hover,
.impopup-reopen:focus {
  background: #68b32e;
  outline: none;
}

@keyframes impopup-party-hop {
  0%,
  88%,
  100% {
    transform: translateY(0);
  }

  91% {
    transform: translateY(-7px);
  }

  94% {
    transform: translateY(0);
  }

  97% {
    transform: translateY(-3px);
  }
}

@media (max-width: 767px) {
  .impopup {
    right: 12px;
    left: 12px;
    width: auto;
    padding: 20px 18px 18px;
  }

  .impopup-title {
    font-size: 18px;
  }

  .impopup-dismiss {
    width: 100%;
    min-width: 0;
  }

  .impopup-view {
    width: 100%;
    min-width: 0;
  }

  .impopup-top_left,
  .impopup-top_right {
    top: 12px;
  }

  .impopup-bottom_left,
  .impopup-bottom_right {
    bottom: 12px;
  }

  .impopup-center {
    right: 12px;
    left: 12px;
    transform: translateY(-50%);
  }

  .impopup-dock {
    left: 12px;
    bottom: 12px;
  }

  .impopup-reopen {
    width: 42px;
    height: 42px;
    font-size: 20px;
    line-height: 42px;
  }

  .impopup-alert {
    font-size: 22px;
    line-height: 39px;
  }
}
