.nsl-container,
.mepr-social-connect {
  container-type: inline-size;
  width: 100%;
}

.nsl-container-buttons {
  container-type: inline-size;
  width: 100%;

  .nsl-button {
    border-radius: 8px !important;
    box-shadow: inset 0 0 0 1px #000 !important;
    color: #141618 !important;
    font-weight: 600;
    padding: 3px 10px;
    justify-content: center;

    .nsl-button-label-container {
      flex-grow: 0 !important;
      font-family: "Open Sans", Poppins !important;
      letter-spacing: 0.1em !important;
      text-transform: uppercase !important;
      font-size: 12px !important;
      margin-right: 0 !important;
      margin-left: 12 !important;
    }

    .div.nsl-container {
      svg {
        height: 22px;
        width: 20px;
      }

      &.nsl-button-svg-container {
        padding: 0;
      }
    }
  }
}

.nsl-container-block {
  &:before {
    display: block;
    content: "OR";
    text-align: center;
    color: #000;
    font-weight: bold;
    background: linear-gradient(#000 0 0) left, linear-gradient(#000 0 0) right;
    background-size: 45% 1px;
    background-repeat: no-repeat;
    margin-top: 15px;
  }
}

@container (max-width: 600px) {
  .nsl-container-buttons,
  .mp_login_form > div:first-child {
    display: flex !important;
    flex-direction: column;

    &:before {
      margin-bottom: 15px;
    }
  }
}

@container (max-width: 340px) {
  div.nsl-container .nsl-button-svg-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@container (max-width: 250px) {
  .nsl-container.nsl-container-block {
    .nsl-button-label-container {
      display: flex !important;
      flex-wrap: wrap !important;

      b {
        margin-left: 4px;
      }
    }
  }
}

@container (max-width: 180px) {
  .nsl-container.nsl-container-block {
    .nsl-button-label-container {
      font-size: 0 !important;
      margin-left: 0px !important;
      b {
        font-size: 12px !important;
      }
    }
  }
}

@container (max-width: 120px) {
  .nsl-container.nsl-container-block {
    .nsl-button-label-container {
      display: none !important;
    }
  }
}

@container (min-width: 600px) {
  .nsl-container-buttons,
  .mp_login_form > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;

    &:before {
      grid-column: span 2;
    }
  }
}

.mepr-share-button,
.mepr-submit {
  background-color: #303133 !important;
  color: white !important;
  border-color: #303133 !important;
  width: 100% !important;
}

.mp_login_form {
  display: flex;
  flex-direction: column-reverse !important;

  .mepr-form {
    order: 3;
  }

  .mp-spacer {
    order: 2;
  }

  .mepr-login-actions {
    order: 1;
  }

  #mepr-unauthorized-for-resource {
    order: 4;
    margin-bottom: 36px;
    text-align: center;
    margin-bottom: 18px;
    margin-top: 0px;
  }

  & > p:nth-child(2) {
    order: 5;
    text-align: center;
    margin-top: 0;
  }

  .mepr-login-form-content {
    order: 6;
    margin-bottom: 18px;
    text-align: center;
  }
}

.mp_wrapper {
  .mepr-unauthorized-message {
    margin-bottom: 18px;
    text-align: center;

    p {
      margin-top: 0;
    }
  }
}

.mepr-account-home-social-connect {
  .nsl-container-block:before,
  .nsl-container-buttons:before {
    display: none;
  }

  div.nsl-container .nsl-container-buttons {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.nsl-button-label-container {
  display: none;
}
