/* ==================================================
   INCLUDES/EBOOK-POPUP.CSS
   ================================================== */
.popup {
  position: fixed;
  inset: 0;
  z-index: 100001;
  box-sizing: border-box;
  display: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 8px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}

.popup:target,
.popup.popup-open {
  display: flex;
}

.popup-box {
  position: relative;
  box-sizing: border-box;
  width: 565px;
  max-width: calc(100% - 16px);
  min-height: 438px;
  padding: 40px 30px;
  text-align: center;
  background: #ffffff;
}

.popup h2 {
  max-width: 100%;
  margin: 18px 0 0;
  font-size: 2.25rem;
  font-weight: bold;
}

.popup-box > p {
  max-width: 100%;
  margin: 34px 0 0;
  color: #111111;
  font-size: 1rem;
  line-height: 1.35;
}

.popup form {
  width: 100%;
  margin: 0;
  padding: 0;
}

.popup label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.popup input[type="email"] {
  box-sizing: border-box;
  display: block;
  width: 400px;
  max-width: 100%;
  height: 32px;
  margin: 21px auto 0;
  padding: 5px 4px;
  color: #111111;
  font-size: 1rem;
  border: 1px solid #777777;
  background: #ffffff;
}

.popup button[type="submit"] {
  display: block;
  width: fit-content;
  min-width: 140px;
  max-width: 100%;
  margin: 21px auto 24px;
  padding: 12px 30px;
  color: #f1c50e;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.4;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  background: #000000;
  cursor: pointer;
}

.popup button[type="submit"]:hover,
.popup button[type="submit"]:focus {
  color: #ffffff;
}

.popup form > p:not(#message-ebook) {
  width: 430px;
  max-width: 100%;
  margin: 0 auto 10px;
  color: #111111;
  font-size: 0.75rem;
  line-height: 1.45;
}

#message-ebook {
  margin: 16px auto 0;
  color: #111111;
  font-size: 1rem;
  line-height: 1.4;
}

#message-ebook.is-success {
  color: #1f7a3f;
  font-weight: bold;
}

#message-ebook.is-error {
  color: #b00020;
  font-weight: bold;
}

.popup [data-popup-close] {
  position: absolute;
  top: 10px;
  right: 40px;
  z-index: 2;
  padding: 0;
  color: #777777;
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* ==================================================
   MEDIA
   ================================================== */

/* Mobile */
@media (max-width: 575px) {
  .popup-box {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 40px 24px 34px;
  }

  .popup h2 {
    font-size: 1.55rem;
  }

  .popup-box > p {
    letter-spacing: 3px;
  }

  .popup [data-popup-close] {
    right: 24px;
  }
}
