.danklapopup[hidden] {
  display: none !important;
}

.danklapopup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.danklapopup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(2px);
}

.danklapopup__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: #fff;
  color: #222;
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.danklapopup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 26px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
}

.danklapopup__close:hover,
.danklapopup__close:focus {
  background: #000;
}

.danklapopup__media {
  width: 100%;
  background: #f4f4f4;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.danklapopup__media img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.danklapopup__body {
  padding: 28px;
}

.danklapopup__body h2 {
  margin: 0 42px 14px 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: inherit;
}

.danklapopup__content {
  font-size: 16px;
  line-height: 1.6;
}

.danklapopup__content > :first-child {
  margin-top: 0;
}

.danklapopup__content > :last-child {
  margin-bottom: 0;
}

.danklapopup__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 10px 20px;
  border-radius: 8px;
  background: #222;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}

.danklapopup__button:hover,
.danklapopup__button:focus {
  background: #000;
}

body.danklapopup-open {
  overflow: hidden;
}

.danklapopup__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 575px) {
  .danklapopup {
    padding: 12px;
    align-items: flex-end;
  }

  .danklapopup__dialog {
    width: 100%;
    max-height: 88vh;
    border-radius: 14px;
  }

  .danklapopup__body {
    padding: 22px 20px 24px;
  }

  .danklapopup__body h2 {
    font-size: 22px;
  }

  .danklapopup__button {
    width: 100%;
  }
}
