html.td-popups-open,
html.td-popups-open body {
  overflow: hidden;
}

#td-popups {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 22px 20px;
  background: #2d203b55;
  box-sizing: border-box;
}

#td-popups[hidden] {
  display: none !important;
}

.td-popup {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: #fff;
  color: #1d284a;
  text-align: center;
  font-family: Roboto, sans-serif;
  box-sizing: border-box;
}

.td-popup__close {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #1d284a0d;
  color: #1d284a;
  cursor: pointer;
}

.td-popup__close svg {
  width: 14px;
  height: 14px;
}

.td-popup__copy {
  padding: 40px 29px 31px;
}

.td-popup__title {
  margin: 0;
  color: #1d284a;
  font-family: Roboto, sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 34px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.td-popup__label {
  margin: 12px 0 0;
  color: #1d284a;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 23px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.td-popup__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  height: 48px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 83px;
  background: #e10358;
  box-shadow: 0 6px 24px #e724693f;
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.td-popup--newsletter {
  border: 1px solid #8d8d8d;
  border-radius: 24px;
  box-shadow: 0 12px 40px #1d284a2e;
}

.td-popup--newsletter .td-popup__close {
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  background: #fff;
}

.td-popup--newsletter .td-popup__image {
  display: block;
  width: 100%;
  height: 189px;
  object-fit: cover;
}

.td-popup--newsletter .td-popup__copy {
  padding: 20px 38px 32px;
}

.td-popup--newsletter .td-popup__label {
  margin-top: 5px;
}

.td-popup__form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.td-popup__form--link {
  justify-content: center;
}

.td-popup__email {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #c7c7cc;
  border-radius: 70px;
  background: #fff;
  color: #1d284a;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  line-height: 23px;
  text-align: left;
  box-sizing: border-box;
}

.td-popup__email::placeholder {
  color: #6d6d6d;
}

.td-popup--newsletter .td-popup__button {
  flex: 0 0 auto;
  width: auto;
}

.td-popup--announcement {
  border: 1px solid #8d8d8d;
  border-radius: 28px;
  box-shadow: 0 12px 40px #1d284a2e;
}

.td-popup--announcement .td-popup__close {
  top: 16px;
  right: 16px;
}

.td-popup--announcement .td-popup__copy {
  padding: 69px 52px 36px;
}

.td-popup--announcement .td-popup__button {
  min-width: 194px;
  margin: 23px auto 0;
}

.td-popup__continue {
  display: block;
  margin: 11px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: #1d284a;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  line-height: 18px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.td-popup--promo {
  max-width: 638px;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
}

.td-popup--promo .td-popup__close {
  top: 12px;
  right: 12px;
  background: #fff;
  box-shadow: 0 1px 8px #1d284a1f;
}

.td-popup__promo {
  display: block;
  color: inherit;
  text-decoration: none;
}

.td-popup__promo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

@media (max-width: 699px) {
  #td-popups {
    align-items: center !important;
    justify-content: center !important;
    padding: 16px;
  }

  .td-popup {
    max-width: 360px;
    max-height: calc(100vh - 32px);
  }

  .td-popup--announcement {
    border-color: #c7c7cc;
    border-radius: 24px;
  }

  .td-popup--newsletter {
    border: 0;
    border-radius: 16px;
  }

  .td-popup--promo {
    max-width: 360px;
    border-radius: 16px;
  }

  .td-popup--newsletter .td-popup__image {
    height: 176px;
  }

  .td-popup--newsletter .td-popup__copy,
  .td-popup--announcement .td-popup__copy {
    padding: 16px 16px 28px;
  }

  .td-popup--announcement .td-popup__copy {
    padding-top: 48px;
  }

  .td-popup--newsletter .td-popup__title {
    font-size: 28px;
    line-height: 32px;
  }

  .td-popup--newsletter .td-popup__label {
    font-size: 15px;
    line-height: 21px;
  }

  .td-popup--announcement .td-popup__label {
    font-size: 16px;
    line-height: 23px;
  }

  .td-popup__form {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }

  .td-popup__email,
  .td-popup--newsletter .td-popup__button,
  .td-popup--announcement .td-popup__button {
    width: 100%;
    min-width: 0;
    height: 45px;
    min-height: 45px;
  }

  .td-popup--announcement .td-popup__button {
    margin-top: 20px;
  }

  .td-popup__continue {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    margin-top: 12px;
    border: 1px solid #1d284a;
    border-radius: 43px;
    background: #fff;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-popup {
    animation: none;
  }
}
