.oclock-popup-newsletter {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 18, 26, 0.64);
}

.oclock-popup-newsletter.is-visible {
  display: flex;
}

.oclock-popup-newsletter__dialog {
  position: relative;
  width: min(100%, 680px);
  border-radius: 24px;
  overflow: hidden;
  background: #f7f1e7;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.oclock-popup-newsletter__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.oclock-popup-newsletter__content {
  min-height: auto;
  position: relative;
  /* width: 700px; */
}

.oclock-popup-newsletter__copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 56px;
  color: #18212d;
  position: relative;
  z-index: 1;
  height: 500px;
  width: 550px;
}

.oclock-popup-newsletter__title {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
}

.oclock-popup-newsletter__subtitle {
  margin: 0 0 28px;
  max-width: 420px;
  font-size: 17px;
  line-height: 1.6;
  color: #ffffff;
}

.oclock-popup-newsletter__visual {
  min-height: 100%;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
}

.oclock-popup-newsletter .block_newsletter {
  margin: 0;
}

.oclock-popup-newsletter .block_newsletter form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oclock-popup-newsletter .block_newsletter form input[type="email"] {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid #d3d8de;
  border-radius: 9px;
  background: #ffffff;
  color: #18212d;
  font-size: 15px;
}

.oclock-popup-newsletter .block_newsletter form button[type="submit"] {
  min-height: 47px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: #d2a66e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 4px;
}

.oclock-popup-newsletter .block_newsletter form button[type="submit"]:hover {
  background: #0f1720;
}

.oclock-popup-newsletter .block_newsletter_alert,
.oclock-popup-newsletter .alert {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.oclock-popup-newsletter .alert-success {
  background: #d9f7e8;
  color: #0f5132;
}

.oclock-popup-newsletter .alert-danger {
  background: #fde1e1;
  color: #842029;
}

.oclock-popup-newsletter__conditions {
  font-size: 13px;
  line-height: 1.6;
  color: #5f6b79;
}

.oclock-popup-newsletter__conditions p {
  margin: 0;
}

.oclock-popup-newsletter .psgdpr_consent_message,
.oclock-popup-newsletter .custom-checkbox label {
  font-size: 13px;
  line-height: 1.5;
  color: #5f6b79;
}

body.oclock-popup-newsletter-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .oclock-popup-newsletter {
    padding: 16px;
  }

  .oclock-popup-newsletter__dialog {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .oclock-popup-newsletter__visual {
    order: -1;
    min-height: 100%;
  }

  .oclock-popup-newsletter__copy {
    padding: 32px 24px 28px;
    height: fit-content;
    width: 100%;
  }

  .oclock-popup-newsletter__title {
    font-size: 34px;
  }
}

.oclock-popup-newsletter__content:after {
  content: "";
  position: absolute;
  z-index: 0;
  background: #021929ab;
  width: 100%;
  height: 100%;
  top: 0;
}