.mfp-content {
  position: relative;
  overflow: hidden;
  background: #ededed;
  max-width: 70%;
}

.mfp-content .page {
  margin-top: 30px;
  max-height: 90vh;
  overflow: auto;
}

.mfp-bg {
  background: rgba(0, 0, 0, 0.5);
}

button.mfp-close {
  font-size: 30px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.7);
  width: 20px;
  height: 20px;
  position: absolute;
  min-width: 26px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  top: 4px;
  right: 4px;
  border-radius: 10px;
  border: 0;
  padding: 0;
  margin: 0;
  overflow: visible;
  font-family: "Open Sans", Arial, sans-serif;
  padding-bottom: 5px;
}

.mfp-close-btn-in .mfp-close {
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 992px) {
  .mfp-content {
    max-width: 745px;
  }

  .mfp-content .page {
    max-height: 90vh;
  }
}

@media (min-width: 1600px) {
  .mfp-content {
    max-width: 745px;
  }

  .mfp-content .page {
    max-height: 55vh;
  }
}

.paywall-popup .popup-memberships table thead tr td {
  word-break: break-word;
}
.paywall-popup .popup-memberships table thead tr {
  border-bottom: 1px solid #ddd;
}

@media (max-width: 767px) {
  .paywall-popup {
    padding: 15px !important;
  }

  .paywall-popup .popup-memberships table tbody tr td {
    word-break: break-word;
  }
  .paywall-popup .popup-memberships table thead tr td div {
    display: inline-block;
  }
  .paywall-popup .popup-memberships table thead tr td:nth-child(1) {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .paywall-popup .popup-memberships table thead tr td:nth-child(2) {
    flex: 0 0 100px;
  }

  .paywall-popup .popup-memberships table thead tr td:nth-child(3) {
    flex: 0 0 100px;
  }

  .paywall-popup .popup-memberships table tbody tr td:nth-child(1) {
    flex: 1;
  }

  .paywall-popup .popup-memberships table tbody tr td:nth-child(2) {
    flex: 0 0 100px;
  }

  .paywall-popup .popup-memberships table tbody tr td:nth-child(3) {
    flex: 0 0 100px;
  }

  .paywall-popup .popup-memberships table tbody tr {
    display: flex;
  }
  .paywall-popup .popup-memberships table thead tr {
    display: flex;
  }
  .paywall-popup table a.button {
    margin: 0 -10px;
  }
}

@media (max-width: 575px) {
  .mfp-content {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
  }

  .mfp-container {
    padding: 0;
  }
}
